5 Replies Latest reply on Oct 9, 2004 4:42 AM by boris.brauckmann

    Which EJB specs are supported!

    lars_ohlen

      Hi,

      I have seen both 2.0 and 2.1 as the EJB spec for JBoss 4.
      Is it both or just 2.1?

      How about 1.0 and 1.1 specs. Is JBoss backward compatible?

      /Lars

        • 1. Re: Which EJB specs are supported!
          starksm64

          ejb 2.1 and below are supported

          • 2. Re: Which EJB specs are supported!
            boris.brauckmann

             

            "scott.stark@jboss.org" wrote:
            ejb 2.1 and below are supported


            Hi,

            i have problems with ejb 2.1. i am trying to deploy a mdb, the ejb-jar.xml looks like this:

            <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>
             <message-driven >
             <ejb-name>SomeQueueBean</ejb-name>
             <ejb-class>de.codebox.ejb.SomeQueueBean</ejb-class>
             <messaging-type>javax.jms.MessageListener</messaging-type>
             <transaction-type>Container</transaction-type>
             <message-destination-type>javax.jms.Queue</message-destination-type>
             <message-destination-link>JustALink</message-destination-link>
             <activation-config>
             <activation-config-property>
             <activation-config-property-name>acknowledgeMode
             </activation-config-property-name>
             <activation-config-property-value>Auto-acknowledge
             </activation-config-property-value>
             </activation-config-property>
             <activation-config-property>
             <activation-config-property-name>destinationType
             </activation-config-property-name>
             <activation-config-property-value>javax.jms.Queue
             </activation-config-property-value>
             </activation-config-property>
             ...


            When i deploy the bean i get the following warning:

            10:19:15,093 WARN [JMSContainerInvoker] No message-driven-destination given; using; guessing type
            10:19:15,109 WARN [JMSContainerInvoker] Could not determine destination type, defaults to: javax.jms.Topic
            ...

            I thought "message-driven-destination" is not(!) in ejb 2.1(?). The source code (MessageDrivenMetaData.java) in JBoss 4.0:

            // messaging-type is new to EJB-2.1
             messagingType = getOptionalChildContent(element, "messaging-type", DEFAULT_MESSAGING_TYPE);
            
             // destination is optional
             Element destination = getOptionalChild(element, "message-driven-destination");
             if (destination != null)

            ...

            Also i couldn't find any support for "message-destination-link". How did you get the examples (with <message-destination-type>javax.jms.Queue</message-destination-type>) in the wiki working?

            Thanks for your help!

            boris


            • 3. Re: Which EJB specs are supported!
              • 4. Re: Which EJB specs are supported!

                You are correct, support for
                message-destination-link and message-destination-ref
                is missing from JBoss4.

                It is irrelevent for basic MDB config.

                Please report it is as a bug:
                http://www.sf.net/projects/jboss

                • 5. Re: Which EJB specs are supported!
                  boris.brauckmann

                  Thanks a lot for your immediate help!

                  boris