1 Reply Latest reply on Feb 2, 2005 5:45 PM by Jerry Welch

    Deploy a Weblogic 5.1 EJB on JBoss 4.0.1

    Joy Bhowmik Newbie

      Hi
      I am trying to make an equivalent jboss.xml from a weblogic-ejb-jar.xml. The weblogic DD is for Weblogic v 5.1. Here is a sample:

      <?xml version="1.0"?>

      <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'file:///o:/jar/weblogic-ejb-jar.dtd'>

      <weblogic-ejb-jar>
      <weblogic-enterprise-bean>
      <ejb-name>spa.anesthesia.AnesthBilling</ejb-name>
      <caching-descriptor>
      <max-beans-in-free-pool>100</max-beans-in-free-pool>
      <max-beans-in-cache>100</max-beans-in-cache>
      <idle-timeout-seconds>60</idle-timeout-seconds>
      </caching-descriptor>
      <transaction-descriptor>
      <trans-timeout-seconds>60</trans-timeout-seconds>
      </transaction-descriptor>
      <jndi-name>spa.anesthesia.AnesthBilling</jndi-name>
      <transaction-isolation>
      <isolation-level>TRANSACTION_READ_COMMITTED</isolation-level>

      <ejb-name>spa.anesthesia.AnesthBilling</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>*</method-name>

      </transaction-isolation>
      </weblogic-enterprise-bean>
      <security-role-assignment>
      <role-name>spa</role-name>
      <principal-name>spa</principal-name>
      </security-role-assignment>
      </weblogic-ejb-jar>


      Can someone tell me what are the jboss specific tags that will be replacing the given tags above.

      Additional information:
      I tried the FOEDeployer as provided in Wiki but unfortunately this did not deploy the application. I guess the converter only works for Weblogic v6 EJBs
      Also tried to deploy the jarred application without the weblogic-ejb-jar files- and even this did not deploy the application.


      Any help will be greatly appreciated.

        • 1. Re: Deploy a Weblogic 5.1 EJB on JBoss 4.0.1
          Jerry Welch Newbie

          All JBoss wants to see from jboss.xml (the equivalent to weblogic-ejb-jar.xml) is the following ...

          <jboss [instead of weblogic-ejb-jar]>
          
          <resource-managers>
           <resource-manager>
           <res-name>jdbc/YOURDATASOURCE</res-name>
           <res-jndi-name>java:/jdbc/YOURDATASOURCE</res-jndi-name>
           </resource-manager>
          ...
          </resource-managers>
          
          <enterprise-beans>
           <session [instead of ejb-reference-description]>
           <ejb-name>YourEjbName</ejb-name>
           <jndi-name>YourEjbJndiName</jndi-name>
           </session [instead of ejb-reference-description]>
          ...
          </enterprise-beans>
          
          </jboss [instead of weblogic-ejb-jar]>


          Foe-Deployer is not very reliable. So just do it by hand - once you do one, it gets easier. JBoss's deployment descriptors are easier to write than WL. Check out your jboss DTD (JBOSS_DIST\docs\dtd folder) for more samples.

          You only need to reference your resource managers once in the file! Be sure to note the java:/ prefix for your resource manager's jndi name.

          Hope that helps.