A JMS Scenario?

My scenario comprises a Tomcat/Struts web application and a backend content management system/search engine.
I have come up with the idea to make the UI faster by caching search results listings. However, users can modify the search result items using the content management system features available to them.
Therefore I need a way to communicate to the cache to refresh particular results lists when content items change, e.g the title of an item gets changed or whatever.
The problem is that the CMS does not provide a mechanism for sending outbound messages once it has completed a job. Further, everything it does is scheduled, so there is no guarantee at the Tomcat side that when an update is pushed to the CMS, that the cache can be refreshed there and then.
So as far as I can see, I need a polling mechanism. When an item is updated or submitted afresh, I envisage adding that fact to some queue which then knows how to poll the CMS database until it sees that the job has been done. The cache then go ahead and be refreshed.
My question is that I have just downloaded Open JMS so that I can use JMS with our Tomcat installation, but I would like to know the types of JMS areas I need to read up on in order to create this polling mechanism. The poller would need to be independent of Tomcat would it not as you aren;t really supposed to create Threads in Tomcat ... or would I run the poller as part of the Open JMS system itself. Can one specify polling delays with any JMS objects?
Your advice appreciated. ADC

Can you add a trigger to the DB to see which rows in the DB are changed, and then match the record IDs with the items in your cache?
Magnus

