GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes jms  Null or empty subscription Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "jms  Null or empty subscription" Watch "jms  Null or empty subscription" New topic
Author

jms Null or empty subscription

Pinda Ros
Ranch Hand

Joined: Apr 14, 2003
Posts: 65
I am trying to deploy a message driven bean into JBoss App Server. When I am trying to deploy the whole MDB to the server, I get the following error: "javax.jms.JMSException: Null or empty subscription"
Would anyone know what I should do ??
Any help would be greatly appreciated
This is the following ejb-jar.xml file:
<?xml version = '1.0' encoding = 'windows-1253'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<message-driven>
<description>Message Driven Bean</description>
<display-name>MDB</display-name>
<ejb-name>MDB</ejb-name>
<ejb-class>MDB</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>Durable</subscription-durability>
</message-driven-destination>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
</message-driven>
</enterprise-beans>
<assembly-descriptor/>
</ejb-jar>


NanoAgent is an Artificial intelligence RoBot of microscopic proportions built by means of nanotechnology
Jason Stull
Ranch Hand

Joined: Feb 02, 2004
Posts: 47
Hi Pinda,
Try something like this:
ejb-jar.xml

jboss.xml


"I believe in coyotes and time as an abstract Explain the change the difference between What you want and what you need there's the key"
 
 
subject: jms Null or empty subscription