Receive asynchronous message from JMS  topic over web service

Hi,
I have a JMS topic and I want to expose it as a web service so that clients can
make durable subcription to the topic and receive messages asynchronously. What
is the best way of doing this ? Is there a portable (to other containers) way
of do this ? If not, is there a web logic specific way of doing this ?
Thanks,
Siva

So you expect clients to be receiving SOAP messages over HTTP? In this
case, the clients are really servers that are capable of servicing SOAP
requests, correct? And how about the senders: are they also using
SOAP/HTTP to send messages that are delivered to the receivers?
It should be possible to write this yourself using JMS not as the
transport, but as a mechanism for distributing the message to a set of
clients. You'll need to implement a Web Service for publishing to a
topic, an operation for registering an end point to recieve messages,
and an MDB (or other form of JMS subscriber) executing on the server to
relay the message to the end point.
Siva wrote:
Hi,
I have a JMS topic and I want to expose it as a web service so that clients can
make durable subcription to the topic and receive messages asynchronously. What
is the best way of doing this ? Is there a portable (to other containers) way
of do this ? If not, is there a web logic specific way of doing this ?
Thanks,
Siva

Similar Messages

  • Jms adapter not polling messages from jms topic

    Hi
    We have a jms adapter configured in BPEL process which need to poll messages from JMS topic.Unfortunately its not polling message from JMS Topic if we add Message Selector and Durable Subscriber properties in jca file.Please find jca file content below
    <adapter-config name="SyncCustomerPartyListCDHJMSConsumer" adapter="JMS Adapter" wsdlLocation="oramds:/apps/AIAMetaData/AIAComponents/ApplicationConnectorServiceLibrary/CDH/V1/ProviderABCS/SyncCustomerPartyListCDHProvABCSImpl.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/jms/aia/syncCustomerParty_cf" UIJmsProvider="WLSJMS" UIConnectionName="Dev"/>
      <endpoint-activation portType="Consume_Message_ptt" operation="Consume_Message">
        <activation-spec className="oracle.tip.adapter.jms.inbound.JmsConsumeActivationSpec">
          <!--property name="DurableSubscriber" value="XYZ"/-->
          <property name="PayloadType" value="TextMessage"/>
          <!--property name="MessageSelector" value="Target in ('XYZ')"/-->
          <property name="UseMessageListener" value="true"/>
          <property name="DestinationName" value="jms/aia/Topic.jms.COMMON.CustomerParty.PUBLISH"/>
        </activation-spec>
      </endpoint-activation>
    </adapter-config>
    If we remove Durable subscriber and message selector properties,its able to poll messages.
    Any pointer will help
    thanks in advance
    Baji

    After changing below property in jca file.JMS adapter is able to poll messages from JMS Topic.
    <property name="UseMessageListener" value="false"/>
    But if i un comment below line and deploy my code again, it stop pulling the messages from topic.
    <property name="DurableSubscriber" value="XYZ"/>
    If i bounce the server after above change and deployment ,it will start polling the message.I am not sure why i need to restart my server after adding above property.
    Thanks
    Baji

  • GUI receiving log messages from JMS

    Hi,
    I have three classes: GUI, EventListener and JMSListener. What I want to do is to create a login dialog. The user enters his username and password, presses the login button and waits (as this process can take a while). While waiting, he can see log messages sent via JMS.
    I set up a TextListener (in my case a JMSListener) and a subscriber like it is described here: http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html#1027256.
    But the JMSListener never gets any message although the connection is set up correctly (this is just a guess as no exception is thrown). I think that this is a GUI problem. Because if only the JMSListener is running, it does receive messages. Is it possible that the GUI blocks somehow?
    Here is some code... First the class that holds the main method:
    package de.dtnet.client.run;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    import de.dtnet.client.gui.SWDemoGUI;
    import de.dtnet.client.listener.SWDemoEventlistener;
    public class SWDemoClient {
        private static SWDemoGUI swdemo = null;
         * @param args
        public static void main(String[] args) {
            swdemo = new SWDemoGUI();
            SWDemoEventlistener listener = new SWDemoEventlistener(swdemo);
            swdemo.registerEventlistener(listener);
    }The code from the GUI (only the important parts):
    package de.dtnet.client.gui;
    import de.dtnet.client.listener.SWDemoEventlistener;
    public class SWDemoGUI extends JFrame implements Serializable {
        private static final long serialVersionUID = 1L;
         * Default constructor
        public SWDemoGUI() {
            initialize();
         * Creates widget objects and puts everything together
        public void initialize() {
            // GUI with JTextPane for log messages
        public void logOK(String msg) {
            log(OK, msg);
        public void logInfo(String msg) {
            log(INFO, msg);
        public void logWarning(String msg) {
            log(WARNING, msg);
        public void logError(String msg) {
            log(ERROR, msg);
        public void log(String level, String msg) {
            StyledDocument doc = messagesTextPane.getStyledDocument();
            try {
                doc.insertString(doc.getLength(), msg + "\n", doc.getStyle(level));
            } catch (BadLocationException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            messagesTextPane.setCaretPosition(doc.getLength());
        public void registerEventlistener(SWDemoEventlistener listener) {
            loginBtn.addActionListener(listener);
            usernameTxt.addFocusListener(listener);
            passwordField.addFocusListener(listener);
    }The enventlistener:
    package de.dtnet.client.listener;
    // imports
    public class SWDemoEventlistener implements ActionListener, FocusListener {
        private SWDemoGUI gui = null;
        private String logLevel = null;
        private String logMessage = null;
        private TopicConnectionFactory conFactory = null;
        private TopicConnection connection = null;
        private TopicSession topicSession = null;
        private Topic topic = null;
        private TopicSubscriber subscriber = null;
        public SWDemoEventlistener(SWDemoGUI gui) {
            this.gui = gui;
            initJMS();
        private InitialContext getInitialContext() {
            // set the properties for the InitalContext
            Properties env = new Properties( );
            env.put("java.naming.provider.url",
                    "jnp://localhost:1099");
            env.put("java.naming.factory.initial",
                    "org.jnp.interfaces.NamingContextFactory");
            env.put("java.naming.factory.url.pkgs", "org.jnp.interfaces");
            try {
                // initalize and return the InitalContext with
                // the specified properties
                return new InitialContext(env);
            } catch (NamingException ne) {
                System.out.println("NamingException: " + ne);
            return null;
        private void initJMS() {
            try {
                // Obtain a JNDI connection
                InitialContext jndi = getInitialContext();
                Object ref = jndi.lookup("ConnectionFactory");
                // Look up a JMS connection factory
                conFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(
                        ref, TopicConnectionFactory.class);
                // Create a JMS connection
                connection = conFactory.createTopicConnection();
                // Create a JMS session objects
                topicSession = connection.createTopicSession(
                        false, Session.AUTO_ACKNOWLEDGE);
                // Look up a JMS topic
                topic = (Topic) jndi.lookup("topic/testTopic");
            } catch (NamingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (JMSException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == gui.getLoginButton()) {
                // Do some authentication stuff etc.
                /* Now awaitening messages from JMS */
                subscribe(sessionID);
        public void subscribe(Long sessionID) {
            String selector =  "SessionID='" + sessionID.toString() + "'";
            gui.logInfo("Selector: " + selector);
            try {
                //subscriber = topicSession.createSubscriber(topic, selector, true);
                subscriber = topicSession.createSubscriber(topic);
                JMSListener listener = new JMSListener(gui);
                subscriber.setMessageListener(listener);
                connection.start();
                gui.logOK("Verbindung zu JMS erfolgreich");
            } catch (JMSException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    }and finally the JMSListener:
    ackage de.dtnet.client.listener;
    public class JMSListener implements MessageListener {
        private SWDemoGUI gui = null;
        private String logLevel = null;
        private String logMessage = null;
        public JMSListener(SWDemoGUI gui) {
            super();
            this.gui = gui;
        public void onMessage(Message incomingMessage) {
            System.out.println("You got message!");
            try {
                MapMessage msg = (MapMessage) incomingMessage;
                logMessage = msg.getString("Message");
                logLevel = msg.getString("Level");
            } catch (JMSException e) {
                e.printStackTrace();
            Runnable logTopicMessage = new Runnable() {
                public void run() {
                    System.out.println("Now updating the GUI");
                    gui.log(logLevel, logMessage);
            SwingUtilities.invokeLater(logTopicMessage);
            System.out.println("Message fully retrieved!");
    }I spent a whole day on this and I'm really becoming desperate as I can't see where the problem is and my time is running out (this is for my diploma thesis)! Does anyone of you? Please!
    Thank you!
    -Danny

    Hello Veronica4468,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning Messages and SMS:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Getting DOM Parsing Exception in translator while Dequeuing the message from JMS topic

    Hi All,
    Hope you all doing good.
    I have an issue.
    I am running on 11.1.1.5 SOA suite version on Linux.
    In my aplication I have 4 projects which are connected by with topic/queue.
    But in one of the communication, the JMS topic throws me the below error in the log, but dequeue happend perfectly fine and the application runs smoothly.
    [ERROR] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@530c530c] [userId: <anonymous>
    ] [ecid: 5552564bd7cf9140:-117a2347:142149c715a:-8000-00000000069dd133,0] [APP: soa-infra] JMSAdapter <project1>
    JmsConsumer_sendInboundMessage:[des
    tination = <TOPIC NAME>  subscriber = <Consumer project name>
    Error (DOM Parsing Exception in translator.[[
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Please make sure that the xml data is valid.
    ) while preparing to send XMLRecord JmsXMLRecord
    [ERROR] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@530c530c] [userId: <anonymous>
    ] [ecid: 5552564bd7cf9140:-117a2347:142149c715a:-8000-00000000069dd133,0] [APP: soa-infra] JMSAdapter <project name>
    java.lang.Exception: DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Please make sure that the xml data is valid.
            at oracle.tip.adapter.jms.inbound.JmsConsumer.translateFromNative(JmsConsumer.java:603)
            at oracle.tip.adapter.jms.inbound.JmsConsumer.sendInboundMessage(JmsConsumer.java:403)
            at oracle.tip.adapter.jms.inbound.JmsConsumer.send(JmsConsumer.java:1161)
            at oracle.tip.adapter.jms.inbound.JmsConsumer.run(JmsConsumer.java:1048)
            at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
            at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
            at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    But when I try putting the archived data on this topic, it throws me the same error but even dequeuing doesnt happen.
    I have extracted the payload and validated against the xsd, it looks fine and even the validator doesnt throw me any error.
    But I guess I am missing something, which I am immediately not getting.
    Please let me know, if I am soemthing here which is causing this erro.
    Thanks,
    Chandru

    I searched about this error, but no luck.
    First time when the message dequeues, the consumer can consume the message but throws the error in the log.
    But when I put the message back into queue from archive directory, the consumer doesnt consume message and throws me the same error.
    Does anyone faced this sort of issue.
    I checked my xsd throughly, and validated it externally. but didnt fine any error.
    if anyone knows, suggest me how to resolve this issue.
    thanks & regards
    Chandru

  • Get back the Message from JMS Topic

    Hi,
    I want to Process message came to the JMS topic (say for past 10 days) in PRODUCTION environment . Is there any way i can get those messages from Persistent Store(File/JDBC).Any sugesstions????
    thanks in advance...

    As far as I think you can not directly read messages from persistence store without putting the message integrity at stake.
    Also, do you know if the messages are actually in the persistence store? Messages will persisted by the Topic only if there is any durable subscriber is there which has not read those messages. If there are no durable subscribers or if all durable subscribers have read their copy of the message from Topic the messages will be removed from persistence storage.

  • How to Read Message from JMS Queue using Business Service(ALSB3.0)

    Hi,
     My Project Set up is as follows(using ALSB3.0).
    1>One Proxy Service with transport as HTTP.
    2>The Proxy service is calling another Business Service.
    3>The Business Service has transport layer as JMS.
    So here the business service is posting Request Message into the JMS queue.
    I want at the same time it(The Business Service) should listen to another queue and from there it should read Response Message and forward back to the caller proxy service.
    Can any one help me regarding this...
    Thanks in advance...
    Deba

    Hi ,
    Problem in : Reading / writing messages to the JMS Queue -
    I am stuck with the same problem and I am not able to proceed futher, Can you please help me out in sending an example of how to do right configurations in ALSB and on the server. I read the documentation but still I dont see messages in the queues.
    please help me out. can you post a small sample example
    thanks
    adi

  • Hi, I recently got the iPhone 6, a bit of mucking around with iMessage, over it to be honest. When i message from my macbook air my recipients receive my message from my email. HELP! it never used to do this. its so annoyingly frustrating.

    Hi, I recently got the iPhone 6, a bit of mucking around with iMessage, over it to be honest. When i message from my macbook air my recipients receive my message from my email. HELP! it never used to do this. its so annoyingly frustrating.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.)

  • How to remove a message from a Topic before it's consumed?

    Hi All,
              I'm using Weblogic JMS Extensions to publish messages to a topic so
              that consumers do not receive them for at least 1 hour after
              publishing. My problem is that I need to be able to delete selected
              messages from the topic sometimes before the consumers see it. I've
              looked everywhere but can't see a simple way of achieving this. Have I
              missed the obvious? (I hope I have!).
              Many thanks in advance.
              

    Essentially, the messages do not exist until that hour. There is
              currently no way to consume them.
              _sjz.
              "jim" <[email protected]> wrote in message
              news:[email protected]..
              > Hi All,
              >
              > I'm using Weblogic JMS Extensions to publish messages to a topic so
              > that consumers do not receive them for at least 1 hour after
              > publishing. My problem is that I need to be able to delete selected
              > messages from the topic sometimes before the consumers see it. I've
              > looked everywhere but can't see a simple way of achieving this. Have I
              > missed the obvious? (I hope I have!).
              >
              > Many thanks in advance.
              

  • Error encountered while collecting the data from JMS topic bus

    Iam encountering a problem while collecting the data from JMS topic bus and pushing the data to BAM.On the DesignStudio window, after I click on “update” button in the plan window to run the plan I get the following exception messages:
    IMessageSourceReceiver->messageReceive:
    javax.naming.CommunicationException: Connection refused: connect
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:292)
         at
    com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at
    iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
         at
    iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerS
    tart(JMSMessageSourceReceiverImpl.java:1001)
         at
    iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.messageRecei
    ve(JMSMessageSourceReceiverImpl.java:326)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at
    java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:426)
         at java.net.Socket.connect(Socket.java:376)
         at java.net.Socket.<init>(Socket.java:291)
         at java.net.Socket.<init>(Socket.java:147)
         at
    com.evermind.server.rmi.RMIClientConnection.createSocket(RMIClientConnecti
    on.java:682)
         at
    oracle.oc4j.rmi.ClientSocketRmiTransport.createNetworkConnection(ClientSoc
    ketRmiTransport.java:58)
         at
    oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java
    :78)
         at
    oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTr
    ansport.java:68)
         at
    com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.ja
    va:646)
         at
    com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientCon
    nection.java:190)
         at
    com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.jav
    a:174)
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:283)
         ... 5 more
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3A]
    Error during Message Receive operation.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3B]

    The error msg says that your BAM server cannot connect to your JMS provider. Make sure your configs are all ok, in EL DesignStudio, BAMArchitect EMSdefinition, etc. You can refer to the samples and technotes and tutorials to understand these details. If you are following the steps in the technote etc. pl verify your oc4j container is running, and oc4j version and 'jndi path' is ok. Give the doc name, pg number and step where you are getting this error.

  • How to retreive all unconsumed messages from a topic with a MDB?

    Hello!
    I have a webapp that stores TextMessages in a Topic in WebLogic.
    I have an ejbapp (Message driven bean) that reads messages from the topic.
    If both are up and running the ejbapp reads all messages sent from the webapp to the topic.
    But if I stop the ejbapp for a while and sends a couple of messages to the topic and then deploy the ejbapp again, then the ejbapp does not read the unconsumed messages. If I send a new message to the topic the ejbapp reads that new messages but it does not get the previous messages that are on the topic.
    Is this the way it should work? Or could I get the message driven bean to consume all the messages that it has not consumed from the topic when it starts?
    My weblogic-ejb-jar.xml looks like:
    <!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>
    <weblogic-enterprise-bean>
    <ejb-name>OrderManagerMDB</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>200</max-beans-in-free-pool>
    <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>jms/OrdersTopic</destination-jndi-name>
    <connection-factory-jndi-name>jms/OrdersConnectionFactory</connection-factory-jndi-name>
    </message-driven-descriptor>
    <enable-call-by-reference>True</enable-call-by-reference>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>And my ejb-jar.xml looks like:
    <!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>
    <ejb-name>OrderManagerMDB</ejb-name>
    <ejb-class>brownbagwarehouse.OrderManagerMDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    </message-driven-destination>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>My MDB onMessage looks like:
    public void onMessage(Message message)
    try
    TextMessage textMessage = (TextMessage)message;
    System.out.println(textMessage.getText());
    catch(Exception e)
    e.printStackTrace();
    }Best regards
    Fredrik

    I am not much familiar with Weblogic, but i would suggest, you do a search for how to setup "Durable Subscriptions" in Weblogic. This will ensure the the messages that were sent when the consumer was not available, will be delivered once the consumer is available

  • How to retrive all unread messages from a topic?

    Hello!
              I have a webapp that stores TextMessages in a Topic in WebLogic.
              I have an ejbapp (Message driven bean) that reads messages from the topic.
              If both are up and running the ejbapp reads all messages sent from the webapp to the topic.
              But if I stop the ejbapp for a while and sends a couple of messages to the topic and then deploy the ejbapp again, then the ejbapp does not read the unconsumed messages. If I send a new message to the topic the ejbapp reads that new messages but it does not get the previous messages that are on the topic.
              Is this the way it should work? Or could I get the message driven bean to consume all the messages that it has not consumed from the topic when it starts?
              My weblogic-ejb-jar.xml looks like:
              <pre><!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>
              <weblogic-enterprise-bean>
              <ejb-name>OrderManagerMDB</ejb-name>
              <message-driven-descriptor>
              <pool>
              <max-beans-in-free-pool>200</max-beans-in-free-pool>
              <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
              </pool>
              <destination-jndi-name>jms/OrdersTopic</destination-jndi-name>
              <connection-factory-jndi-name>jms/OrdersConnectionFactory</connection-factory-jndi-name>
              </message-driven-descriptor>
              <enable-call-by-reference>True</enable-call-by-reference>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar></pre>
              And my ejb-jar.xml looks like:
              <pre><!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>
              <ejb-name>OrderManagerMDB</ejb-name>
              <ejb-class>brownbagwarehouse.OrderManagerMDB</ejb-class>
              <transaction-type>Container</transaction-type>
              <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
              <message-driven-destination>
              <destination-type>javax.jms.Topic</destination-type>
              </message-driven-destination>
              </message-driven>
              </enterprise-beans>
              </ejb-jar></pre>
              My MDB onMessage looks like:
              <pre>public void onMessage(Message message)
                   try
                        TextMessage textMessage = (TextMessage)message;
                        System.out.println(textMessage.getText());
                   catch(Exception e)
                        e.printStackTrace();
              </pre>
              Best regards
              Fredrik

    For subscriptions to continue to exist even while no subscriber is attached they need to be "durable". See the EJB programmer's guide, and search for "durable" in the MDB doc.
              In JMS terminology these are termed "durable subscriptions".
              Tom

  • How can I send and receive a message from  a queue using standalone program

    Hi,
    I want to write a standalone Java program which has to post a message to a queue and receive a message from a queue thats specified as a replyto queue.I want to have my application to be completely standalone without the need of a Application server.What all the Jars do I need to include in the application.My aim is to have the application standalone and portable so that the application runs on any machine that has a JRE.
    Thanks in advance,
    Prathima

    Hi,
    You can get quite simple standalone MQ Java programs from this site http://www.capitalware.biz/mq_code_java.html.
    Also regarding the jars required for your application depends on the API being used. If you use MQI API few jars are required and if you decide to use JMS API you'll require few other jars. But you got to either install Websphere MQ Java Client, which will copy the jars to the respective location, or you can choose to copy the jars from some other machine manually.
    Eventually, all the jars related to MQI and JMS API will reside under /usr/mqm/java/lib/ or /var/mqm/java/lib/ UNIX Environment. And in case of WINTEL, you should find the jars under C:\Program Files\IBM\WebSphere MQ\Java\lib.
    Trust it clarifies...
    Naren

  • Recieve/Read  Messages  from JMS Queue through ALSB

    Hi,
    I have configured JMS Queue in weblogic server.
    I have created Messaging Service in ALSB which sends messages in MESSAGE QUEUE.
    Now Is it possinle to receive messages from JMS Queue by creating business service in Aqualogic Service bus???

    Hi dear,
    <br>
    I am sending Message through Serializable Object.
    <br>
    I have JMS Proxy which gets invoked when i send message to JMs Queue. JMS Proxy then calls business service.
    <br>
    <br>
    Business Service has two functions. One is taking String as input and one is taking Serializable Object as Input.
    <br>
    <br>
    public void recieveString(String str)<br>
    public void recieveObject(Trade obj)<br>
    --------------------------------------------------<br>
    Now I have configured Proxy Services' Request and Response
    Message Type as a "TEXT". and I am sending ObjectMessage here so what kind of change I require.
    <BR>
    I also want to configure my proxy so that if JMS queue recieves TextMessage then it should invoke reciveString() function and if Object Message then vice versa.....
    <BR><BR>
    But i am not able to handle object even...
    When I am sending Object Message it takes as a TextMessage.
    I am getting following exception when I am sending Object Message to JMS QUEUE. Request and Response Message types are XML Schema of that object.
    <BR>
    <BR>
    <Nov 30, 2006 4:57:19 PM IST> <Warning> <EJB> <BEA-010065>
    <BR>
    <MessageDrivenBean threw an Exception in onMessage(). The exception was: java.lang.AssertionError.<BR>
    java.lang.AssertionError at com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.j
    ava:112)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:42
    9)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDL
    istener.java:335)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:
    291)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
    Truncated. see log file for complete stacktrace
    >
    Message was edited by:
    alwaysvaghu

  • My MDB keep receiving the message from the WLS 7.0

              The attachment is my onMessage method in MDB. On the send side, I sent out my message.
              But one MDB side, I keep receiving new message from TOPIC for each 40 seconds.
              Do you guys know what is wrong?
              public void onMessage(Message msg) {
              try {
              Thread thisThread = Thread.currentThread();
              try {
              System.out.println( "[Start]: " + thisThread.toString() );
              while( true) {
              thisThread.sleep( 1000 );
              System.out.println( "[     ]: " + thisThread.toString() );
              System.out.println( "[Exit ]: " + thisThread.toString() );
              catch ( java.lang.InterruptedException ie ) {
              ie.printStackTrace();
              catch(JMSException ex) {
              ex.printStackTrace();
              

    Try using the installer(s) from http://forums.adobe.com/thread/909550

  • What is the best antivirus software for a Macbook Pro...I recently received a message from Google that someone made an attempt to hack into my mail account so I needed to change my PW and verify myself as the user.  The message suggested that I run a scan

    What is the best antivirus software for a Macbook Pro...I recently received a message from Google that someone made an attempt to hack into my mail account and I needed to change my PW and verify myself as the user.  The message suggested that I run a virus scan to check for sny malware or other types of viruses.  I do not have any software for this and up until now have not had a problem....any help is appreciated.  I would like a simple but effective solution!

    It's worth noting that if your Gmail has been hacked, it would likely have nothing to do with your MacBook.  Hacking web based email is fairly common and it doesn't require any access to your machine whatsoever.  In the same way that you can simply go to the Gmail webpage through any browser, any hacker can use the same method.  It doesn't mean your machine has been compromised in any way (and it has likely not been).  I have never received an email from Google of this nature.  I have received notifications when someone has attempted to create an account with my name in which they basically say that there is no action required if you're the rightful owner.

Maybe you are looking for

  • Fan speed problem Power Mac G5 Dual 1.8 GHz PowerPC - please help

    Please HELP, I have a fan speed problem with my Power Mac G5 Dual 1.8 GHz PowerPC This is a NOT an Intel machine. I am running Mac OS X v10.5.8 Power Mac G5 - PowerMac 7,2 - Power PC 970 (2.2) - 1.8 GHz with 2 CPUs - L2 Cache (per CPU) 512 KB - Memor

  • Need help with sed to fix migrated web site links (part II)

    I thought I had this fixed, but I didn't, so starting over: I'm moving my web files from one host to another, and have backed up my directory called WEB into my user downloads folder.  The site is dead simple, mostly links within the site, pages prim

  • When I plug any of my phones into the computer it does not connect.

    When I plug any of my phones into the computer it does not connect. I can hear a beep but that's it.  I checked all of my USB cords and the same results. Normally it would download my new pictures and start charging and that no longer happens. When I

  • Problems connecting

    My MBP rarely picks up my wireless network, and if it does then it disconnects after a few minutes. My brothers MBP (newer than mine) picks it up completely fine. I've tried so many things, hours on the phone to my ISP, I even completely wiped my har

  • XI add-on (APPINT 200_620) for R/3 Enterprise

    Dear SAP Experts, where i can find XI add-on for 4.7 R/3 Enterprise? According to the note 439915 it must be here: As of May 01, 2007 the ABAP Add-ON APPINT 6.20 installation (file name 'SAPK-200AIINAPPINT') is available at service.sap.com/swdc -> Do