Publish/Send messages in JMS to be delivered after some time

I would like to know if the JMS standards address publishing of a message to a Topic or send to a queue which becomes visible or becomes eligible for subscribers to retrieve the message after a certain amount of time.
In other words I would like to send messages to JMS such that a JMS subscriber can use the feature as a wake up call. Here the sending application sets the time at which subscriber will get the wake up call ( message ).

I would like to know if the JMS standards address
publishing of a message to a Topic or send to a queue
which becomes visible or becomes eligible for
subscribers to retrieve the message after a certain
amount of time. Some JMS products provide this functionality. Weblogic and SwiftMQ. The latter has an integrated Job Scheduler:
http://www.swiftmq.com/products/router/swiftlets/scheduler/index.html
To solve your problem you'd create a message schedule:
http://www.swiftmq.com/products/router/swiftlets/scheduler/messagejobs/index.html
-- Andreas

Similar Messages

  • Unable to send messag to JMS Queue using Java

    Hi all,
    I am trying to send a string to the JMS queue using java. I am unable to send the message. It is getting failed at the look up for connection factory. I am using the below code for this purpose.
    public static void messageEnqueue(String payload) throws JMSException,
    NamingException,
    IOException {
    Session session = null;
    MessageProducer publisher = null;
    TextMessage message = null;
    Context context = new InitialContext();
    QueueConnectionFactory connectionFactory =
    (QueueConnectionFactory)context.lookup("*java:comp/env/XAConnectionFactoryJNDIName*");
    Connection connection = connectionFactory.createConnection();
    Queue Queue1 =
    (Queue)context.lookup("*java:comp/env/QueueName*");
    session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
    publisher = session.createProducer(Queue1);
    message = session.createTextMessage(Payload);
    connection.start();
    publisher.send(message);
    connection.stop();
    connection.close();
    kindly help on this.
    Thanks
    Edited by: 887737 on Jun 28, 2012 9:47 PM

    887737 wrote:
    Hi EJP,
    This is the Exception I got when I ran the java class directly from Jdeveloper. Can't I run the standalone class directly from Jdeveloper to insert the message into remote queue?
    Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javamail.MessageEnqueue.messageEnqueue(MessageEnqueue.java:30)
         at javamail.MessageEnqueue.main(MessageEnqueue.java:51)Hmm. The stack trace doesn't involve any JMS code. Is javamail.MessageEnqueue.messageEnqueue your application? It seems to be doing a JNDI lookup, and you haven't configured JNDI properly. Exactly how to do this depends on what JNDI provider you are using. Earlier in the thread you mentioned you were using WebLogic, so the answer may lie in the WebLogic documentation.
    Nigel

  • How to send Messages to JMS through ABAP

    Hi,
    I have to send messages to JMS through abap, how to do it.
    step by step is helpful

    Hi,
           You will have to write proxy to Jms to transfer data from R/3 to receiever via JMS.
    Follow this blogs it will be helpfull :
    Re: Proxy->XI->JMS
    For configuring receiver JMS:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    For configuring ABAP proxies etc:
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Thanks,
    Arijit Guha.

  • IPhone won't let me send messages to more than 2 contacts at a time

    My iPhone suddenly won't let me send messages to more than 2 contacts at a time. This is annoying as I want to send out a group SMS to people.
    Any suggestions? I'm using the latest update to the operating system.
    Cheers.

    It would appear that I can send an SMS to multiple contacts, providing that it's not a forwarded message. This means that I have to start from scratcheach time, and then I can send it to over 30 recipients at a time. Not sure why though, and I'm not sure why the sign doesn't appear all of the time as an option for me to press. At other times, it is particially obscured by the curser/text box. This is obviously a glitch in the system, as it happens inconsistently.

  • Hi, since I've bought the iphone, my facetime never works, I just can't activate the facetime in settings, when I put it on, after some time, the phone shows the message: activation unsuccesful. Do you guys know what should I do?

    Hi, since I've bought the iphone, my facetime never works, I just can't activate the facetime in settings, when I put it on, after some time, the phone shows the message: activation unsuccesful. Do you guys know what should I do?

    Where are you, what network are you on and where did you get the phone?
    If you are on an unsupported network, Facetime may never be able to activate. If the phone originated in a different country, facetime is probably trying to send an International text message to activate. If you don't have International text messaging, it will fail.

  • On launching firfox v3.6.15 on windows vista this error message 'Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsBlocklistService.js:648' is shown, after some time FF stops responding.

    I've noticed that it is taking longer for Firefox to start. On launching the apps I get this message ' I've noticed that it is taking longer and longer for Firefox (always the most up-to-date version) to start. After some time FF stops responding

    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • I just brought a apple protection plan as my phone warranty is going to end in a day, when i am trying to enter the protection plan code and my phone serial no its showing an error message try after some time is there any solution to that?

    i just brought a apple protection plan as my phone warranty is going to end in a day, after entering the protection plan code and my phone serial no its showing an error message "technical error try after some time", is there any solution for that?
    As i need the warranty to extend for another year please help me regarding this issue.
    When i bought a new iphone5 in Inda after using it for three days lock button was not working properly and it was warranty claimed and exchanged from apple service center in India, for the same phone I want to extend the warranty but its showing a error message is there any solution?

    Here is some information on the applecare +:
    http://www.apple.com/support/products/iphone.html
    It appears that you have to buy the applecare within 30 days of buying your phone - you said that your phone warranty is almost over, so when did you buy it??? That could be the explanation for the error.

  • I'm unable to deauthorize my computer.  Getting an error message "Unable to erase authorization.  Please try again after some time."

    I'm unable to deauthorize my computer.  Getting an error message "Unable to erase authorization. Please try again after some time."

    ok, please try below steps,
    1. Quit ADE.
    2. Choose Start > Run.
    3. In the Open text box, type regedit and then press Enter. The Registry Editor opens.
    4. In the left pane of the Registry Editor, locate the following registry key:
         HKEY_CURRENT_USER\Software\Adobe\Adept
    5. Right-click the Adept key and choose Delete.
    6. In the Confirm Key Delete dialog, click OK.
    Your authorization will be deleted.
    ADE will be deauthorized now.
    Now Authorize ADE again.

  • I've tried to update my ipad 2 with IOs 6 but it was not possible. An error message always appear after some time during e download. Is there an solution?

    I've tried to update my ipad 2 with IOs 6 but it was not possible. An error message always appear after some time during e download. Is there an solution?

    Are you trying to update via wifi or connected to your computer?
     Cheers, Tom

  • Since the recent update, my Text Messages no longer permit me to send messages to more than two people at a time. How do I resolve this issue?

    Since the most recent update, my IPhone 5c no longer permits me to send text messages to more that two people at a time. How can I resolve this to send text messages to more than two people in a group message.

    It would appear that I can send an SMS to multiple contacts, providing that it's not a forwarded message. This means that I have to start from scratcheach time, and then I can send it to over 30 recipients at a time. Not sure why though, and I'm not sure why the sign doesn't appear all of the time as an option for me to press. At other times, it is particially obscured by the curser/text box. This is obviously a glitch in the system, as it happens inconsistently.

  • I get junk mail on my iPad that states "this message has no content".  If I click on it my mail freezes up and after some time my mail program works again.  I use a .mac address.  Anyone have similar issues?

    I get junk mail on my iPad that states "this message has no content". If I try to delete it or click on it my .mac mail freezes up and it takes some time for my mail program to continue.  Has anyone else had this issue?  Ideas for resolution?

    Yeah, I've seen it from iOS 7 to the present. It appears to be a network issue, as the Mail app is trying to grab the information to display the first few lines in the abbreviated display. I haven't had mine freeze though. When I click on it, it will simply show a blank message. Now I can quit the app and later reload the app, and "sometimes" the contents come back right away. In other instances, not right away, but eventually.
    You might try quitting all the apps, then going to the Settings app to Reset and reset your Network Settings. The iPad will reboot. Try it again after that.

  • Making DB updates and sending message to JMS queue enclosed in a single transaction

              using a container managed transactions can we achieve sending a message to the JMS
              queue and updating DB as part of single transaction with the data base driver not
              supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

    As far as I know, your only options is to do as the exception you cut-and-pasted below
              states:
              "To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool"
              The "enableTwoPhaseCommit" property has definite drawbacks
              see the javadoc and/or documentation for configuring
              a "JDBCTxDataSource".
              This problem is specific to non-XA resources in general, not JMS (which is an XA resource),
              you may wish to get more info by posting to the transaction newsgroup.
              Tom
              Manoj Bansal wrote:
              > using a container managed transactions can we achieve sending a message to the JMS
              > queue and updating DB as part of single transaction with the data base driver not
              > supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              > this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              > JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              > To force this participation, set the enableTwoPhaseCommit property on the corresponding
              > JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

  • HT201365 my text to send messages is now not working correctly after upgrading

    Since upgrading last week my text is not working  correctly it is very slow does not show the letter being used and takes seconds to be put in

    Looking into the Diagnostics and Usage Reports in 'Settings' -> 'General' -> 'About' I see nine different "ExcResource_MobileMail_DATE" reports. Looking at the report I see a SysInfoCrashReport that indicates that the CPU was pegged at over 50% (mostly over 75%) for over 180 seconds using the MobileMail app.
    I also see a "MobileMail_DATE" report that indicates that there was an 'Exception raised during monitored invocation of _loadMoreMessagesWithMaxVisibleIndexPath:maximumIndexPathsBySource:, exception: ** -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds for empty array"
    And finally I see three "stacks+MobileMail-DATE" reports with "Power assertion timeout for 'com.apple.message.fetchMobileSynchronously...' Simply resetting it now." and "Power assertion timeout for 'com.apple.mobilemail.messagebodyloader' Simply resetting it now" reports.
    I updated to iOS 7.0.4 and decided to try and delete the account in my Mail settings and recreate it and set it to manual instead of the non-working fetch. Now, when I try to check my mail it still takes up to five minutes to respond, pulling the screen to refresh brings up the spinner for about one second and then disappears and no indications of activity occur until about three minutes later when I see the spinner in the status bar near the clock and then see a notification that it's downloading X of Y messages. At that point, message headers come in very quick and then about a minute later message previews come in. At random times, opening the mail app I get a "Password incorrect" error, even though the password works on other attempts.

  • I am not able to activate my iPhone 3GS after upgrading it to IOS 5.1.1 since it shows the error message "your iPhone could not be activated because the activation server is temporarily unavailable. I am asked to retry after some time. How can I avoid thi

    i am not able to active my ipone 3gs after upgrat to ios5.1.1. it show error message " your iphone could not be activted because the activation server is temperarily unavailable.try connecting you iphone to itunes to activate it, or try again in a couple of munutes" i retry many time, could not sold problem.

    You had a jailbreak and unlock.
    When you updated you cooked it.
    Your phone is done.
    Time for a new one.

  • WLS 8.1 SP5 Message bridge doesn't refresh connection after idle time out

    Hi,
    I am seeing in the log after enabling the debug flags that message bridge intermittently stops refreshing the connection without logging further info and causing a production failure.Bridge is forwarding the message from WLS 8.1..5 DQ to the remote MQ 6.0 queue.
    Below is the snippet which doesn't come in the log which suggests that bridge stops refreshing the connection.
    <BEA-200027> <Bridge "CASLDNSenderBridge" works in asynchronous mode and has not received messages for the predefined maximum idle time. The connections to the adapters will be interrupted and reestablished.>
    The above message does appear everytime but intermittently it stops and the messages put after this leading to the exceptions.The bridge has been configured in asynchronous mode and the idle time out is configured as 60 secs.
    Can somebody please let me know if there is any known issue with 8.1 SP5 where message bridge stops refreshing connection intermittently or how to debug this further.

    I would normally suggest raising the issue with support, but I recall hearing that 8.1 is nearing the end of its support cycle, so I'm not sure that's an option for you. Other options:
    - try upgrading to a newer SP, or better yet, a new version of WebLogic
    - try changing to synchronous forwarding
    - examine thread dumps from when the bridge appears to be stalled
    - post the exception that bridge is throwing when it tries to connect
    - try patching MQ (the problem could be on the MQ side, and perhaps an older version of the bridge may not be fully capable of handling all of MQs minor quirks)
    - write a program to (A) detect inactivity on the src destination, and (B) somehow restart the bridge and/or all of WL when this occurs
    Tom

Maybe you are looking for

  • Windows 7 Ultimate 64 Bit

    I can't find an article here in this community, detailing how to intsal Windows 7 64 bit on a Mac Pro 2006 Model 1,1.  It was a detailed (and humorous) article with step by step installation, somewhere in Apple Support Communities.  Just posting this

  • Help. photoshop not working properly

    i saw the video on how to add text into  a photo and i tried to do it on my own all to no aveil because once i leave the t icon for text and place on the photo, the hand icon appears moving my whole photo. is this a malfunction? or am i doing somethi

  • How to resubmit failed activity in a BPEL process using Java in 11g

    Hi All, In 11g, is there any API using which we can resubmit failed activity in BPEL using Java. Thanks, Vidya

  • How to prevent contacts disappearing after FW upda...

    Hi all, I would like to know how to prevent all contacts from vanishing after firmware update, can contacts be saved on memory card & retrieved or restored ? I have over 300 contacts & it would be a pain in the a** to restore it one at a time, thanks

  • Premiere Pro CS6 Randomly Crashes During Preview

    Hello, I've searched and gone through various threads where crashing has been posted and none of the solutions have helped thus far.  There are two issues that I would encounter doing the most basic of tasks such as previewing a clip within Premiere