Sending message to a JMS queue and making DB update through a single container managed transaction

Can we use container managed transactions to send message to JMS queue and make DB updates in a sigle transaction. If yes then do we need 2pC license. I am using weblogic 6.0 SP2 and my database driver do not supports XA

If your JMS provider is XA compliant, you can.
If you are using WebLogic 6.0 JMS, it supports 2PC.
The JDBC resource that does not support XA can participate in the global transaction
creating a TXDataSource and setting "enable two-phase commit"=true in the Configuration
panel.
About the JMSConnectionFactory, on the console, in WebLogic 6.0, in the "Transaction"
tab folder, set "User Transactions Enabled"=true.
In your code, use non-transacted sessions.
For 2pc protocol, you need a license or you'll get an exception.
Sergi
Manoj Bansal <[email protected]> wrote:
Can we use container managed transactions to send message to JMS queue and
make DB updates in a sigle transaction. If yes then do we need 2pC license.
I am using weblogic 6.0 SP2 and my database driver do not supports XA

Similar Messages

  • Sending messages concurrently to JMS queue

    Hi,
    I am using Weblogic 10.3 JMS. I have a .NET producer sending messages to a JMS queue using a threadpool. A Java consumer will be consuming the messages. Is it possible to pool the conections/sessions from the producer side to send messages concurrently from the threadpool. Please help.

    You can use standard .NET threading to produce messages in different threads.
    Keep in mind that producers and session instances themselves must not be multi-threaded, although they can all share the same connection.
    When you code, each thread could have a dedicated session and producer.
    Alternately, you could write a very simple pool that the threads share to cache producers. On the other hand, sessions and producers are light-weight once they've been created, so there's often little need to go through this trouble.
    Tom

  • Queue up messages in a JMS queue during DB outages.

    I am currently using a MessageDriven EJB that pops messages of a JMS queue and
    then grabs a connection from a weblogic dbpool and process it. However if the
    database is down, the EJB still pops off messages and then throws exceptions when
    trying to get the connection from the pool and the exception is logged and the
    message lost.
    How can i architect the application so that when the db is down the messages are
    queued up in the JMS queue, so that when the DB comes back online they can be
    processed.?

    The $ is not a valid character for an element NAME per W3C standards. In short you can only use letters, numbers and the underscore ( _ )..
    You need to correct this message / data and reprocess the message.
    Setup an Error Queue so these messages get thrown some where that will not cause issues in your system. Then use error handling in something like AIA to report back to your support staff that a bad message was encountered, needs to be fixed and reprocessed.
    You will see that if you do a google search for how to escape a dollar sign in xpath, there are no good results....
    Hope that helps!
    -Luke

  • Garbage added to log while sending message to Weblogic JMS topic

    Hi All,
    Was able to sucessfully send messages to Weblogic JMS topic and also able recieve them.
    But while sending the messages to topic loy of debug statements are printed to the standard output
    This is seen only in production and not in developement, and expecting it due config issue...
    Any ideas on this is greatly appriciatied.
    Thanks in advance !
    Cheers,
    Ambha

    Thanks for the replies,
    The problem is certainly not with logger settings...
    The statements which are getting printed are SSL debugging
    The following settings are used by the application which sends messages to the topic :
    Dssl.debug=true
    Dweblogic.StdoutDebugEnabled=true
    These settings are same in Dev, UAT, and Production. But why the debug statements are seen only
    in UAT and Production I am not sure...
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    *<Some TIME IST> <Debug> <TLS> <000000> <......>*
    any Ideas... ?
    Thanks
    Ambha

  • Read message synchronously from JMS queue using OSB

    Hi,
    Is it possible to read message from the JMS queue using OSB based on the request invocation. I know messages can be read from the queue but it will be polling based.
    The requirement is to have an OSB proxy service (HTTP service ) an an interface to the client application. Client application invokes the proxy service and the proxy service need to read message from the JMS queue and provide the message as response to the client.
    Let me know if there are any pointers.
    Thanks
    Sandeep

    Hi,
    I spent some time trying to do this and apart from creating custom database tables etc. I was not able to achieve this.
    We wanted to use in memory JMS queues in our situation.
    In the end we developed a Java Web Service which preformed the on-demand read from the queue (using a particular message selector)
    This is working for us without a problem
    Robert

  • Oracle PL/SQL send/receive message in weblogic jms queue

    I am looking for a very simple way using oracle plsql to send and receive messages in a weblogic jms queues.
    Thanks

    Even i am looking for the same . Would be great if someone would help ..The jms setup has to be done in weblogic like the jms server, jms module, Jms connection factory , jms queue and then the jndi names . Now thw Problem here lies to me is that i really dont knw what should be the connection factory targets ,jndi names and where do i give the schema details as in the user name ,password , db name . Also if there is any explaination with eg on how to send /receive messages from a db trigger to jms queues .

  • I want to use ODI to read XML messages from JMS queue and then process it..

    I want to use oracle ODI (Oracle Data Integrator) to read XML messages from JMS queue and then process it.. i also want to process and validate the data in it....
    Could anyone please tell me the steps to achieve the same. I tried some ways which i got on OTN, but not able to implement it exactly...
    As i m very new to ODI, it will be great if you provide detailed steps..
    Thanks in advance for your help....

    Hi,
    Were you able to do it? We are facing this same issue now and, despite the fact the docs say otherwise, it does not seem to be a trivial task.
    TIA,
    Tedi

  • Reading Opaque data from jms queue  and decoded  in java embedding

    Hi ,
    Objective:Fetch text message from queue and print it from java embedding in BPEL
    I am fetching text message from a jms queue using JMS adapter in BPEL.Then converting the opaque data(Base64 binary)to string using java embedding.My build got successful but I am getting runtime error at the time of deployment.
    I have added fabric-runtime.jar file into SCA-INF\lib folder as well as project library directory.
    <extensionActivity>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    <![CDATA[//Write your java code below e.g.        
         System.out.println("Hello, World");       
    //   String input = ((Element)getVariableData("Receive1_Consume_Message_InputVariable")).getTextContent();              
      // String inputName = (String)getVariableData("input");     
      String input = (String)getVariableData("Receive1_Consume_Message_InputVariable");            
    //Receive1_Consume_Message_InputVariable.opaque          
          System.out.println("input:"+input);          
          addAuditTrailEntry(input);           
          Base64Decoder Decoder = new Base64Decoder();             
         try {            
          String decoded = Base64Decoder.decode(input);            
          setVariableData("Variable_opaque_decoded",decoded);            
          addAuditTrailEntry(decoded);           
    catch(UnsupportedEncodingException uee)
    uee.printStackTrace();
    }]]>
    </bpelx:exec>
    </extensionActivity>
    Error:
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    HTTP error code returned [500]
    Error message from server:
    There was an error deploying the composite on AdminServer: Error occurred during deployment of component: BPELProcess1 to service engine: implementation.bpel, for composite: JMSToDBInsert: ORABPEL-05250
    Error deploying BPEL suitcase.
    error while attempting to deploy the BPEL component file "C:\Oracle\Middleware\user_projects\domains\soa_domain\servers\AdminServer\dc\soa_0fb06e23-bac3-4753-aae9-0fc4b54b4dd1"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of BPELProcess1
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    Check server log for more details.
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    #### Deployment incomplete. ####
    Error deploying archive file:/C:/SOA Suite/SOA_POC/Client2JMSapps/Client2JMSapps/JMSToDBInsert/deploy/sca_JMSToDBInsert_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Could you guys please help me regarding this?
    Thanks & Regards,
    Souvik
    Edited by: Souvik Pal on Apr 16, 2012 9:40 PM

    You probably want to try the SOA Suite forum for OSB questions.
    SOA Suite
    There is an excellent book also:
    http://jeffdavies.org/
    The documentation goes over the fundamentals, but the book will be better for step by step examples.

  • 10 million messages in one jms-queue

    Hi all,
              we want to put about 10 million jms-messages in a jms-queue with a jdbc
              persistent store on oracle database.
              Does anyone of you made experiences with that much messages in one
              queue? Are there any known limitations concerning the number of
              messages, e.g. according managing overhead, etc?
              Thanks for any comment,
              Klaas

    The $ is not a valid character for an element NAME per W3C standards. In short you can only use letters, numbers and the underscore ( _ )..
    You need to correct this message / data and reprocess the message.
    Setup an Error Queue so these messages get thrown some where that will not cause issues in your system. Then use error handling in something like AIA to report back to your support staff that a bad message was encountered, needs to be fixed and reprocessed.
    You will see that if you do a google search for how to escape a dollar sign in xpath, there are no good results....
    Hope that helps!
    -Luke

  • Integration Broker : Sending peoplesoft Data into JMS queues using  IB

    Hi All,
    I am working on integration of peoplesoft and SOA middleware. I am basically SOA middleware developer. So not much aware at peoplesoft side.
    My requirement is that need to extract information from peoplesoft and send it to third party systems(through JMS queues) and also i explored that Integration broker is going to help in such cases.
    Could you please answer my some of the questions.
    1)How can i extract information of peoplesoft. lets say i need to extract customer data from peoplesoft.
    2) steps to send above extracted customer info to third party system using integration broker.
    It would be sending information to JMS topics.
    So please let me know how we can handle JMS queues in peoplesoft.
    Please refer the related documents for outbound interface strategies.
    Thanks inadvance.
    Edited by: PraveenT2 on Jun 3, 2009 4:06 AM

    Mike,
    Biztalk do have Peoplesoft Adapter. Just configure it and use appropriate Component Interface to push or pull the data.
    Thanks,

  • Howt to Send XML file to JMS Queue instead of text string.

    HI,
    I am doing a project on JbossSeam.
    I am using JMS. I am sending/adding plain text to the JMS queue
    and geting it back from the JMS queue as
    I wanted to send/add an xml file to the JMS queue and wanted to recieve the same xml file from the JMS Queue .

    Never mind... I see you cross-posted this question all over the place. Maybe it will get answered somewhere else.

  • Unable to send message in Service bus queue through Webrole which are connected to Azure VPN

    I have created two Azure VPN and two cloud services(deployed webrole) and one service bus queue
    First Azure VPN and cloud service(deployed webrole) is created in same affinity group.
    Second Azure VPN and cloud service is created in West US
    Service bus queue is also created in West US.
    When I send message in service bus queue from first cloud service (same affinity group) then message sends successfuly
    but when I send message in same service bus queue from second service(West US- Webrole) then unable to send message and not throwing any exception.
    I don't know, whats happening?
    Its very urgent..... client is waiting.
    Please help me... Thanks.
    hema

    Thanks for reply. Got the cause but still looking for solution.
    Actually we have created Azure VPN using Express route and
    all are configured for Private Peering.
    Try to access service bus queue from Web role which is attached to Express route network.
    I am unable to access service bus queue and send message...because cloud services deployed in virtual networks are supported over the private peering path.
    There are 3 types: public, private and default route (forced tunneling). 
    How  can be configured for all 3 which will force all traffic through the tunnel except for Azure public service?
    Do you have any idea on this scenario?
    Thanks.
    hema

  • How to read the messages in the JMS Queue using JMX

    Hi,
              I want to read messages in the JMS queue using JMX. I was able to read using QueueBrowser but want to modify priority of the messages using JMX.
              I tried to use JMSDestinationRuntimeMBean but it does not allow us to read messages unless we pass the message Id. Is there any way that I can get all the messages in the queue.
              I am using Weblogic 8.1 SP4
              Can someone please help me in this regard.
              Thanks,
              Kiran.
              Edited by KGudipati at 10/22/2007 1:22 AM

    Hi,
    As far as i know, JMS Object Messages is not supported by XI JMS adapter.
    you need to have the JMS provider to transform the message to bytes messages.
    (Refer to SAP note 856346)

  • How to pick(or consume) messages from Woblogic JMS Queue only when DB is UP

    Hi,
    I have a requirement to pick(or consume) messages from Woblogic JMS Queue only when DB is UP.
    When DB is down, messages should remain in queue. When DB is up, messaged should be picked on scheduler basis.
    We are using SOA suite 11g(BPEL or mediator,JMS Adapter).
    What is the best way to achive it in SOA 11g.
    I tried, but when I setup a Consumer, there is no control over there. Messages are picked automatically.
    Please advise.
    Thanks
    Ram

    something wrong with the design.
    why dont you set the retry options in the fault policies?
    So if the external DB is down you could reprocess them after specified interval or make it go to human retry queue.
    Then you could use SOA api to retry all of them.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • J2EE client mapping in WL6 - continued : jms queues and topics

    How can one use "generic" (i.e. "java:comp/env/jms/myQueue") names in client
    code for jms queues and topics,
    since neither application-client.xml nor WL's myjarname.runtime.xml
    have elements for them ?
    I mean, jms managed objects are not env-entries (application-client.dtd
    specifies that only primitive wrapper types can be valid env-entry-value)
    nor resources (which I understand are all connection factories, for jdbc,
    jms or mail ...).
    In my ejb-jar.xml I use the resource-env-ref element :
    <resource-env-ref>
    <resource-env-ref-name>jms/CreationErrorQueue</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    which can be mapped in weblogic-ejb-jar.xml
    <resource-env-description>
    <res-env-ref-name>jms/CreationErrorQueue</res-env-ref-name>
    <jndi-name>jms.aregon.CreationErrorQueue</jndi-name>
    </resource-env-description>
    but I don't know how to map the jndi of such objects in a client
    application.
    Edo

    Hi Sachin --
    In the 10.1.3.1 release, a set of new commands have been added to admin_client.jar to support the command line creation of JMS resources:
    -addJMSConnectionFactory -domain <domain> -jndiLocation <jndiLocation> [options]
    -removeJMSConnectionFactory -jndiLocation <jndiLocation>
    -getJMSConnectionFactories
    -addDestination -domain <domain> -name <name> -jndiLocation <jndiLocation> [options]
    -removeDestination -name <name> [options]
    -getDestinations
    You can read about it in the doc:
    http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDDFJJA
    cheers
    -steve-

