// Copyright © 2002 by Apple Computer, Inc., All Rights Reserved.
//
// You may incorporate this Apple sample code into your own code
// without restriction. This Apple sample code has been provided "AS IS"
// and the responsibility for its operation is yours. You may redistribute
// this code, but you are not permitted to redistribute it as
// "Apple sample code" after having made changes.
shell> cat jboss.xml
<?xml version="1.0"?>
<jboss>
<enterprise-beans>
<entity>
<ejb-name>HelloEntity</ejb-name>
</entity>
</enterprise-beans>
</jboss>
shell> cat web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN'
'http://java.sun.com/j2ee/dtds/web-app_2.2.dtd'>
<web-app>
<display-name>Hello Entity</display-name>
<description>Entity Bean</description>
<servlet>
<servlet-name>HelloEntityServlet</servlet-name>
<servlet-class>HelloEntityServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloEntityServlet</servlet-name>
<url-pattern>/Hi</url-pattern>
</servlet-mapping>
<ejb-ref>
<ejb-ref-name>HelloEntityHome</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>HelloEntityHome</home>
<remote>HelloEntity</remote>
<ejb-link>HelloEntity</ejb-link>
</ejb-ref>
</web-app>
shell> cat application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application
PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN'
'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
<application>
<display-name>Hello Entity</display-name>
<description>Entity Bean</description>
<module>
<ejb>HelloEntity.jar</ejb>
</module>
<module>
<web>
<web-uri>HelloEntity.war</web-uri>
<context-root>HelloEntity</context-root>
</web>
</module>
</application>