Java Reference
In-Depth Information
Listing 4-19. Underwriting-beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
</beans>
Finally, to complete the EJB, you also need an application server vendor-specific
deployment descriptor, which is used to provide meta-information such as the JNDI
name to bind the EJB home object in the JNDI tree. Listing 4-20 shows the JBoss-specific
deployment descriptor.
Listing 4-20. jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>UnderwritingRemoteBean</ejb-name>
<jndi-name>UnderwritingBeanRemote</jndi-name>
<local-jndi-name>UnderwritingBeanLocal</local-jndi-name>
</session>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
The final task is to compile, package, and deploy this EJB in a JBoss 4. x application
server. The clients can easily look up this EJB using the Service Locator pattern described
earlier in this chapter.
 
Search WWH ::




Custom Search