Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">
   <enterprise-beans>
      <entity>
         <description>An EJB named MyPhonebookBean</description>
         <ejb-name>MyPhonebookBean</ejb-name>
         <local-home>myphonebookpak.MyPhonebookLocalHome</local-home>
         <local>myphonebookpak.MyPhonebookLocal</local>
         <ejb-class>myphonebookpak.MyPhonebookBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.String</prim-key-class>
         <reentrant>false</reentrant>
         <cmp-version>2.x</cmp-version>
         <cmp-field>
            <description>A persons name</description>
            <field-name>name</field-name>
         </cmp-field>
         <cmp-field>
            <description>A persons phone number</description>
            <field-name>number</field-name>
         </cmp-field>
         <primkey-field>name</primkey-field>
      </entity>
   </enterprise-beans>
</ejb-jar>

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1" 
             xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" 
             xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0" 
             xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" 
             xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
  <sys:environment>
    <sys:moduleId>
      <sys:groupId>default</sys:groupId>
      <sys:artifactId>MyPhonebookBean_openejb_artifactId</sys:artifactId>
      <sys:version>1.0</sys:version>
      <sys:type>car</sys:type>
    </sys:moduleId>
  </sys:environment>
  
  	<cmp-connection-factory>
		<resource-link>PhonebookPool</resource-link>
	</cmp-connection-factory>

  <enterprise-beans>
	<entity>
		<ejb-name>MyPhonebookBean</ejb-name>
		<local-jndi-name>MyPhonebookBean</local-jndi-name>
		<table-name>phonebook</table-name>
		<cmp-field-mapping>
			<cmp-field-name>name</cmp-field-name>
			<table-column>NAME</table-column>
		</cmp-field-mapping>
		<cmp-field-mapping>
			<cmp-field-name>number</cmp-field-name>
			<table-column>NUMBER</table-column>
		</cmp-field-mapping>
	</entity>
  </enterprise-beans>
</openejb-jar>

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" 
         xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" 
         xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"  
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
  <sys:environment>
    <sys:moduleId>
      <sys:groupId>default</sys:groupId>
      <sys:artifactId>MyPhonebookWeb</sys:artifactId>
      <sys:version>1.0</sys:version>
      <sys:type>car</sys:type>
    </sys:moduleId>
  </sys:environment>
  <context-root>/myphonebook</context-root>
</web-app>

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<display-name>
	MyPhonebookWeb</display-name>
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
	<ejb-local-ref>
		<ejb-ref-name>ejb/MyPhonebookBean</ejb-ref-name>
		<ejb-ref-type>Entity</ejb-ref-type>
		<local-home>myphonebookpak.MyPhonebookLocalHome</local-home>
		<local>myphonebookpak.MyPhonebookLocal</local>
	</ejb-local-ref>
</web-app>

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<application id="Application_ID" version="1.4" 
          xmlns="http://java.sun.com/xml/ns/j2ee" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
          http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
	<display-name>MyphonebookEJBApp</display-name>
	<module>
		<ejb>myphonebook-ejb.jar</ejb>
	</module>
	<module>
		<web>
			<web-uri>myphonebook-web.war</web-uri>
			<context-root>/myphonebook</context-root>
		</web>
	</module>
	<module>
    	<connector>tranql-connector-1.2.rar</connector>
  </module>
</application>

...