2 Replies Latest reply on Aug 1, 2002 5:22 AM by winghoe

    Help needed in converting weblogic-ejb-jar.xml to jboss.xml

    winghoe

      Hi,

      JBOSS version: 2.4.4, using jboss.jcml

      Someone gave me a MessageBean with the deployment descriptor in Weblogic and I'm suppose to convert it to JBoss's descriptor. I'm not exposed to JMS or MessageBean or any sorts of thing. I've been trying to read the online documentation, the quick draft and all, and truth is I'm lost.

      I think I can handle the ejb-jar.xml, since it's standard for all, but I have to convert the weblogic-ejb-jar.xml to jboss.xml.

      Please help me to make necessary amendment into jboss.xml.

      Below is the weblogic-ejb-jar.xml descriptor.

      <?<?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
      <weblogic-ejb-jar>
      <weblogic-enterprise-bean>
      <ejb-name>LogMsg</ejb-name>
      <message-driven-descriptor>

      <max-beans-in-free-pool>3</max-beans-in-free-pool>
      <initial-beans-in-free-pool>2</initial-beans-in-free-pool>

      <destination-jndi-name>ChatMessageBean</destination-jndi-name>
      <connection-factory-jndi-name>ChatMessageFactory</connection-factory-jndi-name>
      </message-driven-descriptor>
      <reference-descriptor>
      <resource-description>
      <res-ref-name>jdbc/ChatMessageRepository</res-ref-name>
      <jndi-name>CMDataSource</jndi-name>
      </resource-description>
      </reference-descriptor>
      </weblogic-enterprise-bean>
      </weblogic-ejb-jar>

      Do I have to add that ChatMessageFactory into jboss.jcml?

      Also, do I have to add the entry below in the ejb-jar.xml?

      <resource-ref>
      <res-ref-name>jms/ChatMessageFactory</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      What else do I have to configure?

      Thanks a lot. I appreciate your help.

      Wing Hoe

        • 1. Re: Help needed in converting weblogic-ejb-jar.xml to jboss.
          schaefera

          Hi

          Get the latest JBoss version from CVS, build it and then copy the "foe-deployer.sar" from "varia/output/lib" into the deployment directory.

          Then you can drop your BEA Weblogic application and it will convert to a JBoss application and deploy it.

          Try it and give me some feedback.

          Thanx - Andfy

          • 2. Re: Help needed in converting weblogic-ejb-jar.xml to jboss.
            winghoe

            Andfy,

            You created the foe-deployer.sar? The so called application that I have is not a complete application. It's just a few classes, that I have to compile myself also before I can do any of that.

            I think I have to make the chances manually.

            Do you think you can tell me what exactly this foe-deployer.sar will change to convert from weblogic to jboss?

            Thanks.

            Wing Hoe