Maybe you are looking for

  • Query is taking too long to execute - contd

    I am unable to post the entire explain plan in one post as it exceeds maximum length. Please advise on how to post this. Previous post Link : Link: Query is taking too long to execute Regards, Sreekanth Munagala. Edited by: Sreekanth Munagala on Oct

  • Service entry sheet Release strategy Error

    Hi Guys I have one scenario where Iam not able to post Service enrty sheet We have release strategies A1,A2,A3,A4,A5 Some service entry sheets are there in the system with each release strategy We have deleted A2,A3,A4,A5 and A1 remains there While r

  • How do i get the bindings of jsf fragments before the pageloads,

    Hi All, I am working on Jdeveloper 11.1.1.5. I have developed an application where i have used a jspx page and used the controller class which implements the phaselistener(containing before phase and after phase) to get done the validation and other

  • Is BPEL In Built in SAP Netweaver?

    Hi, I am new to SAP XI,could someone please help me on the below query. Could someone please clarify me if BPEL is inbuilt in SAP Netweaver or do we need to use it as a plug in. I could not get any articles helping me how to develop BPEL using Netwea

  • Its urgent.!!!!!!BAPI for Production Order

    HIi All , i need to fecth Storage Bin/Material/Quantyti/Descrition . All values can be obtained from the production order record using the BAPI. which BAPI is there for this req?