MDB listening to multiple queues?

          Is it possible to configure an MDB to listen to more than one Queue ?
          

No.
          _sjz.
          "Jim" <[email protected]> wrote in message news:3d496d70$[email protected]..
          >
          > Is it possible to configure an MDB to listen to more than one Queue ?
          

Similar Messages

  • Listening to multiple queues

    Hi all,
    Can a MDB listen to multiple queues. If so how will be the deployment descriptor
    Thanks
    Hashin

    No.
              _sjz.
              "Jim" <[email protected]> wrote in message news:3d496d70$[email protected]..
              >
              > Is it possible to configure an MDB to listen to more than one Queue ?
              

  • Can an MDB listens to remote queue

    In my application , i have created a queue and MDB for that queue.
    this MDB should also listen to the queue in another system that is remote queue.how is this possible.
    because the queue will be in remote system. and MDB will be in my system. the queue to which this MDB should listen will be in specified in deplyment descriptors. then how it will identify that the queue is local or remote.
    Please clarify me as we have a release near.

    Hello Sairam,
    I have used MDB in WebLogic Server. You can add the Destination Queue, Connection factory, etc information in weblogic-ejb-jar.xml.
    I am not sure what is to be used in Oracle Server.
    Simple search in Oracle Website gave me some links..
    http://www.oracle.com/technology/tech/java/oc4j/ejb3/how_to/howtoejb30mdb/doc/how-to-ejb30-mdb.html
    Search the Oracle website for more information.
    Thanks and regards,
    Pazhanikanthan. P

  • Making MDB listen to a queue

    Hi all,
    Can any one tell me how to make an MDBean listen to a Queue Using JDev wizard.
    Kindly help....

    mshreedhaaran wrote:
    Hi,
    Thanks to the below post(s) -
    <a class="jive-link-external" href="http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html">http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html</a>
    <a class="jive-link-external" href="http://www-128.ibm.com/developerworks/websphere/library/techarticles/0604_kesavan/0604_kesavan.html">http://www-128.ibm.com/developerworks/websphere/library/techarticles/0604_kesavan/0604_kesavan.html</a>
    I have been able to get this far (ofcourse explained very well step by step in these posts). So MDB on WLS can pick messages from a Queue on MQ Server on the same machine.
    If someone can highlight what <font face="tahoma,verdana,sans-serif" size="1" color="#000">changes</font> I have to make to get the MDB to pick message from the Queue when MQ Server is on a different machine.
    Thanks in advance.
    best regards,
    MuraliIt's helpful to me, Thanks for your sharing! Now I understand more about it, It's quite useful.

  • MDB Listening to remote queue

              Hi,
              Could any of you please let me know what needs to be done to configure my MDB
              to listen to a remote queue in a different domain (also using wls 7.0).
              I tried adding the <provider-url> element in the weblogic-ejb-jar.xml but looks
              like that didnt work.
              Thanks,
              -Sri
              

    Posting the actual error helps. This error usually occurs due
              to a naming conflict. Make sure that:
              All local and remote:
              WL servers are named differently
              WL JMS servers are named differently
              WL JMS stores are named differently
              Tom, BEA
              P.S. For future reference, a google search of
              this newsgroup often quickly leads to answers. In this
              case search for "Connection not found" or "invocableFind".
              Sri wrote:
              > Tom, I did. But I still get this error...
              >
              > [exec] <Jun 10, 2003 9:27:57 AM EDT> <Error> <EJB> <010020> <EJB-20 - Messa
              > geDriven - Couldn't start the JMS connection: weblogic.jms.common.JMSException:
              > Connection not found
              > [exec] weblogic.jms.common.JMSException: Connection not found
              > [exec] at weblogic.jms.dispatcher.InvocableManager.invocableFind(Invoca
              > bleManager.java:134)
              > [exec] at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Req
              > uest.java:592)
              > [exec] at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(Dispatche
              > rImpl.java:275)
              > [exec] at weblogic.jms.client.JMSConnection.start(JMSConnection.java:54
              > 7)
              > [exec] at weblogic.ejb20.internal.JMSConnectionPoller.startJMSConnectio
              > n(JMSConnectionPoller.java:1228)
              > [exec] at weblogic.ejb20.deployer.MessageDrivenBeanPoolInfoImpl.startCo
              > nnection(MessageDrivenBeanPoolInfoImpl.java:150)
              > [exec] at weblogic.ejb20.deployer.MessageDrivenBeanPoolInfoImpl.start(M
              > essageDrivenBeanPoolInfoImpl.java:223)
              > [exec] at weblogic.ejb20.deployer.EJBDeployer.deployMessageDrivenBeans(
              > EJBDeployer.java:1560)
              > [exec] at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:14
              > 06)
              > [exec] at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:391)
              > [exec] at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationC
              > ontainer.java:1039)
              > [exec] at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicati
              > onContainer.java:1025)
              > [exec] at weblogic.management.deploy.slave.SlaveDeployer.setActivationS
              > tateForAllApplications(SlaveDeployer.java:617)
              > [exec] at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDe
              > ployer.java:376)
              > [exec] at weblogic.management.deploy.DeploymentManagerServerLifeCycleIm
              > pl.resume(DeploymentManagerServerLifeCycleImpl.java:235)
              > [exec] at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleLi
              > st.java:65)
              > [exec] at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832)
              > [exec] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
              > [exec] at weblogic.Server.main(Server.java:32)
              > [exec] >
              >
              > Tom Barnes <[email protected]> wrote:
              >
              >>Check your server logs for Warning and/or error messages.
              >>
              >>Make sure that you specified a correct:
              >>
              >>provider-url
              >>
              >>destination-jndi-name
              >>
              >>connection-factory-jndi-name (needed if you disabled the default
              >>connection factories in the remote domain)
              >>
              >>Sri wrote:
              >>
              >>>Hi,
              >>>
              >>>Could any of you please let me know what needs to be done to configure
              >>
              >>my MDB
              >>
              >>>to listen to a remote queue in a different domain (also using wls 7.0).
              >>
              >>>I tried adding the <provider-url> element in the weblogic-ejb-jar.xml
              >>
              >>but looks
              >>
              >>>like that didnt work.
              >>>
              >>>Thanks,
              >>>-Sri
              >>
              >
              

  • MDBs listen on remote queue

    How do you configure MDBs to listen on a remote queue in OAS 10g 10.1.3?
    I've tried using the SonicMQ example in the container services guide as a template, but I haven't been able to get it to work.
    Thanks.
    Dan

    Ok I understand now. When you said remote I thought you meant a destination outside the service bus, and not an MQ remote queue. Unfortunately I have little advice to give. The documentation states:
    When you create an MQ service, select the transport protocol as mq and specify the Endpoint URI in the Transport Configuration >page. Specify the Endpoint URI in mq://local-queue-name?conn=mq-connection-resource-ref format where
    local-queue-name is the name of the local queue configured on the MQ server
    mq-connection-resource-ref points to the location of the MQ connection resource I don't know if it's possible to use a remote queue directly, my knowledge of MQ is limited. Hopefully someone else can help. Or you could contact support and ask if remote queues are supported.

  • MDBs deployed to multiple queues using annotations

    Is it possible to have one MDB implementation and deploy it to several different queues?
    If there was a new annotation like MessageDrivens in the example below,
    /* doesn't exist but would be nice */
    @MessageDrivens (
    @MessageDriven( - details of first queue - ),
    @MessageDriven( - details of second queue - ),
    @MessageDriven( - details of third queue - )
    public class MyMDB implements MessageListener {
    This is all possible in deployment descriptors, but it would be much tidier in annotations.

    Is it possible to have one MDB implementation and deploy it to several different queues?
    If there was a new annotation like MessageDrivens in the example below,
    /* doesn't exist but would be nice */
    @MessageDrivens (
    @MessageDriven( - details of first queue - ),
    @MessageDriven( - details of second queue - ),
    @MessageDriven( - details of third queue - )
    public class MyMDB implements MessageListener {
    This is all possible in deployment descriptors, but it would be much tidier in annotations.

  • How do I use same MDB for multiple Queues? Deployment ?

              Here is what I am trying to do
              I have written one MDB that I want to use for multiple queues. I have seen posting
              mentioning that code a new weblogic-ejb-jar.xml to define other queues as the
              solution.
              Is there any other work around?
              I want to add queues in future as and when needed. I don't want to modify the
              already deployed jar to replace it with new weblogic-ejb-jar.xml everytime I have
              to add another queue for the message-driven-bean. Is is possible to use some kind
              of reference tag and just put weblogic-ejb-jar.xml in a new jar file and deply
              that every time I have a new queue to use for this MDB ( I don't think so, but
              again ???).
              Any help would be greatly appreciated.
              Chris
              

    Sorry -- that's the only solution for now.
              greg
              "Chris" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Here is what I am trying to do
              >
              > I have written one MDB that I want to use for multiple queues. I have seen
              posting
              > mentioning that code a new weblogic-ejb-jar.xml to define other queues as
              the
              > solution.
              >
              > Is there any other work around?
              >
              > I want to add queues in future as and when needed. I don't want to modify
              the
              > already deployed jar to replace it with new weblogic-ejb-jar.xml everytime
              I have
              > to add another queue for the message-driven-bean. Is is possible to use
              some kind
              > of reference tag and just put weblogic-ejb-jar.xml in a new jar file and
              deply
              > that every time I have a new queue to use for this MDB ( I don't think so,
              but
              > again ???).
              >
              > Any help would be greatly appreciated.
              >
              > Chris
              

  • Urgent : MDB stops listening to the queues after some time  !!!

    Hi,
    I am using OJMS with OC4J 10.1.2 and db 9.2.0.5. I have a web application which send messages into the queue very frequently.
    But the problem is the MDBs stop listening to the queues after some time (1-2 days) and no more messages will be dequeued from that point.
    All these messages will move to the exception queue after their expiry.
    But the dequeing agains resumes after restarting the OC4J !.
    I guess, at some point mdbs are either becoming busy (locked ) or some exception occured while dequeing, hence they stop listening to the queues.
    Please throw some light on this issue as it is very crucial in my project.
    Regards
    Prashanth

    I've noticed this lately as well, with my iPhone 4. I couldn't confidently pin it directly on any particular iOS update, but my iPhone used to automatically connect up via Bluetooth with my Prius's handsfree feature, and now it doesn't. I work with a CE-based device at my job, with Bluetooth capability, and I used to test out that feature by having it discover my iPhone. This no longer works either.
    What I have found (not really a solution, but it does work and may be a clue for Apple) is that if I simply go to the Settings app then the General -> Bluetooth screen and let it sit there, it will pair right up with my car within a few seconds. Bluetooth is always on, and always says "Now Discoverable" at the bottom of the settings screen.

  • MDB listening on Socket instead of Queue

    Hi all,
    Is it possible for to make MDB listen on socket instead of queues using JCA. Can anyone please help me on this.
    Thanks in advance

    Hi,
    Thanks for the reply. In the example provided, it is for mail. Since we have javax.mail.Message message API we can use this. How about Socket.Here am lost. Can you please tell how to go with this.
    I also had tried the above one, but while deploying MDB, I error as MDB is in failed state with Exception as Resource Adaptor "EchoXMLRP" is not deployed. Where as i had already deployed it. Also i had deployed "EchoXMLRP" as Resource Adaptor Module. But when i view the same its not present in standalone Resource Adaptor, instead its there in Modules.

  • Multiple queue vs single queue - peformance

    Hi All,
    Could pls throw some light on the following design.
    Currenty, We have more than 100 queues and for each there is a different MDB to receive the message.Now, somehow we made a single instance of same MDB listen to all these queues by looking at the input message. The requiement now is, is it possible to club all the queues into single queue as it's asynchronous messaging. The receiver may also try write into the same queue at the end of message processing.If so, how would be performance. Is this performance better than having multiple queues?.
    The message are expecting to be 25 k/day in the queue. And we are using Weblogic server.
    Please let me know if you need more details.
    Thanks
    Srinath

    You could try to use selectors to assign messages to particular MDBs. This way you off load some of the work on the broker but selectors by their nature usually have an impact on broker's performance. It all depends on your application, your expectations, size and the rate of your messages, how long it takes to process them on the client side. There is no simple answer in this case. You would have to test some scenarios to come up with a best solution that fits your requirements. Having said that I personally believe that some degree of partitioning of your queue could be beneficial. On a heavily loaded system it may increase the concurrency of the system and its resilience, particularly if you place the queues in different brokers. Try to imagine your broker as if it was a DB server with just one table (I'm not sure if this is the best analogy but I can't think about anything else at the moment).

  • One queue or multiple queues?

              Hi all,
              I have a JMS-based app that performs a few business functions, and each business
              function is handled by a single MDB. These MDBs see moderate traffic volumes
              (<5000 msg/day), and my question is this:
              Is it better to leave this design as-is, or is it better to merge these MDBs
              and their
              corresponding queues and use JMS selector to decide what biz function to perform?
              -j
              

    Performance-wise it is better to use multiple queues, but
              your message rate is likely too low for this to make
              a difference.
              There is another advantage to using multiple queues:
              they make it easier for system administrators to
              see the statistics for different business processes, and
              possible to manage each differently.
              John wrote:
              > Hi all,
              >
              > I have a JMS-based app that performs a few business functions, and each business
              > function is handled by a single MDB. These MDBs see moderate traffic volumes
              > (<5000 msg/day), and my question is this:
              >
              > Is it better to leave this design as-is, or is it better to merge these MDBs
              > and their
              > corresponding queues and use JMS selector to decide what biz function to perform?
              >
              > -j
              

  • MDB listening to a Oracle AQ, holding ADT messages...

    Hi !
    I'm trying to set a MDB to listen for incoming messages on an Oracle AQ. When I created the queue, I specified that the queue should contain payload of type ADT. I'm using Bea Weblogic server 8.1 sp4 and Oracle 10.2.0. The creation of the connection to the queue is implemented as a start up class and bound to the context during server start up.
    However it fails to start up, I get the following exception:
    <20.mar.2007 kl 11.03 CET> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB:
    MyWebLogicMDB is unable to connect to the JMS destination: AQJMSQueue. The Erro
    r was:
    oracle.jms.AQjmsException: JMS-137: Innholdsfabrikk mÕ angis for mÕl med ADT-inn
    hold
    oracle.jms.AQjmsException: JMS-137: Innholdsfabrikk mÕ angis for mÕl med ADT-inn
    hold
    at oracle.jms.AQjmsError.throwEx(I)V(AQjmsError.java:288)
    at oracle.jms.AQjmsConsumer.<init>(Loracle.jms.AQjmsSession;Ljavax.jms.D
    estination;IILjava.lang.String;Ljava.lang.Object;Loracle.jms.AQjmsSelector;Ljava
    .lang.String;Z)V(AQjmsConsumer.java:385)
    at oracle.jms.AQjmsConsumer.<init>(Loracle.jms.AQjmsSession;Ljavax.jms.D
    estination;IILjava.lang.String;Ljava.lang.Object;Loracle.jms.AQjmsSelector;Ljava
    .lang.String;)V(AQjmsConsumer.java:254)
    at oracle.jms.AQjmsSession.createReceiver(Ljavax.jms.Queue;Ljava.lang.St
    ring;Ljava.lang.Object;)Ljavax.jms.QueueReceiver;(AQjmsSession.java:1631)
    at oracle.jms.AQjmsSession.createReceiver(Ljavax.jms.Queue;Ljava.lang.St
    ring;)Ljavax.jms.QueueReceiver;(AQjmsSession.java:1553)
    at weblogic.ejb20.internal.JMSConnectionPoller.setUpQueueSessions(Ljavax
    .jms.Destination;Ljava.lang.String;III)V(JMSConnectionPoller.java:1720)
    at weblogic.ejb20.internal.JMSConnectionPoller.createJMSConnection()V(JM
    SConnectionPoller.java:2019)
    at weblogic.ejb20.internal.JMSConnectionPoller.connectToJMS()V(JMSConnec
    tionPoller.java:1180)
    at weblogic.ejb20.internal.JMSConnectionPoller.startJMSConnectionPolling
    ()V(JMSConnectionPoller.java:846)
    at weblogic.ejb20.deployer.MessageDrivenBeanPoolInfoImpl.start()V(Messag
    eDrivenBeanPoolInfoImpl.java:234)
    at weblogic.ejb20.deployer.EJBDeployer.deployMessageDrivenBeans()V(EJBDe
    ployer.java:1660)
    at weblogic.ejb20.deployer.EJBDeployer.start(Z)V(EJBDeployer.java:1488)
    at weblogic.ejb20.deployer.EJBModule.start()V(EJBModule.java:689)
    at weblogic.j2ee.J2EEApplicationContainer.start([Lweblogic.j2ee.J2EEAppl
    icationContainer$Component;)V(J2EEApplicationContainer.java:2127)
    at weblogic.j2ee.J2EEApplicationContainer.activate([Lweblogic.management
    .configuration.ComponentMBean;)V(J2EEApplicationContainer.java:2168)
    at weblogic.j2ee.J2EEApplicationContainer.activate()V(J2EEApplicationCon
    tainer.java:2115)
    at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivat
    ion(Z)V(SlaveDeployer.java:3082)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
    llApplications(ZZ)V(SlaveDeployer.java:1751)
    at weblogic.management.deploy.slave.SlaveDeployer.resume()V(SlaveDeploye
    r.java:359)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e()V(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume()V(SubsystemManager.java:131
    at weblogic.t3.srvr.T3Srvr.resume()V(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:361)
    at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)
    >
    The problem is that the MDB cannot be set up to dequeue the message because the payload factory has to be set for the consumer in order to receive messages from queues which have messages with ADT payload.
    So my questions are:
    1) Is there a way to set the payload factory to use in the MDB? (deployment desc.)
    2) Do MDB support AdtMessages?
    3) Are there any other ways to listen to an Oracle queue which has ADT type?
    mvh
    jb

    Hi,
    I'm also having the same identical problem with an EJB 3.0 MDB listening to an AQ queue (via OJMS) with a payload type of ADT. I can successfully dequeue messages from a queue with a JMS payload type, but as soon as I point it to and ADT type queue I get:
    oracle.jms.AQjmsException: JMS-137: Payload factory must be specified for destinations with ADT payloads
    I can't however seem to find anything in the Oracle documentation that shows how to do this, and which class corresponds to this "payload factory".
    The following link seems to suggest that OJMS supports ADT types in addition to the standard JMS message types:
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/OC4J-FAQ-JMS-904.html
    although I'm not sure if this is true for Message Driven Beans.
    Could you please confirm whether MDB's support ADT message types?
    Many thanks
    Phil

  • @MessageDriven - possible to subscribe to multiple Queues / Topics?

    Hi there,
    I got a rather basic question which I couldn't google.
    Is it possible for ONE Message Driven Bean in EJB3 to subscribe to more than one Queue or Topic (multiple subscriptions).
    If so, how?
    I appreciate your help!

    Thank you for pointing that out, even though I was hoping for another answer.
    I think there may be a couple of cases where it would make sense that one MDB subscribes to multiple topics.
    Anyway, I guess I'll just implement the functionality in another session bean and use the MDS's as a sort of a relay.
    Thanks again!

  • Single OSB Proxy Service Listening to multiple MQs

    Hi All,
    I am using OSB 11.1.1.5 and Websphere MQ version 6.
    I have a requirement to make a single proxy service to listen to multiple MQs. Is this possible?
    If yes, please help. If no, what is the work around?
    Regards,
    Karthik

    One proxy service can listen and consume messages from one MQ only as you can mention only one Endpoing URI with MQ transport in OSB.
    Work around is to create as many proxy services as you have MQ queues and create one common proxy service with local transport and let all MQ proxies call the common proxy service over local transport.

Maybe you are looking for

  • Tab Key in Word not indenting lists!?

    So, all of a sudden when I create a list in Word the Tab key and the Shift + Tab key combo no longer indent/dedent items in a list. I've tried: - Both of the "Full Keyboard Access" modes in Keyboard and Mouse. Not like this should effect what goes on

  • Cronjob: ssh connection fails

    Hi Forums, I have a bash script which does some tasks on a remote server via ssh. The connection uses a private/public key without a passphrase as this seems to be the only way to connect via ssh in a cronjob. If I execute the script manually, then i

  • TS3274 Cannot unlock iPad

    "Slide to unlock" Does not work.

  • EventFilters: Access to an existing filter to add more forms by eventtype

    We have a system in which we previously added the EventFilters et_CLICK and et_FORM_CLOSE, later when in the addon we need to add the filters if we need to filter any extra form for those events it raises an error: "Filter already exists" so we had t

  • Trouble recording simulation & ppt at the same time

    I have downloaded the trial version of Captivate4. I need to put together a presentation for our president that has three windows: the camera, the powerpoint and the software simulation. I need to record it all together and publish. I absolutely cann