• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unknown JMS Destination type

 
Preethi Krishna
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to deploy my MDB in Weblogic 9.2. My

code is

InitialContext initctx = new InitialContext();
cf = (ConnectionFactory)initctx.lookup("jms/CreateConnectionFactory");
queue = (Queue)cf.lookup("jms/CaseCreateQueue");


EJB-jar.xml is
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">

<enterprise-beans>
<message-driven>
<display-name>SampleMDB</display-name>
<ejb-name>SampleMessageBean</ejb-name>
<ejb-class>com.ejb.SampleMessageBean</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>jms/CreateConnectionFactory</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/CreateQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>

<?xml version="1.0" encoding="UTF-8" ?>
<weblogic-ejb-jar
xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920/weblogic-ejb-jar.xsd">

<weblogic-enterprise-bean>
<ejb-name>SampleMessageBean</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>10</max-beans-in-free-pool>
<initial-beans-in-free-pool>0</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>jms/CreateQueue</destination-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<provider-url>t3://localhost:7001</provider-url>
<connection-factory-jndi-name>jms/CreateConnectionFactory</connection-factory-jndi-name>
<jms-polling-interval-seconds>20</jms-polling-interval-seconds>
</message-driven-descriptor>
<resource-description>
<res-ref-name>jms/CreateConnectionFactory</res-ref-name>
<jndi-name>t3://localhost:7001/jms/CreateConnectionFactory</jndi-name>
</resource-description>
<resource-env-description>
<resource-env-ref-name>jms/CreateQueue</resource-env-ref-name>
<resource-link>CaseCreate#CreateQueue</resource-link>
</resource-env-description>
<resource-env-description>
<resource-env-ref-name>jms/CreateConnectionFactory</resource-env-ref-name>
<resource-link>CaseCreate#CreateConnectionFactory</resource-link>
</resource-env-description>

</weblogic-enterprise-bean>


</weblogic-ejb-jar>

weblogic-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/920" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<module>
<name>CaseCreate</name>
<type>JMS</type>
<path>CreateModule-jms.xml</path>
</module>
</weblogic-application>

When I try to start servicing the request for this application I get the following error
weblogic.utils.assertionError ***ASSERTION FAILED **** [Unknown JMS Destination type]

I did the check the server JNDI tree and I could see jms/CreateConnectionFactory and jms/CreateQueue.
Can anybody please help me with this issue???

Thanks in advance
Preethi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!