Similar Messages

  • File to JMS Scenario - Error is Receiver JMS Adapter

    Hi,
    I am working on File to JMS scenario. I have deployed all required jars for MQ 6.0.2 in SDM. Create all MQ related objects. I am getting following error for Receiver JMS adapter in CC Monitoring.
    Please let me know if I have missed anything. Is there anything to do in Visiual Administrator->JMS Provider or JMS Connector for these kind of Scenarios?
    Thanks in Advance...
    Error during channel initialization; exception trace: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'sap:QM_APPLE'
    at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
    com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
    MQJE016: MQ queue manager closed channel immediately during connect
    Closure reason = 2009
    at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:212)
    at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)

    Hi,
    I have made my Qmanager as default Qmgr. Now the error is :- Socket connection attempt refused
    Recv JMS Communication Channel Error:-
    Error during channel initialization; exception trace: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'sap:QM_APPLE'
    at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
    com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
    MQJE011: Socket connection attempt refused
    at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:212)
    at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)

  • Proxy to JMS Scenario: switch from sync to async proxy,does it makes sense?

    Hi @all,
    i've implemented a sync proxy to JMS scenario that works well. Backend is ECC 6.0 and Middleware is PI 7.1.
    Business Case: Run a request with a number and get a response back with a corresponding entry for the number. That means, there is always a response expected.
    Now the following thing appears: the receiver system could not handle many calls at one time (200 calls are planned at each run), the calls reduces the performance. Now gys at receiver system likes to develope a buffer of 10 seconds between the requests to handle some kind of load balancing with that. That means for the request that it the response takes +10 seconds back to backend. It is also possible to handle that in SAP backend with a waiting-statement in coding, so there is no need to go from sync to async - but the customer requested us to implement this scenario in async.
    JMS is always async, I know. But the Service Interfaces for Inbound and Outbound are of mode sync - so I can call my outbound Interface class in backend with Importing Output and Exporting Input.
    My question is: makes it sense to go from sync to an async scenario?
    And how looks the coding in backend for the response? I guess that it only makes sense to switch to async when no response entry is needed (example: for write operations).
    Thanks in Advance,
    Stefan

    > But in case of switching, what is the best way?
    > Should I implement 2 senarios? Or is it ok to switch the Inbound and Outbound Service Interface from sync to async?
    I don't think you need 2 scenarios for this. Just one is enough with different RDs.
    Over all in this case you have to re-create/modify the service interfaces and also you have to create 2 interface mappings. You have to also create the new inbound and outbound proxies since service interface mode will be changed. For outbound proxy the code can be reused and for inbound proxy also logic and code can be taken from your old code.

  • Regarding File to JMS scenario

    Hi friends please help me on file 2 JMS scenario. send me the screen shots of the below scenario.

    Hi
    Refer to following blogs .
    JMS Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20the%20content%20conversion%20module%20with%20the%20xi%203%20j2ee%20jms%20adapter
    /thread/217893 [original link is broken]
    JMS adapter -Message format pre-requisites
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    Please go through the following links.....
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
    First would be to deploy drivers for JMS scenarios - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Secondly, to configure JMS adapters;
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    In case JMS scenario that you have is a sync one, in that case if you are below SP19 you might have to build a BPM - ref: http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
    Else ref:
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
    How to correlate JMS messages - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5059f110-0d01-0010-7c8b-fdc983be70c0
    How to use conversion modules in JMS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Thanks!!

  • Rfc-xi-jms scenario

    I have a rfc-xi-jms scenario. A message is triggered from ECC. HOw can I check whether
    message is send from ECC ?? I mean ....I want to check in ECC system ?? Is there any Tcode
    to see the success message or payload in ECC ?? In SXMB_MONI I am not able to see the RFC messages.
    Regards
    kumar

    >we can see proxy messages in ECC system through sxmb_moni right ??
    You are Right,
      In Proxy  there is no protocol conversion  hence it might  reflect in the Sxmb_moni.
    > In ECC system why can't we see the messages in sxmb_moni ??  For  RFC..
    The protocol conversion happens and it is taken care by the adapters to XML Message.
    Regards
    Agasthuri Doss

  • IDOC acknowlegment IDOC-PI-JMS Scenario

    Hi,
    I have a IDOC-PI-JMS scenario. (With msg branching, PI 7.1 EHP1)
    The message are processing but it seems that there is no acknolegment sent back to the ECC system; the outbound IDOC remains in status 03.
    By turning acknologement off in IDX_NOALE everything is OK except the IDOC remaining in status 03.
    I found this how-to document for the IDOC-PI-IDOC scenario, but I need to configure IDOC acknowlegment for IDOC-PI-JMS scenario, someone can point to some guide/how-to? Do I need to still do all the ALE Audit configuration?
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    Thanks,
    Martin

    Hi Martin,
    Please go this article [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe?quicklink=index&overridelayout=true] and [http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/bdb13b00ae793be10000000a11402f/frameset.htm] for information about How to handle the Idocs acknowledgements.
    Regards,
    Kalpana.

  • Sap ecc(RFC) to Java application (jms) scenario in sap pi

    Hi Team,   How to configure SAP(ECC) to JMS scenario with steps.If have any documents please send me.   I have urgent requirement please help me.   Thanks in advance   Regards.. Ravi

    Hi,
    For JMS no need to maintain any thing in SLD.Just create Communication component in ID.
    When comes to sender RFC channel.
    App server -- sender system hostname
    App server gateway:sapgwSystemNo of sender system
    Program ID :any meaning full name (make sure to maintain the same name in trfc created in your sender system)
    Give log on details of ECC system.
    Regards
    Venkat

  • Sap ecc(bapi) to Java application (jms) scenario in sap pi

    Hi Team,
    How to configure SAP(ECC) to JMS scenario with steps.If have any documents please send me.
    I have urgent requirement please help me.
    Thanks in advance
    Regards..
    Ravi

    RFC -to- JMS Scenario

  • How to procced with JMS scenario.

    Hello everyone,
    I want to test File to JMS scenario.
    I believe XI provides JMS adapter as a part of it, Am I correct?
    II am totally blank , from where should I start :$----
    <b>which jar files i need?
    From where can I get them ?
    WhereI should I deploy them ?
    Any prerequisitives for it ?
    Any setting to be done in SLD or anywhere else ?
    And what other steps i need to do to implement any JMS scenario?</b>
    I would appreciate anyone's help. Was trying to find some docuement on this in Sdn but docs confused me.
    Thanks,
    Gaurav

    Gaurav,
    In case you want to access an external JMS service provider like Sonic MQ and so on, then you will need to install the JMS drivers for the same.
    To get the JMS drivers, you need to get which JMS service you are trying to acess, get the Drivers from that vendor and then install them on the XI server.
    In case you are planning to use the JMS service provided by SAP XI's Web AS then you can refer to the blog Pointed above.
    For how to install the drivers,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
    Regards
    Bhavesh

  • Proxy-2-JMS Scenario: more than 10 additional JMS properties possible

    Hi @all,
    we're implementing a Proxy-2-JMS-Scenario. The JMS reciever side needs unfortunalety more than 10 additional JMS properties. In XI/PI the maximum number of additional JMS properties is 10.
    Do somebody know a good workaround in PI how to deal with it?
    Thanks and best regards,
    Stefan

    Hi @all,
    there is no way to handle with more than 10 additional jms properties for jms header.
    Best Greetings,
    Stefan

  • Need sample JMS scenario

    Hi All,
    I need a sample JMS scenario to test before going for dev.my requirement is like this..
    (Java program/Web service)>JMS queue>XI>JMSQueue>(Java custom   pgrm/Web  service).
    Thanks in advance.
    Regards,
    Srinivas

    Hi Srini,
      I guess u need a real worldd scenario to work out.
    suppose ur client webservice is sending a file and ur server webservice is storing it in different queue.so for testing u can do 1 thing ...create queues in sender sys,xi and reciver sys....and check weather these r working or not!!!
    try out these links...may be useful for u!!!
    JMS Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20the%20content%20conversion%20module%20with%20the%20xi%203%20j2ee%20jms%20adapter
    /thread/217893 [original link is broken]
    JMS adapter -Message format pre-requisites
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    regards
    Biplab

  • Regarding JMS scenario

    HI friends. i am doing file 2 jms scenario. in that during configuration part i need jms receiver details. i have IBM MQ in my system . can anybody help me hw to create  a queue queue name, channel name, port number etc.

    Hi,
    U need to create quque on MQ server. ask the administrator to create the queues. he will provide all the necessary details which is required for configuration.
    Please go through the following links.....
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
    First would be to deploy drivers for JMS scenarios - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Secondly, to configure JMS adapters;
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    In case JMS scenario that you have is a sync one, in that case if you are below SP19 you might have to build a BPM - ref: http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
    Else ref:
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
    How to correlate JMS messages - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5059f110-0d01-0010-7c8b-fdc983be70c0
    How to use conversion modules in JMS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    thnx
    chirag

  • Needs steps in ID(configaration) for Proxy to JMS scenario

    Hi All,
    Please can anybody give steps for Proxy to JMS scenario in Integration Directory .
    Thanks in advance.
    Regards,
    Kalpana

    kalpana,
    Create two communication channels in ID. One for Proxy(XI adapter) and another for JMS(JMS adapter). Then sender agreement, receiver agreement, receiver determination and interface determination.
    For JMS adapter please see this weblogs:
    /people/kan.th/blog/2007/02/05/exploring-jms-and-sap-xi-jms-adaper
    http://help.sap.com/saphelp_nw2004s/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    ---Satish

  • Need details for Proxy to JMS scenario.

    Hi Frnds,
    I am dealing with Proxy to JMS Scenario.
    Can anybody tell me the prerequisites for this scenario, proxy as well as JMS.

    Hi,
    Refer the below thread.
    Re: Proxy->XI->JMS
    Needs steps in ID(configaration) for Proxy to JMS scenario
    Thanks and regards,
    Chirag gohil.

  • Idoc-xi-jms scenario

    Hi
    I want sender service name in the receiver payload header. How should we go abt ? I am talking abt the scenario like idoc-xi-jms.
    thanks
    kumar

    have a look at the following
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm
    Thanx
    Aamir

  • JMS Message Expiry Period (msecs) in Synchronous JMS scenario

    Hi,
    I've configured a Proxy->JMS synchronous scenario using Sync/Async Bridges in the Receiver JMS adapter.  All is well when the reply queue is working but when the reply queue is down, the waiting time in the JMS receiver adapter is too long.  It can be up to a minute or more.  We want to shorten the wait time for the reply.  On the receiver adapter, I've tried using 'JMS Message Expiry Period (msecs)' in the JMS setting but it doesn't seem to have any effect.  Then I tried switching on the 'JMS Message Expiration' under Adapter-Specific Mesage Attribute.  However I get the following error:
    Dynamic record/records: DCJMSExpiration,DCJMSTimestamp, that correspond to the JMS property/properties: JMSExpiration,JMSTimestamp, respectively is/are either missing from the message: deacb6f9-56e0-3bf1-af90-00145e6880b6, or have invalid types specified in the channel configuration
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Dynamic header records are missing/incorrect specified in message: deacb6f9-56e0-3bf1-af90-00145e6880b6. Erroneous/Unspecified headers are:[ DCJMSExpiration DCJMSTimestamp ]
    Any one has an idea?  Thanks in advance.

    Hi,
    When queue down normally JMS Receiver Communication channel tries 3 times to send message to Queue,when it tries 3 times the retrievel time its not possible to predict,may be you need to chnage the setting at basis level for retry interval.
    check with basis team.
    Regards,
    Raj

Maybe you are looking for