How can I receive messages asynchronously?

Hi,
I am reading the AQ User's Guide, and it talks about that Topic Publisher-Subscriber model and MessageListener.
I wrote a Publisher code which creates a ADT payload and publishes. I also wrote a Subscriber which has the following
code segment:
subs[0] = ((AQjmsSession)tsess).createDurableSubscriber(topic, "PROG1", null, false, Emp.getFactory());
subs[1] = ((AQjmsSession)tsess).createDurableSubscriber(topic,"PROG2", null, false, Emp.getFactory());
MessageListener topicListener = new MesgListener(tsess);
tsess.setMessageListener(topicListener);
System.out.println("To end program, enter Q or q, then <return>");
I start the Subscriber first and waits for incoming messages from Publisher. Then in another window, I execute the
Publisher. I ASSUME that when I execute the Publisher, Subscriber should get the Topic and call
tsess.setMessageListener(topicListener). But this is not working, I am not seeing anyting in the Subscribe window.
Could you please let me know what I am doing wrong?
Thanks,
Mustafa

I am seeing the same thing, and would really like to stick with using the AQjms interface if possible. Does anyone know of a work-around? Do I need to use the pl/sql dequeue method? Thanks in advance, Chris

Similar Messages

  • How can I receive messages that I erased?

    How can I receive messages that I have erased?

    You can text with anybody using your Android phone no matter what type of phone the other person is using. The phones will be using standard SMS text messaging. You cannot use your iPad to text with Android devices, Messages on the iPad only works with other Apple iOS devices.
    If your friends are trying to message you from their iPhones to your iPad, they have to send the text to your Apple ID email address and you have to set up messages to use your Apple ID instead of the iPhone number. Your Apple ID should already be accessible in the settings since you have to set up Messages with your Apple ID in the first place.
    Settings>Messages>Send and Receive at>You can be reached by iMessages at>Your Apple ID email address. Select the Apple ID in there.

  • How can I receive messages

    How I can receive messages

    You can text with anybody using your Android phone no matter what type of phone the other person is using. The phones will be using standard SMS text messaging. You cannot use your iPad to text with Android devices, Messages on the iPad only works with other Apple iOS devices.
    If your friends are trying to message you from their iPhones to your iPad, they have to send the text to your Apple ID email address and you have to set up messages to use your Apple ID instead of the iPhone number. Your Apple ID should already be accessible in the settings since you have to set up Messages with your Apple ID in the first place.
    Settings>Messages>Send and Receive at>You can be reached by iMessages at>Your Apple ID email address. Select the Apple ID in there.

  • How can I receive messages on my ipad after switching my phone to android

    I used to have all Apple products but decided to switch it up this time when I upgraded my phone.  My hubby is still on all Apple.  When I try to message him from my ipad/imessage, he will receive is on his iphone, but it will no longer let him reply.  Any ideas if there is something that I need to change?   I took my phone number out of iMessage on my iPad so that I can receive texts on my phone.... but sometimes it is more convenient for me to use my ipad... it also makes me wonder if any other friends who have iphone might text and I will never get it.....

    You can text with anybody using your Android phone no matter what type of phone the other person is using. The phones will be using standard SMS text messaging. You cannot use your iPad to text with Android devices, Messages on the iPad only works with other Apple iOS devices.
    If your friends are trying to message you from their iPhones to your iPad, they have to send the text to your Apple ID email address and you have to set up messages to use your Apple ID instead of the iPhone number. Your Apple ID should already be accessible in the settings since you have to set up Messages with your Apple ID in the first place.
    Settings>Messages>Send and Receive at>You can be reached by iMessages at>Your Apple ID email address. Select the Apple ID in there.

  • How can i receive message from one phone to the other

    i have iphone 4s now i want to receive one text from the another phone

    Backup your iTunes library to an external drive and onto the other computer
    http://support.apple.com/kb/ht1751

  • HT201270 how can i receive text messages using my iPad 3 wifi+cellular?

    please help...how can i receive text messages with my iPad 3 wifi+cellular? thanks?

    Turn on iMessage in settings, then others can send you messages by addressing them to the email address you set in Settings>Messages>Receive At.

  • How can I receive text messages on my iPhone and iPad ?

    How can I receive text messages on my iPhone and iPad?

    If you are using the iMessage app on your iPad, you need to use the same email address you use on your iPhone.  But, be advised, that when people email your cell number on your iPhone, you will not get the message on your iPad.  iPad is not a cell phone.  And also know that iMessage on iPad is intended to only let you text with other iOS (iPhone, iPad, iPod Touch) devices. 
    If you want to be able to text to anyone from your contacts list (those for example who do not own an iOS device), there are free apps in the App Store, such as TextFree, which you can download.  But, TextFree will assign you a number (I know kind of odd since iPad is not a cell phone), which you can then text anyone you want.  You'll just need to let your friends know the texts are coming from you.

  • How can I receive a "send receipt" for email I send?

    How can I receive a "send receipt" when I send email?

    You'll essentially get a "Send Receipt" immediately after sending as the message will appear in your Sent mailbox.
    If you are looking for a "read reciept," It is pretty much not supported by Mail. You can set up a header for all outgoing email which will attempt to intrude on your recipients' privacy, but it will be for all emails.
    Also, many email clients will not respond to a read receipt, including Mail. Even if they will respond to a read receipt, the default setting is uaually to ask the user prior to sending. So, there is no guarantee you will ever get a read receipt.
    I have no idea if this still works: http://email.about.com/od/macosxmailtips/qt/et_request_recp.htm
    If it is really that important to you, add a sentence to your signature explaining the great necessity that you need to invade your recipient's privacy and that they need to respond immediately to let you know they've read your email.

  • HT3529 How can I receive a SMS or iMessage as an email?

    How can I receive a SMS or imessage as an email?

    You cannot receive sms or imessage via email. You can be reached by email but the message appears in the messages app with all the other messages if you enter  your email address as on eof the addresses where you can be reached

  • HT204053 Others are using my Apple ID. How can I stop messages going to other iPhones

    How can I stop messages going to other iphones which use my apple ID?

    You can use another email to send and receive messages and FaceTime.  When you change email, your contacts will get a message so you can keep in touch.
    In settings
    Messages/FaceTime
    Send and receive
    Uncheck Apple ID and check your email
    Let us know if you got it fixed.

  • How can I disable Message ?

    Using a Samsung Galaxy S5. I recently received a text message in the Verizon Message+ app even though I have me default messaging app set to Messages. How can I disable Message+ so that all incoming text messages will go to the Messages app? I find Message+ very unintuitive and difficult to use and I do not ever want to use it. Thanks.

    Bazsl1 wrote:
    Using a Samsung Galaxy S5. I recently received a text message in the Verizon Message+ app even though I have me default messaging app set to Messages. How can I disable Message+ so that all incoming text messages will go to the Messages app? I find Message+ very unintuitive and difficult to use and I do not ever want to use it. Thanks.
    Did you check the Messages app? I would suspect the message ALSO will show up there. Messages may be the default messaging app, but ALL messaging apps installed on the phone can and will read any messages coming into the phone. It appears you simply have notifications turned on for Message+. If you don't want to get notifications for Message+, simply turn those off in the settings for that app.
    Of course you can disable Message+, but I personally think that is an extremely useful messaging app. With it, you can read your text messages on multiple devices so you don't always have to have your phone at your fingertips. Message+ will sync your texts between your phone/tablet/computer so you can send/receive them at whichever device you are currently using. I don't think the stock Samsung GS5 messaging app will do that.
    Regardless, many people think that is a useful facet of Verizon's Message+ app(and the explicit reason I personally prefer this app over many others, including iMessage on an iPhone), but I can see why some people would prefer not to have this capability. Different strokes...

  • TS2755 I can't receive messages on my iPhone 4?? It will let me send them just not receive, and this happens on text and iMessage. Help anyone?!

    I have a iPhone 4 on contract and every now and then it will stop receiving messages when I am in the middle of a conversation. I don't use iMessage as I sometimes go over the limit of my Internet data. So I stick with SMS. And even when I do try with iMessage I still can't receive messages. I don't know if this is a on fault on the phone but it's a really bad downfall if its common on most iPhones. Don't get me wrong but I love this phone I think it's great but it's annoying when I can't receive messages. And at this moment
    In time I still can't receive them. Been happening for 12 hours now and it's never been this long usually, advice anyone?

    Hi Tnolen15,
    If you are having issues sending or receiving messages from a specific contact (in this case, your wife), you may find this portion of the following article helpful (ignore the numbering):
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and recreate the contact in the Contacts app. Create a new message to the newly created contact and try again.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Regards,
    - Brenden

  • My daughter accidentally dumped my iTouch into the tub.  It is ruined.  How can I receive my one time regrant on all the songs I've lost.  There were approximately 80 songs I purchased on iTunes.  They get me through the day!  Please help!

    My daughter accidentally dumped my iTouch into the bath tub.  It is ruined.  How can I receive my one time regrant to get back the 80 plus songs I purchased and downloaded on iTunes?  I'm devastated....please help!  My husband bought me the new iPhone4 for my new Mother's Day gift.  I would like to download all the songs I lost.  Thank you so much!

    You can redownload the songs as many times as you want, the "one time regrant" no longer exists. Make sure you are using the same apple id on both your dead itouch and your iphone 4. On your iphone 4 go to the itunes app > Purchased (may be under more based on your settings) at the top click not on this iphone, click all songs then click the little cloud next to each song you want to redownload. It will prompt you for your id and password and the begin your download

  • How can i use messages on windows

    im trying to use my imessage on my laptop is there like a software that doesnt require jailbreak to send messages on the laptop?

    ryan10132 wrote:
    how can I use messages on windows
    You can't.

  • How can i receive the information from a form ?

    I created a form in Dreamweaver CS5 with some input fields and with a send button.
    The question is how can I receive the information that is filled in by the visators.
    Where can I tell to which email adress the information has to be send. Where can I find this in dreamweaver CS5?
    Or what else do I have to do before a form is actually working and I'm receiving the input?
    Already thanks
    Ron

    I'm just starting with building a site
    so thanks for this email
    2010/11/17 DeonH <[email protected]>
    Hi there.
    >
    I don't know what your capabilities are regarding coding. I am no
    programmer and use "Forms to Go" with much success. Take a look here:
    http://bebosoft.com/products/formstogo/overview
    >
    Regards,
    Deon
    >

Maybe you are looking for