[jboss-user] [EJB 3.0] - EJB 3.0 MDB Jboss 4.0.5 ejb-jar.xml jboss.xml

globetrottersam do-not-reply at jboss.com
Fri Jun 27 10:04:13 EDT 2008


I have created a MDB 

package com.messaging;

@MessageDriven(activationConfig =
	{
		@ActivationConfigProperty(propertyName="destinationType",
				propertyValue="javax.jms.Queue"),
		@ActivationConfigProperty(propertyName="destination",
				propertyValue="queue/stream.EMailMessenger")
	}
)



public class EMailMessenger implements MessageListener {
..............................
}

my ejb-jar.xml looks like

<?xml version='1.0' encoding='UTF-8' ?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
	<enterprise-beans>
		<message-driven>
	    	<ejb-name>EMailMessenger</ejb-name>
	    	<ejb-class>com.messaging.EMailMessenger</ejb-class>
	 		<transaction-type>Container</transaction-type>
	      	<message-destination-type>javax.jms.Queue</message-destination-type>	      	
	  	</message-driven>
	</enterprise-beans>
</ejb-jar>

my jboss.xml looks like
<?xml version='1.0' encoding='UTF-8' ?>

	<enterprise-beans>
   		<message-driven>
      		<ejb-name>EMailMessenger</ejb-name>
      		<destination-jndi-name>queue/stream.EMailMessenger</destination-jndi-name>      
    	</message-driven>
   </enterprise-beans>


I get the following warning on deployment
14:52:06,093 INFO  [EJBContainer] STARTED EJB: com.messaging.EMailMessenger ejbName: EMailMessenger
14:52:06,093 WARN  [MessagingContainer] Could not find the queue destination-jndi-name=queue/stream.EMailMessenger
14:52:06,093 WARN  [MessagingContainer] destination not found: queue/stream.EMailMessenger reason: javax.naming.NameNotFoundException: stream.EMailMessenger not bound
14:52:06,093 WARN  [MessagingContainer] creating a new temporary destination: queue/stream.EMailMessenger
14:52:06,093 INFO  [EMailMessenger] Bound to JNDI name: queue/stream.EMailMessenger

Please suggest how can I remove this warning on deployment.

Thanks and regards,
Sam.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161181#4161181

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161181



More information about the jboss-user mailing list