How to put message in JMS topic

Hello,
AnyOne can tell me how to put messages in JMS topic ?? Any sample / example available on it ?? I am using Oracle SOA 10g.
Thanks

Try this link:-
http://jamessmith73.wordpress.com/oracle-soa-bpm-11g/bpm-and-jms-adapters/
It have a good example on JMS Consumer and producer.

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

  • 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

  • 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

  • How to subscribe to a JMS topic with a selector

    I'd like to receive messages on a JMS topic satifying a selector.
    I'm trying examples\webservices\message. The ConsumerClient
    receives messages on "examples.soap.msgService.MsgSend". But if
    I want to sepcify a selector, how do I do it? Thanks!
    Kevin

    I think Mediator by default participates in a same transaction and if the webservice calls fails, it would rollback the message to queue.
    I would suggest you to setup fault policy in mediator for the webservice invoke and catch the fault and do the retries or human intervention depends on your need.
    Also, my personal suggestion is to use BPEL in place of ESB in this scenario as you have more persistence and fault handling capabilities in BPEL over ESB.

  • 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.

  • Messages in JMS Topic Error destination

    Hi,
    I have a JMS Topic with an error destination queue configured. Now, In our scenario , there are two subscribers of topic for the same message. Suppose for a message published to topic, subscriber1 is able to processes message successfully but subscriber2 throws errors when processing the same message.
    1. Once the redelivery limit is reached and subscriber2 continues to throw exception, Will the message get en queued to Error Destination (in spite of the fact that subscriber 1 has processed the same message successfully) ?
    2. For a consumer (e.g MDB) listening to Error destination and consuming error messages, Is it possible to determine which topic subscriber was unable to process the message ?
    Please let me know
    Regards,
    Arif

    Here it depends on the state of the message, if the message is visible then the message would be available for consumption, else it is not. In case the subscriber 2 failed to consume the message and the message is still visible then a retry would be made, else the message would not be retried.
    In case the message is visible then the message would be move to the error queue based on the configured redelivery attempts.
    Additionally, an MDB can find the destination using the getJMSDestination() call. But as per my understanding we will only be able to get the name of the last destination which in this case would be error queue:
    http://docs.oracle.com/javaee/1.4/api/javax/jms/Message.html#getJMSDestination%28%29

  • Exception while putting messages on JMS Qeue through ODI

    Hi All,
    CASE:
    We have two seperate Unix Machines.
    Installations on Machine1:
    1.) Weblogic 10.3.5
    2.) OID (Oracle Internet Directory) installed on weblogic.
    3.) JMS Server installed on weblogic.
    4.) JMS Queues on weblogic.
    Installations on Machine 2:
    1.) Weblogic 10.3.5
    2.) Oracle Data Integrator Server on weblogic (NOTE: ODI Version is 11.1.1.5)
    3.) ODI Java EE Agent deployed on ODI Server.
    JMS Queue Data Server is configured in ODI (Machine 2), which sends and receives Messages on JMS Queues (Machine 1).
    While connecting JMS Queue on Machine 1 through ODI Java Agent (OracleDIAgent), it connects for the first time but fails while making successive connections
    to Queue. And also then all other ODI data servers connections (i.e. Java EE Agent, Oracle Data Servers, JMS Queue) through Java EE Agent fails with the following exception:
    ODI-3034:Test connection failed due to ODI-1274: Agent Exception Caused by: Create DwgConnectConnection to master repository failed; nested exception is java.sql.SQLException: Pool connect failed : java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators].
    Kindly help me out in resolving the issue.
    Thanks

    Hi,
    you may be interested in a solution I tracked down at http://support.bea.com/application?namespace=askbea&origin=ask_bea.jsp&event=button.search_ask_bea&askbea_display=relevancy&askbea_max_number_returned=50&question=weblogic.jms.common.JMSException%3A+Connection+not+found&all_bea_products=all_bea_products&ES=ES#
    Basically : you need to have your Weblogic servers, JMS servers and JMS stores
    on each domain named uniquely !!!
    "Joe Mooney" <[email protected]> wrote:
    >
    Any news on this one ?
    "B Liu" <[email protected]> wrote:
    Can u tell me how you supplied the required security credentials?
    Thanks,
    -Ben
    "Andy" <[email protected]> wrote:
    Hi.
    I have a situation where I am sending an JMS message to external queue
    on Weblogic
    Server which is not part of cluster. This happens in a session bean,which
    is wrapped
    in a container transaction. I have supplied the required security credentials
    like user, password etc.
    I get an error while tryign to send the message through bean. The stack
    trace
    is :
    weblogic.jms.common.JMSException: Connection not found
    at weblogic.jms.dispatcher.InvocableManager.invocableFind(InvocableManager.java:136)
    at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:596)
    at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:153)
    at weblogic.jms.client.JMSConnection.createSessionInternal(JMSConnection.java:400)
    at weblogic.jms.client.JMSConnection.createQueueSession(JMSConnection.java:347)
    also one thing interesting is that if I call the same server and queue
    outside
    of the session bean,it works fine.
    Any ideas what might be causing the issue?
    Thanks
    Andy

  • 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.

  • How to put messages back on the server

    by accident, I set up an account that deleted received messages from teh server. I believe that I set this up as a pop account. Is it possible to put messages back on the server? I couldn't see an option for this and it is important that I be able to check these messages via webmail.
    any help would be greatly appreciated.
    thanks
    m

    Before doing anything, I encourage you to make a backup copy of the entire ~/Library/Mail folder, in case something goes wrong (quit Mail first). You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    You cannot have two accounts of the same type in Mail with the same username and incoming mail server. You can, however, set up two mail accounts with the same username and incoming mail server IF the account type is different.
    That is, if you really did set up this account as POP, you can set it up also as IMAP in Mail without deleting the POP account first. You should, however, disable Preferences > Accounts > Advanced > Include when automatically checking for new mail (but keep Enable this account checked) for the POP account, to avoid it interfering with the IMAP account. You can then move any messages to the mailboxes of the IMAP account where you want them to be.
    EDITED: The above assumes that the provider of this account allows you to access it as either POP or IMAP, and that you chose POP by mistake. If POP is your only option and the mistake is just that the account was configured to remove messages from the server when in fact you didn't want to do that, then that's a different problem...
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder, i.e. ~/Library is the Library folder within the user's home folder.

  • How to view messages in Jms queue from OEM 12c Cloud Control

    Hi All,
    How can I view messages in a Jms queue from OEM 12c Cloud Control without logging into WebLogic Administration Console?
    Thanks in Advance!!

    EMCC 12c gets down to the JMS message queue/topic level in regards to the metrics being collected. It doesn't provide a view into the actual messages themselves. Are you trying to capture/track messages with a particular payload?

  • How to edit message in a topic question

    Just as subject says. I have posted in the forums in the past and I thought I was able to go back to a posted topic and edit the message if done within a 15min period or so.
    Other question, How come apple did not recognize my ID and stated that I did not have one, so I had to register again.

    jeven, There is a little icon on the subject line just to the left of the "reply" and "email" choices.
    Your second question, I don't know.

  • How to remove messages from JMS Queue?how to configure queue in spring?

    Hi
    I have Confiured a JMS configaration in spring applicationConfiguaration.xml file
    <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="tcp://localhost:61616"/>
    <property name="useAsyncSend" value="true"/>
    </bean>
    <bean id="queue" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="foo"/>
    </bean>
    <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
    <property name="config" value="classpath:activemq.xml" />
    <property name="start" value="true" />
    <!-- <property name="messageListener" ref="auditInterface"/> -->
    </bean>
    <bean id="auditInterface"
    class="org.springframework.jms.remoting.JmsInvokerProxyFactoryBean">
    <property name="serviceInterface" value="com.infiniti.gpn.auditing.AuditInterface"/>
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="queue" ref="queue"/>
    </bean>
    <bean id="listenerContainer" class="org.springframework.jms.listener.SimpleMessageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="destination" ref="queue"/>
    <property name="messageListener" ref="auditMessageListener"/>
    </bean>
    Sender is sedning messages continusly messages that messages r storing in queue , these r acupying more memory in RAM , due to that jboss is restarting for each request, is there any way to clean up messages in Queue ? if it is there then how will configure that queue in apllicationConfiguaration.xml file?
    Thanks in advance
    Nara

    Hi,
    Even i have a similar kind of requirement where in, i want to clear the JMS Queue Message programmatically, on certain condition.
    i am using Spring JMS. The JMS Queue has a listener. In the listener we want to clear the Queue contents based upon the condition.
    If anybody has any idea about this, please reply back.
    Thanks in Advance.
    Manjunath.

  • 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

  • How to read message from JMS queue as a ByteMessage

    Hi,
    i want to browse a xml message from a JMS queue(in Weblogic 8.1) as a ByteMessage instance and then need to put it into byte array .
    Then i want to read each byte by byte from that array.
    Can any one please help me to solve it.
    (i am using java language in the program to browse message from a queue).
    Thanks in advance.
    Regards,
    Deba

    You can refer to the following link for the detailed steps :-
    Link :[http://www.informit.com/articles/article.aspx?p=170722&seqNum=3]

Maybe you are looking for

  • Reinstall zones (solaris 8 container)

    Hi I have to restore 2 zones, because originally the zones are stored on a ZFS filesystem i've did the backup with the zfsdump scripts. I'm able to restore the ZFS filesystems but that leaves me with the problem of reconfiguring the zones. how do i c

  • How to update a CLOB column

    here is my problem. I have a table called t_clob as follows: SQL> desc t_clob Name Null? Type C CLOB I need to update an existing row with new data (overwrite). The new data is a big java script string with line break, spaces, alignment etc. as follo

  • ISE 1.1 Corporate Laptop authentication like Guest on WIFI network

    Hi all, I have all Laptop on Microsoft Active Directory(AD) and Wifi access point 4410N. The problem is that we don't have a WLC and when coporate Laptop is connect, the device is authentified like guest device. The device is redirect to guest portal

  • How to define size of virtual universe ?

    Hi all, I would like to know if it's possible to size a virtual universe to precise values. Or, is-it possible to know the default size of a virtual universe ? Thank you for your reply. Dave

  • Nikon D200 and Aperture ?

    Any thoughts on whether Aperture will import raw NEF files from the Nikon D200 ? Other photographers that have this camera on preorder are stating that dec 15th seems like a pretty firm shipping date. My D100 works just fine...Should the D200 be much