This content has been marked as final.
Show 5 replies
-
1. Re: Which EJB specs are supported!
starksm64 Sep 30, 2004 10:10 AM (in response to lars_ohlen)ejb 2.1 and below are supported
-
2. Re: Which EJB specs are supported!
boris.brauckmann Oct 8, 2004 8:15 AM (in response to lars_ohlen)"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!
adrian.brock Oct 8, 2004 10:33 AM (in response to lars_ohlen)I've added your question to the FAQ:
http://www.jboss.org/wiki/Wiki.jsp?page=ConfigJBoss4MDB -
4. Re: Which EJB specs are supported!
adrian.brock Oct 8, 2004 10:38 AM (in response to lars_ohlen)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 Oct 9, 2004 4:42 AM (in response to lars_ohlen)Thanks a lot for your immediate help!
boris