ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Weblogic MDB+MQ

Post new topic  Reply to topic
 Weblogic MDB+MQ « View previous topic :: View next topic » 
Author Message
archit_agarwal
PostPosted: Wed May 02, 2007 3:19 pm    Post subject: Weblogic MDB+MQ Reply with quote

Novice

Joined: 14 Jan 2006
Posts: 16

Hi All,
Does anyone has an idea how to create multiple MDBs to be deployed in a single enterprise application?
Can we define for two different MDBs in one weblogic-ejb-jar.xml.
Here is how I defined for 2 MDBs in a weblogic-ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">

<weblogic-ejb-jar>
<description><![CDATA[Generated by XDoclet]]></description>
<weblogic-enterprise-bean>
<ejb-name>ExtMDBService1</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>20</max-beans-in-free-pool>
<initial-beans-in-free-pool>10</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>jmsQ01</destination-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<provider-url>t3://172.21.234.232:9004</provider-url>
<connection-factory-jndi-name>jmsQm01</connection-factory-jndi-name>
<jms-client-id>mqm</jms-client-id>
</message-driven-descriptor>
<reference-descriptor>
</reference-descriptor>
</weblogic-enterprise-bean>

<weblogic-enterprise-bean>
<ejb-name>ExtMDBService2</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>20</max-beans-in-free-pool>
<initial-beans-in-free-pool>10</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>jmsQM05</destination-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<provider-url>t3://172.21.234.232:9004</provider-url>
<connection-factory-jndi-name>jmsQm02</connection-factory-jndi-name>
<jms-client-id>mqm</jms-client-id>
</message-driven-descriptor>
<reference-descriptor>
</reference-descriptor>
</weblogic-enterprise-bean>

<idempotent-methods>
</idempotent-methods>

</weblogic-ejb-jar>

And similarly I make changes in ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>

<ejb-jar id="ejb-jar_1" 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">

<description><![CDATA[RxCInterfaceMDB generated by eclipse wtp xdoclet extension.]]></description>
<display-name>RxCInterfaceMDB</display-name>

<enterprise-beans>


<!-- Message Driven Beans -->
<message-driven id="MessageDriven_1">
<description><![CDATA[<!-- begin-xdoclet-definition -->]]></description>

<ejb-name>ExtMDBService1</ejb-name>

<ejb-class>com.ibm.test.jms.ExtMDBService1Mdb</ejb-class>

<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>acknowledgeMode</activation-config-property-name>
<activation-config-property-value>Auto-acknowledge</activation-config-property-value>
</activation-config-property>
</activation-config>

</message-driven>
<message-driven id="MessageDriven_2">
<description><![CDATA[<!-- begin-xdoclet-definition -->]]></description>

<ejb-name>ExtMDBService2</ejb-name>

<ejb-class>com.ibm.test.jms.ExtMDBService2Mdb</ejb-class>

<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>acknowledgeMode</activation-config-property-name>
<activation-config-property-value>Auto-acknowledge</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
</enterprise-beans>
<assembly-descriptor id="AssemblyDescriptor_1">
</assembly-descriptor>
</ejb-jar>


These xml files are being generated through XdoClet.
Please help me!

Thanks,
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Weblogic MDB+MQ
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.