Java Reference
In-Depth Information"
<!- - Other beans - ->
<bean name="uwrSlsbHome"
<property name="jndiName" value="uwrbusinessslsb" />
<property name="jndiEnvironment">
<prop key="java.naming.factory.initial">
<prop key="java.naming.provider.url"> jnp://localhost:1099</prop>
<prop key=" java.naming.factory.url.pkgs">org.jboss.naming.client</prop>
Local EJB 2. x Lookup
EJB 2.0 introduced local enterprise bean components collocated in the same JVM with
other Java EE components. This improved performance by eliminating the network
trip required to look up an object on the JNDI tree. This also simplified EJB object
lookup to a great extent. A local stateless session bean can also be accessed using the
JndiObjectFactoryBean just by configuration, as shown in Listing 4-5.
Listing 4-5. insurance-servlet.xml : Local EJB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
Search WWH ::

Custom Search