XML in JMS

Hi,
I’ve an AQ with payload of type SYS.XML Type, Can I read messages from this Queue using JMS?
I know the JMS standard doesn’t support XML, so is it possible to write a JMS listener application that gets notification when there is a message from an AQ of payload SYS.XML Type. Also can I use the standard JMS API (without any Oracle specific JMS implementation APIs) to accomplish it?
Any pointers to documents/examples will help me.
Thanks
-Mani

Not sure if this is any help to you, but I've been quite happily enqueuing and dequeueing XML messages under JMS, supported by the Oracle AQs.
Unfortunately, I've found it very difficult to manage with non-Oracle APIs. So I've made heavy use of XMLType from the XDK. Also, though I've used the Oracle JMS implementation, I've found that I've had to cast simple JMS objects into the the Oracle JMS objects that implement them.
I can't find any Oracle JMS javadoc anywhere, so it's very difficult to find out how to do this stuff in a more orthodox and vendor-neutral fashion.

Similar Messages

  • How to ignore Recordset name in XML(Sender JMS Adapter)?

    Hi All.
    I am using Sender JMS Adapter along with content conversion.
    I have put in Parameter:
    Plain2XMLService xml.ignoreRecordsetName true
    still the Inbound payload in SXI_MONITOR has Node Recordset, which should not be the case.
    Please advice, does this ignoreRecordsetName works in JMS adapter, if Yes does it works same way as in File Adapter content conversion?
    Thanks in Advance

    >
    Gowtham Peddi wrote:
    > Hi All.
    >
    > I am using Sender JMS Adapter along with content conversion.
    >
    > I have put in Parameter:
    > Plain2XMLService xml.ignoreRecordsetName true
    >
    > still the Inbound payload in SXI_MONITOR has Node Recordset, which should not be the case.
    >
    > Please advice, does this ignoreRecordsetName works in JMS adapter, if Yes does it works same way as in File Adapter content conversion?
    >
    > Thanks in Advance
    can you try
    ignoreRecordsetName true instead of xml.ignoreRecordsetName
    also try to not give any value for the xml.recordsetName parameter.
    I actually doubt if we can ignore the record set name using the module.

  • Converting flat file to XML using JMS

    Hi,
    I want to convert flat file to xml. My sender adapter is JMS,
    Can anyone tell me that how to do that conversion ? Conversion is very simple.
    Can we use File content conversion in JMS Sender ? any link or blog ? or any other idea to achieve this ?
    Regards
    Kulwinder

    Hi,
    The pdf has been removed from that link i suppose.
    Anyways, go through the below help, everything that is there in "HowToConveModuleJMS.pdf" has been mentioned in this...
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
    Hope it would surely help you.
    You can go through the below link, for better understanding..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0
    Regards,
    Swetha.
    Edited by: Swetha Reddy on Feb 26, 2009 5:30 AM

  • Problem converting flat file to XML using JMS Adapter

    I need to take an MQSeries message in a flat file format and convert it to XML before processing.  I have configured the modules as described by the screenshot located here:
    http://www.radesix.com/JMSConfig.jpg
    The message is received however it isn't converting to XML.  When I view the payload I get the message indicated by the screenshot located here:
    http://www.radesix.com/JMSError.jpg
    I am new to XI.  Any ideas?

    For simple plain conversion here is a config, which works in our system:
    (left parameter key, right parameter value, module key always the same)
    Transform.Class com.sap.aii.messaging.adapter.Conversion
    TransformContentType text/xml;charset=utf-8
    xml.conversionType SimplePlain2XML
    xml.addHeaderLine 0
    xml.processFieldNames fromConfiguration
    xml.documentName SA02_Identnummer
    xml.documentNamespace urn:mycompany-com:logistics:DFT:HWL
    xml.structureTitle SA02_Identnummer_Satz
    xml.fieldNames Satzart,Identnummer,Status
    xml.fieldFixedLengths 2,10,3
    Be aware, that you must delete all spaces in the config, especially when you copy and paste values.
    For struct. conversion the entries are a little bit more complex.
    Regards
    Stefan

  • Error in IKM SQL to JMS XML Append

    Hi
    I am doing transformation from Oracle table to XML and send that XML to JMS Queue.
    So i am uing 1) IKM SQL to JMS XML append 2) LKM SQL to SQL
    In IKM SQL to JMS XML append
    set following parameters:
    SYNCHRO_XML_TO_JMS =      true
    INITIALIZE_XML_SCHEMA =      true
    JMS_EXTRACT_MESSAGE = <Root element name>
    when execute interface,
    Getting error in step "Insert into XML (JMS Message)" like
    ODI-1228: Task INBOUND_XML_TEST (Integration) fails on the target JMS_QUEUE_XML connection INBOUND_XML.
    Caused By: java.sql.SQLException: java.sql.SQLException: Parameter not set
         at com.sunopsis.jdbc.driver.JMSXMLPreparedStatement.addBatch(JMSXMLPreparedStatement.java:62)
         at oracle.odi.runtime.agent.execution.sql.BatchSQLCommand.execute(BatchSQLCommand.java:42)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:84)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740
    Regards,
    Ankush.

    Hi,
    Is this issue resolved? If so, can you provide the fix?
    I am getting the same error.
    Thanks,
    Ruby
    Edited by: Rubellah Rajakumar on Oct 1, 2012 5:21 PM

  • How to retrive data from .XML file to JMS

    hi friends.. this is vamsi from india.. i have been working on jsp, java bean, xml, jms, message driven bean , ejb and database from last couple of days. but i am not able to retrieve data from fields in xml file to jms. can any one help me out in retrieving the data from xml to jms..
    thanking you,
    vamsi.

    Database but we are not able to retrieve the values
    from XML to JMS."We are not able to" is too vague a statement. An answer to this could well be "Did you turn your computer on?"
    So again, please post formatted code showing what you have done and where you are stuck.
    Perhaps an error message and/or a stack trace if appropriate.

  • Create jms queue xml data server

    Hi,
    What's the difference between jms queue and jms queue xml data servers and how to create jms queue xml data server.
    Thanks.

    Hello,
    JMS messages can principally be processed by Oracle Data Integrator in two formats:
    - JMS Messages: containers for rows of data, handled through JMS Queue/JMS Topic Technologies. With JMS Queue/JMS Topic technologies, each JMS destination is defined similarly to a flat file datastore. Each message in the destination is a record in the datastore.
    - XML Messages: containers for XML files, handled through JMS XML Queue/JMS XML Topic Technologies. With JMS XML Queue/JMS XML Topic technologies, each messages payload contains a complete XML data structure. This structure is mapped into a relational schema (XML Schema) which appears as a model. This use the Oracle DI Driver for XML (see the driver documentation in Oracle DI documentation).
    Find below a step by step creation process for such a destination:
    1. Data Server
    To create a JMS XML Queue data server, you declare a simple JNDI connection. The only JMS XML specific information is added to the URL. This information defines the XML file format.
    The JNDI URL should be : <JMS_RESOURCE>?d=<DTD_FILE>&f=<XML_FILE>&s=<SCHEMA>&JMS_DESTINATION=<JMS_DESTINATION_NAME>
    - JMS_RESOURCE: JNDI resource corresponding to your JMS queue that will contain the XML payload. You would specify this URL if you were managing normal JMS messages.
    - DTD_FILE: path to a DTD file that describes the XML structure. Mandatory if the parameter XML_FILE is omitted.
    - XML_FILE: path to the XML file with a structure similar to the expected XML messages. Mandatory if the DTD_FILE parameter is omitted.
    - SCHEMA: schema name that will contain the XML structure. This value must match the one set for the physical schema attached to this data server. This parameter is mandatory.
    - JMS_DESTINATION_NAME: name of the JMS queue or topic. This parameter is mandatory.
    2. Schema
    Creation is straightforward: In the Schema (Schema) and Schema (Work Schema), enter the name of the <SCHEMA> defined in the data server JNDI URL.
    3. Model
    Use standard reverse-engineering. As the Oracle DI Driver for XML is used the XML structure will be reversed as a relational structure.
    Regards,
    - FX

  • CSV to XML transformation and posting to JMS queue

    Hi,
    I am new to JMS and do not know exactly whether this is correct place to post my query.
    I have one CSV file tgat contains approx 5000 rows. first row contain column heading and data of this row is to be used as tags in XML files. I wish to create approx 4999 XMLs out of this CSV each containing seperate row of record along with first row of CSV as tags. After creating these XMLs, I wish to post these to one JMS topic / queue.
    I can not do XML file writing from PL-SQL (I could have created seperate XMLs using PL_SQL) duw to some server related issues.
    Can somebody guide me how to do this?
    Is it possbile to direclty post XMLs to JMS topic / queue thorugh Pl-SQL file writing?
    Please fwd me sample code also.

    Hi,
    I am new to JMS and do not know exactly whether this is correct place to post my query.
    I have one CSV file tgat contains approx 5000 rows. first row contain column heading and data of this row is to be used as tags in XML files. I wish to create approx 4999 XMLs out of this CSV each containing seperate row of record along with first row of CSV as tags. After creating these XMLs, I wish to post these to one JMS topic / queue.
    I can not do XML file writing from PL-SQL (I could have created seperate XMLs using PL_SQL) duw to some server related issues.
    Can somebody guide me how to do this?
    Is it possbile to direclty post XMLs to JMS topic / queue thorugh Pl-SQL file writing?
    Please fwd me sample code also.

  • [OSB 10.3.1] error adding a JMS destination

    Hi all,
    I'm migrating my ALSB 3.0 project into OSB 10.3.1. So I've recreated the clustered domain in OSB as I did with ALSB and then ready to run my
    ebAdmin.cmd properties\local\admin.DVE.osb_cluster1.SYS.properties properties\local\admin.DVE.osb_cluster1.APP.properties create-jms-core
    in order to create my JMS resources ... all go find excpet at the end when the script tries to activate the changes:
    Buildfile: admin.xml
    create-jms-core:
    admin:
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    [java] ===============================================================
    [java] Loading admin properties file from : ./admin.properties
    [java] ===============================================================
    [java] Connecting to t3://localhost:7001 with userid weblogic ...
    [java] Successfully connected to Admin Server 'AdminServer' that belongs to domain 'osb_cluster1'.
    [java] Warning: An insecure protocol was used to connect to the
    [java] server. To ensure on-the-wire security, the SSL port or
    [java] Admin port should be used instead.
    [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    [java] For more help, use help(domainRuntime)
    [java] Location changed to edit tree. This is a writable tree with
    [java] DomainMBean as the root. To make changes you will need to start
    [java] an edit session via startEdit().
    [java] For more help, use help(edit)
    [java] You already have an edit session in progress and hence WLST will
    [java] continue with your edit session.
    [java] Starting an edit session ...
    [java] Started edit session, please be sure to save and activate your
    [java] changes once you are done.
    [java] ===============================================================
    [java] Creating JMS core resources
    [java] ===============================================================
    [java] #### found managed: m01
    [java] #### ready to create file store EventBusFileStore_m01
    [java] #### created file store EventBusFileStore_m01
    [java] #### ready to create JMS server EventBusJMSServer_m01
    [java] #### created JMS server EventBusJMSServer_m01
    [java] #### found managed: m02
    [java] #### ready to create file store EventBusFileStore_m02
    [java] #### created file store EventBusFileStore_m02
    [java] #### ready to create JMS server EventBusJMSServer_m02
    [java] #### created JMS server EventBusJMSServer_m02
    [java] #### ready to create JMS module EventBusSystemModule
    [java] #### created JMS module EventBusSystemModule
    [java] #### ready to create connection factory EventBusConnectionFactory
    [java] #### created connection factory EventBusConnectionFactory
    [java] #### ready to create XA connection factory EventBusXAConnectionFactory
    [java] #### created XA connection factory EventBusXAConnectionFactory
    [java] #### ready to create dummyConsumerEventConsumer1OutboundQueue
    [java] #### created dummyConsumerEventConsumer1OutboundQueue
    [java] #### ready to create dummyConsumerEventConsumer1RecoveryOutboundQueue
    [java] #### created dummyConsumerEventConsumer1RecoveryOutboundQueue
    [java] #### ready to set error destination dummyConsumerEventConsumer1RecoveryOutboundQueue for dummyConsumerEventConsumer1OutboundQueue
    [java] #### error destination set successfully for dummyConsumerEventConsumer1OutboundQueue
    the same for other many Uniform Distributed Queues
    [java] #### ready to create MonitorTopic
    [java] #### created MonitorTopic
    [java] Saving all your changes ...
    [java] Saved all your changes successfully.
    [java] Activating all your changes, this may take a while ...
    [java] The edit lock associated with this edit session is released
    [java] once the activation is completed.
    [java] This Exception occurred at Sat Aug 15 14:12:14 CEST 2009.
    [java] weblogic.application.ModuleException: ERROR: Unable to add destination EventBusSystemModule!wlsbJMSServer_auto_1@dummyConsumerEventConsumer1OutboundQueue to the back end wlsbJMSServer_auto
    _1
    [java] at weblogic.jms.backend.BEDestinationRuntimeDelegate.prepare(BEDestinationRuntimeDelegate.java:197)
    [java] at weblogic.jms.backend.udd.UDDEntity.prepare(UDDEntity.java:444)
    [java] at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1704)
    [java] at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1667)
    [java] at weblogic.jms.module.JMSModule$EntityState.access$100(JMSModule.java:1608)
    [java] at weblogic.jms.module.JMSModule.prepare(JMSModule.java:277)
    [java] at weblogic.jms.module.ModuleCoordinator.prepare(ModuleCoordinator.java:185)
    [java] at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    [java] at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [java] at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    [java] at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    [java] at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [java] at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    [java] at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16)
    [java] at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    [java] at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    [java] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
    [java] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    [java] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    [java] at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    [java] at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    [java] at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    [java] at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    [java] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    [java] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    [java] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    [java] at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    [java] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    [java] at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    [java] Caused by: weblogic.jms.common.JMSException: [JMSExceptions:045050]A destination of name EventBusSystemModule!wlsbJMSServer_auto_1@dummyConsumerEventConsumer1OutboundQueue has a jms-create
    -destination-identifier of name EventBusSystemModule!wlsbJMSServer_auto_1@dummyConsumerEventConsumer1OutboundQueue. However, another destination of name EventBusSystemModule!wlsbJMSServer_auto_1@dummy
    ConsumerEventConsumer1OutboundQueue has the same jms-create-destination-identifier. Two destinations with the same jms-create-destination-identifier cannot be co-located on the JMSServer named wlsbJMS
    Server_auto_1.
    [java] at weblogic.jms.backend.BackEnd.addDestination(BackEnd.java:1527)
    [java] at weblogic.jms.backend.BEDestinationRuntimeDelegate.prepare(BEDestinationRuntimeDelegate.java:195)
    [java] ===============================================================
    [java] #### ERROR - unexpected error: main.WLSTException
    [java] ===============================================================
    [java] No stack trace available.
    [java] Edit session is cancelled successfully
    [java] Disconnected from weblogic server: AdminServer
    [java] Unexpected error: main.WLSTException
    [java]
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "K:\EventBus\scripts\admin.py", line 910, in ?
    [java] File "K:\EventBus\scripts\admin.py", line 216, in admin
    [java] File "K:\EventBus\scripts\admin.py", line 366, in configJMSCore
    [java] File "K:\EventBus\scripts\admin.py", line 681, in endTransaction
    [java] File "<iostream>", line 364, in activate
    [java] WLSTException: Error occured while performing activate : Error while Activating changes.ERROR: Unable to add destination EventBusSystemModule!wlsbJMSServer_auto_1@dummyConsumerEventConsume
    r1OutboundQueue to the back end wlsbJMSServer_auto_1 Use dumpStack() to view the full stacktrace
    what I don't understand is the fact that my EventBusSystemModule in some way references wlsbJMSServer_auto_1 (not created by my script but this JMS server is already available in OSB).
    I run successfully the above script againt ALSB 3.0 but now with OSB something goes wrong.
    As you see from above output, the script:
    - create file store EventBusFileStore_m01 (m01 is the m01 managed server in the cluster)
    - create JMS server EventBusJMSServer_m01
    - create file store EventBusFileStore_m02
    - create JMS server EventBusJMSServer_m02
    - created JMS module EventBusSystemModule
    from py point of view the code is:
    def createJMSModule(jmsModuleName, cluster):
    print '#### ready to create JMS module ' + jmsModuleName
    cd('/')
    jmsModule = cmo.createJMSSystemResource(jmsModuleName)
    cd('/JMSSystemResources/' + jmsModuleName)
    set('Targets',jarray.array([ObjectName('com.bea:Name=' + cluster + ',Type=Cluster')], ObjectName))
    print '#### created JMS module ' + jmsModuleName
    print
    about the creation of the UDQ
    def createUniformDistributedQueue(destinationName, jndiDestination, jmsModuleName):
    print '#### ready to create ' + destinationName
    path = '/JMSSystemResources/' + jmsModuleName + '/JMSResource/' + jmsModuleName
    try:
    cd(path)
    except WLSTException,e:
    failed = 'Check if create-jms-core task has been already executed'
    raise Failure(failed)
    cmo.createUniformDistributedQueue(destinationName)
    cd('/JMSSystemResources/' + jmsModuleName + '/JMSResource/' + jmsModuleName + '/UniformDistributedQueues/' + destinationName)
    cmo.setJNDIName(jndiDestination)
    cmo.setLoadBalancingPolicy('Round-Robin')
    cmo.setDefaultTargetingEnabled(true)
    print '#### created ' + destinationName
    print
    I'm trying to understand where is the problem ....
    Thanks in advance
    ferp

    Sounds like the database information is wrong, Have you tried correctign this through the BPM Process administrator? There are a few places where you setup database configuration it's probably one of them.
    I'm am fairly new so I can only offer up that.
    I'm having a nightmare myself deplying a process engine, good luck
    mARK

  • Regarding JMS-Queue/Topic in Proxy and Business service in OSB

    Hi
    I have one query regarding to the JMS-Queue/Topic.
    I am published the message to the JMS-Queue/Topic.
    ----My Business-service configuration is---
    General----Any xml
    Tranport--jms://localhost:7001/MyConnectionFactory/RequestQueue
    Response--None
    I call this Business-service in proxy-service of Routing message was published successfully to thee Queue.
    I try to dequeue the message from that queue for this
    --- I take another proxy with---
    General----Any xml
    Tranport--jms://localhost:7001/MyConnectionFactory/RequestQueue
    In meassage flow
    Routing--second busines-service)
    --- Second business-service configuration is---
    General----Any xml
    Tranport-File (C://temp)
    Issue is when I publish the message to Queue,the message is also found in the file  i.e C:temp. I don't now why  this come to the file.*
    Any suggestions
    Thanks
    Mani

    Either I did not get an idea, but in your JMS proxy you are routing to File :)
    If you don't want file, why route to 2nd BS ?

  • Error publishing large payload in AQ JMS Adapter

    Hi,
    We are usign AQ JMS Adapter and we are publishing payload in AQ JMS Topic thorugh BPEL process.
    Issue is, i'm not able to publish large payload ( xml file of size 4KB) to AQ JMS Topic through asynchronous BPEL process.
    When i post the xml in the BPEL Control, i'm getting the follwoing message:
    "Cannot find the specified instance". I have tried 3-4 times but getting same message all the time
    However, i'm able to publish xml to JMS Topic with synchronous BPEL process.
    Please let me know if there is a way to overcome this issue.
    Thanks in advance

    If the StreamPayload property does not exist, then the default value false is assumed.
    <activation-spec className="oracle.tip.adapter.aq.inbound.AQDequeueActivationSpec">
    <property name="QueueName" value="RAW_IN_QUEUE"/>
    <property name="DatabaseSchema" value="SCOTT"/>
    <property name="StreamPayload" value="true"/>
    </activation-spec>
    you can add <property name="StreamPayload" value="true"/>
    to the .jca file but rememeber This property is applicable when processing Raw messages, XMLType messages, and ADT type messages for which a payload is specified though an ADT attribute.

  • Problem with calling AQ JMS Adapter with Asynchronous BPEL Process

    I have a AQ JMS Adapter and i'm invoking the adapter in my BPEL process.
    I'm passing an xml as payload to AQ JMS adapter. When i post the xml in the BPEL Control, i'm getting the follwoing message:
    "Cannot find the specified instance". I have tried 3-4 times but getting same message all the time.
    However, i'm able to publish xml to JMS Topic with synchronous BPEL process.
    I want to use asynchronous BPLE process.
    Please let me know if there is a way to overcome this issue.
    Thanks in advance.
    Thanx in Advance.

    I am experiencing the exact same issue while configuring for Tibco EMS!!!
    I have also checked the oc4j-xa.xml file etc and I am also unable to find any guidance on the steps required from XML config files through to adapter wizard entries!

  • JMS sender adapter To File scenario

    Hi all,
    How the Message picked from the JMS Queue will be converted to XML using JMS Sender adapter. We have the setting "Mapping of Message" set either to Message Payload = JMS Payload or Entire Message = JMS payload. What should be the Message Interface, MT and DT for these kind of setting in JMS adapter.
    Thanks in advance.
    Amul

    The JMS adapter does not convert the message to XML by default. You can use the MessageTransformBean to achieve this.
    Check this document:
    https://websmp207.sap-ag.de/~sapdownload/011000358700001186732005E/HowToConveModuleJMS.pdf
    Regards
    Stefan

  • Cache Sync with JMS

    I am running Toplink 9.0.3 with 9i 9.0.2. I cannot get toplink to find the topic declared in jms.xml.
    My sessions.xml and jms.xml file are
    <cache-synchronization-manager>
    <clustering-service>oracle.toplink.remote.jms.JMSClusteringService</clustering-service>
    <should-remove-connection-on-error>true</should-remove-connection-on-error>
    <jms-topic-connection-factory-name>jms/toplinkTopicConnectionFactory</jms-topic-connection-factory-name>
    <jms-topic-name>jms/toplinkCacheSyncTopic</jms-topic-name>
    <naming-service-url>ormi://127.0.0.1</naming-service-url>
    <naming-service-initial-context-factory>com.evermind.server.ApplicationInitialContextFactory</naming-service-initial-context-factory>
    </cache-synchronization-manager>
    jms.xml
    <jms-server port="9127">
    <topic-connection-factory name="ToplinkTopicConnectionFactory" host="127.0.0.1" location="jms/toplinkTopicConnectionFactory">
    <description>Toplink connection factory</description>
    </topic-connection-factory>
    <topic name="ToplinkCacheSyncTopic" location="jms/toplinkCacheSyncTopic">
    <description>Toplink topic</description>
    </topic>
    The error I get is
    EXCEPTION [TOPLINK-8061] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exception
    s.SynchronizationException
    EXCEPTION DESCRIPTION: Could not find JMS Service Topic named: jms/toplinkCacheS
    yncTopic
    INTERNAL EXCEPTION: javax.naming.NamingException: Not in an application scope -
    start Orion with the -userThreads switch if using user-created threads
    at oracle.toplink.exceptions.SynchronizationException.errorLookingUpJMSS
    ervice(Unknown Source)
    at oracle.toplink.remote.jms.JMSClusteringService.retreiveRemoteSessions
    (Unknown Source)
    at oracle.toplink.remote.jms.JMSClusteringService.run(Unknown Source)
    INTERNAL EXCEPTION STACK:
    javax.naming.NamingException: Not in an application scope - start Orion with the
    -userThreads switch if using user-created threads
    at com.evermind.server.PreemptiveApplicationContext.getContext(Preemptiv
    eApplicationContext.java:34)
    at com.evermind.naming.FilterContext.lookup(FilterContext.java:127)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at oracle.toplink.remote.jms.JMSClusteringService.createRemoteConnection
    (Unknown Source)
    at oracle.toplink.remote.jms.JMSClusteringService.retreiveRemoteSessions
    (Unknown Source)
    at oracle.toplink.remote.jms.JMSClusteringService.run(Unknown Source)
    I tried running it without the host,password port and username option but still got the same error.

    The error I get is
    EXCEPTION [TOPLINK-8061] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exception
    s.SynchronizationException
    EXCEPTION DESCRIPTION: Could not find JMS Service Topic named: jms/toplinkCacheS
    yncTopic
    INTERNAL EXCEPTION: javax.naming.NamingException: Not in an application scope -
    start Orion with the -userThreads switch if using user-created threads Did you try starting oc4j with the -userThreads flag?

  • Problem setting up JMS (AQ); cannot see JMSDEMO_TOPIC in Consume Message Op

    I am following ESB “Lesson07: OEMS: JMS (AQ) to DB PL/SQL”
    Setup OEMS in application.xml; and Jms Adapter in oc4j-ra.xml;
    I setup JMSDEMO_TOPIC in the DB under JMSUSER; started AQ;
    When I setup JMS Adapter “Step 5 of 6: Consume Operation Parameters”:
    Destination Name (Topic): I am supposed to pick using the “Browse” button:
    java:comp/resource/OEMS/Topics/JMSUSER.JMSDEMO_TOPIC
    I do not find the in the list. What am I doing wrong?
    Any input would be really appreciated.
    Thanks.

    My mistake...
    exec dbms_aqadm.create_queue_table(queue_table=>'JMSDEMO_QUEUE_TABLE', queue_payload_type=>'sys.aq$_jms_text_message',multiple_consumers=>true);
    instead of sys.aq$_jms_text_message, I used sys.xmltype
    Once I corrected, things are working fine.

Maybe you are looking for