"mskonda" wrote : use the Singleton configuration: | | | <message-driven> | | <configuration-name>Singleton Message Driven Bean</configuration-name> | | <ejb-name>XARecovery2ResMDB</ejb-name> | | <destination-jndi-name>queue/@QUEUE_NAME@</destination-jndi-name> | | </message-driven> | |
Thanks to all. I explicitly added name to annotation: @MessageDriven(name = "MyMDBean", Created jboss.xml: <jboss> | <enterprise-beans> | <message-driven> | <ejb-name>MyMDBean</ejb-name> | <destination-jndi-name>queue/myQueue1</destination-jndi-name> | <configuration-name>Singleton Message Driven Bean</configuration-name> | </message-driven> | </enterprise-beans> | </jboss> | Got error: 2006-05-17 15:05:28,448 WARN [org.jboss.system.ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=dvase-mdb.blog.ksg.jar | org.jboss.xb.binding.JBossXBException: Failed to parse source | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:138) | ... | Caused by: java.lang.ClassCastException: org.jboss.ejb3.dd.SessionEnterpriseBean | at org.jboss.ejb3.dd.EnterpriseBeans.setDestinationJndiName(EnterpriseBeans.java:98) | at org.jboss.ejb3.dd.JBossDDObjectFactory.setValue(JBossDDObjectFactory.java:697) | ... | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:134) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944218#3944218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944218 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
