posted 21 years ago
I am trying to deploy a message driven bean into Ora 10g Application Server and I get this error message. I assume that there is something wrong with my ejb-jar.xml and orion-ejb-jar.xml files. Or even with the jms.xml file in the server.
ejb-jar.xml
<?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>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>Durable</subscription-durability>
</message-driven-destination>
<security-identity/>
<resource-ref>
<description>Topic MDB</description>
<res-ref-name>jms/MDBTopicConnectionFactory</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor/>
</ejb-jar>
orion-ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1253'?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar>
<enterprise-beans>
<message-driven-deployment name="MDB"
destination-location="jms/MDBTopic"
connection-factory-location="jms/MDBTopicConnectionFactory" />
</enterprise-beans>
</orion-ejb-jar>
I have also added this code into my server's jms.xml file
<!-- Topic bindings, these topic will be bound to their respective
JNDI path for later retrieval -->
<topic-connection-factory name="MDBTopicConnectionFactory" location="jms/MDBTopicConnectionFactory"/>
<topic name="MDBTopic" location="jms/MDBTopic"/>
Thanks in advance