Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jms Null or empty subscription

 
Pinda Ros
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Jason Stull
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pinda,
Try something like this:
ejb-jar.xml

jboss.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic