2 Replies Latest reply on Aug 1, 2002 5:22 AM by Lim Wing Hoe

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

    Lim Wing Hoe Newbie

      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