Configuring JMS Adapter (AQJMStoDB)
Hi All,
Merry Christmas!
I think I am reopening the below previous thread but I really am stuck.
Re: Can ESB JMS adapter read and write from/to Oracle AQ
I am trying to wrap up the AQJMStoDB example in
Oracle® Application Server Adapters for Files, FTP, Databases, and Enterprise Messaging User’s Guide 10g Release 3 (10.1.3.1.0)...
I completed all the necessary steps and when I execute the Send command I am getting the below error...
C:\ESBSamples\AQJMStoDB\tools>java Send JMSDEMO_TOPIC
OEMS.155 - simple JMS Send / JMS 1.02 / Database AQ / no JNDI
Connection factory = oracle.jms.AQjmsTopicConnectionFactory@f72617
Created connection = oracle.jms.AQjmsConnection@3bb2b8
Created session = oracle.jms.AQjmsSession@c2ff5
started connection
Got topic = JMSUSER.JMSDEMO_TOPIC
started session = oracle.jms.AQjmsSession@c2ff5
destination: JMSUSER.JMSDEMO_TOPIC
message :
<?xml version = '1.0' encoding = 'UTF-8'?>
<db:InputParameters xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/DBAPP/AD
DEMPLOYEES/">
<EMPS>
<EMPS_ITEM>
<FNAME>John</FNAME>
<MIDDLE>W</MIDDLE>
<LNAME>Doe</LNAME>
<ADDR>
<STREET>100 Oracle Parkway</STREET>
<CITY>Redwood Shores</CITY>
<STATE>CA</STATE>
<ZIP>94065</ZIP>
</ADDR>
</EMPS_ITEM>
</EMPS>
</db:InputParameters>
message was sent with ID=null
Can you help me identify the problem.
I am using XE database and jdk 1.4.12_16.
Please let me know if you need more information on the setting and stuff.
Thanks,
Kalyan.
Just to understand your problem a little better, say you have processes A and B that you promote b/w these 3 environments. Also, say A is a standalone service invokable by external clients; say B is a service that is invokable by an external client and called by A as well.
Now, in this example, both A and B have web-service end points that change from one env to another.
W.r.t process A's caller, it should know the correct endpoint to invoke the service. Now if there is just one external client that is switching b/w the various environments, it has the responsibility of making this switch b/w the various endpoints (dev to test to prod). Now if this external client is an Oracle BPEL process as well, refer to solution below.
As far as process A's implementation goes, yes, it would have to change to invoke process B correctly. So, in dev, A should call B in dev; in stage/prod, A should call B in stage/prod. BPEL PM provides a solution to accomplish this via a customize ant task - refer to the section titled "Deploying to Multiple Environments with Different Configuration Values" in "Oracle® BPEL Process Manager Developer’s Guide 10g (10.1.3.1.0) B28981-03". Nothing changes for B across these three env as it is not invoking any other internal services.
Similar Messages
-
Configuring JMS adapter for a BPEL process which puts a msg in a Q of MQ
Hi,
I am trying to develop a BPEL process which picks up a message from a Q in Websphere MQ and puts that message in another Q of MQ after processing that.
I have updated the oc4j-ra.xml with the following inputs:
<connector-factory location="eis/MQSeries/Queue" connector-name="Jms Adapter">
<config-property name="connectionFactoryLocation" value="com.ibm.mq.jms.MQQueueConnectionFactory"/>
<config-property name="factoryProperties" value="QueueManager=TestManager;TransportType=1;Hostname=machine's ip address;Port=1414;Channel=channel name for connecting to client"/>
<config-property name="acknowledgeMode" value="AUTO_ACKNOWLEDGE"/>
<config-property name="isTopic" value="false"/>
<config-property name="isTransacted" value="true"/>
<config-property name="username" value="admin"/>
<config-property name="password" value="welcome"/>
</connector-factory>
But while testing the BPEL process, I get the error:
<remoteFault>
<part name="code" >
<code>null</code>
</part>
<part name="summary" >
<summary>file:/D:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_MQMessaging_1.0.jar/Outbound.wsdl [ Produce_Message_ptt::Produce_Message(SourceEmployee) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection. file:/D:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_MQMessaging_1.0.jar/Outbound.wsdl [ Produce_Message_ptt::Produce_Message(SourceEmployee) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12141 ERRJMS_CONN_FAC_NOT_FOUND. Unable to instantiate connection factory. JMS adapter was unable to look up the connection factor com.ibm.mq.jms.MQQueueConnectionFactory neither through JNDI nor instantiate it as a Java class Please examine the log file to determine the problem. ; nested exception is: ORABPEL-12511 Adapter Framework unable to create outbound JCA connection. file:/D:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_MQMessaging_1.0.jar/Outbound.wsdl [ Produce_Message_ptt::Produce_Message(SourceEmployee) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12141 ERRJMS_CONN_FAC_NOT_FOUND. Unable to instantiate connection factory. JMS adapter was unable to look up the connection factor com.ibm.mq.jms.MQQueueConnectionFactory neither through JNDI nor instantiate it as a Java class Please examine the log file to determine the problem. Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console. </summary>
</part>
<part name="detail" >
<detail>null</detail>
</part>
</remoteFault>
Can anyone tell me what has gone wrong in setting the connection factory for the Q or what else I have to configure to sort out this problem?
Thanks,
JayatuI 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! -
Problem in configuring JMS adapter
Hello,
My purpose is to send xml data from MQSeries to BW using XI. MQSereies is installed in XI server. For thah I am trying to configure JMS adpter for MQSeries in XI. I have successfully deployed the necessary external drivers using SDM. I have configured the sender channel with the following parameters.
Adapter type: JMS
Transport Protocol :WEBsphereMQ(non-JMS)
Message protocol :JMS1.x
Queue connection factory java class:com.ibm.mq.jms.MQQueueConnectionFactory
Queue Java Class: com.ibm.mq.jms.MQQueue
IP address: IP address of XI system.
Port: 1414
Queue manager name : MQ-manager-name_XI-system-name
Channel Name : reciever-channel-name_XI-system-name
JMS queue: postcard
Charecter set ID:
Transport/networkprotocol: TCP/IP
JMS-Compliant : WebsphereMQ(non-JMS)
But when I check it in adapter monitor JMS is shown as red.
When I go to Visual Administrator
"cluster->server->services->monitoring->runtime->monitor tree->services->Connector Service" is white instead of green.
Can any one tell what could be the problem.
Regards,
AmithHi Vijaya,
In VA there is only option to stop or start JMS XI adapter.
I dont know where to activate JMS adapter in VA. It is already started in VA.
Regards,
Amith -
We have 3 instance of BPEL process manager - DEV, TEST and PROD. Once development completes in DEV instance, it is moved to TEST for testing and then to PROD.
When the BPEL process is moved from one environment to another, we have to manully change the JMS adapter settings like IP address etc (3rd Party JMS Topic). This sometimes causes error due to human mistake.
Is there any method by which we can maintain a seperate configuration/properties file wherein these details can be maintained and referenced in JMS adapter WSDL so that we need not change the settings of JMS adapter everytime we migrate from one env. to another?
RegardsJust to understand your problem a little better, say you have processes A and B that you promote b/w these 3 environments. Also, say A is a standalone service invokable by external clients; say B is a service that is invokable by an external client and called by A as well.
Now, in this example, both A and B have web-service end points that change from one env to another.
W.r.t process A's caller, it should know the correct endpoint to invoke the service. Now if there is just one external client that is switching b/w the various environments, it has the responsibility of making this switch b/w the various endpoints (dev to test to prod). Now if this external client is an Oracle BPEL process as well, refer to solution below.
As far as process A's implementation goes, yes, it would have to change to invoke process B correctly. So, in dev, A should call B in dev; in stage/prod, A should call B in stage/prod. BPEL PM provides a solution to accomplish this via a customize ant task - refer to the section titled "Deploying to Multiple Environments with Different Configuration Values" in "Oracle® BPEL Process Manager Developer’s Guide 10g (10.1.3.1.0) B28981-03". Nothing changes for B across these three env as it is not invoking any other internal services. -
Want to configure jms adapter to listen two jms topics
Hi,
i want to implement an scenario where the single subscriber has to listen two topics. i have created two jms topics and pushing message into that now i want to consume the messages in two topics using single subscriber. is this is possible using JMS Adapter. any suggestions??? Kindly help...
Thanks in advance...This is not possible.
You can associate one subscriber to one topic only.You can have multiple subscribers listening on same topic but not the reverse. -
Sender JMS adapter configuration for IBM MQSeries
Dear All,
i am doing a IBM MQSeries 5.2.x Message ->sender JMS adapter -> XI server -> receiver RFC adapter -> R/3.
i have deployed the JMS adapter with the required jar files of IBM MQSeries 5.2.x in XI server.
in Sender JMS adapter configuration for IBM MQSeries 5.2.x, i have put following data:
1. Transport Protocol: Websphere MQ - is it okay?
in JMS provider settings:
2. in channel name - what should be there?
3. Transport Network protocol should be TCP/IP or WebsphereMQ - how to decide this thing.
4. JMS Complaint - whether WebsphereMQ or JMS API.
in JMS Settings:
5. JMS Queue user - is this IBM MQSeries 5.2.x Queue User or someother user?
6. JMS Message Selector - what data to take here.
So if anybody has connected IBM MQSeries 5.2.x to XI via JMS adapter, please answer my above queries.
Regards,
Rajeev GuptaHi Swaroop,
you can send me those documents at my gmail-id : [email protected]
Hi All,
one more question - to connect XI server to IBM MQSeries via JMS adapter in ID, do we need to have a MQSeries Client installed on XI server - or - just by configuring JMS adapter, we can send messages from IBM MQSeries to XI server without any MQSeries client on XI server?
Why Channel name is required in JMS configuration data?
Thanks,
Rajeev Gupta -
Query: Sender JMS Adapter configuration
Hi All,
I'm trying out a scenario which sends data from a Message Queue to SAP.
For this I need to configure JMS adapter in the sender side. I would like to know whether <b>should I specify any content conversion parameters like "fieldLength" or "fieldSeperator" as we do it in sender file adapter for XI's indivual field identification.</b>
If no then how the variables will get mapped properly to the XI outbound ( sender ) Structure from Message Queue???..
Bcoz I believe MQ sends the data as a single stream of characters not as individual field..
Please advice..
Regards,
Joe.
Message was edited by: JoeHi Satarupa,
Thanks for your reply.
But if I'm getting say a stream of 10 characters (Name - 4 characters, Address - 5 characters, Option - 1 character totally 10 characters), how the system will know it has to send first 4 characters to name defined in XI, next 5 characters to Address defined in XI and the next 1 character to Option if I don't specify the conversion parameters??
Bcoz the data flows in the same way to XI as it flows for file adapter, where we speciy the content conversion parameters which helps it to send it to the variables defined in XI accordingly.
If you've some docs on both sender and receiver JMS adapters pls. lemme know..
Thanks,
Joe. -
JMS Adapter Configuration (Access JMS Provider Generically)
Hi Exports,
How can i configure JMS adapter Using Access JMS Provider Generically, where can we mentioned target server. there is Quename and username and password but there is no target server details field. could you please give me suggetion how to configure this.Hi,
This will help you
JMS Adapter
/people/kan.th/blog/2007/02/05/exploring-jms-and-sap-xi-jms-adaper
http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
Sender Jms Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm
Receiver Jms Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
Regards
Agasthuri Doss -
JMS Adapter Configuration at reciver side
Hi,
Actaully I have to configure JMS adapter HAving Content Conversion.
I m getting XML throuh XI and wan to convert it to TEXT File.
Can anyone tell me wat MODULE NAME, TYPE, MODULE Key , PARAmeter NAMe and VAlue i have to take.
HemantHi,
Take a look at this document,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
Regards,
Bhavesh -
Sending Msg From HTTP client to XI through JMS Adapter using WebSphereMQ
Hello
I am trying to send some msg from Http client
I configured JMS adapter as receiver
Transport Protocol :WEBsphereMQ JMS provider
Message protocol :JMS1.x
I have given the Ip address of my machine where I installed WEB Sphere MQ
Server Port :1416
Transport Protocol :WebSphere MQ
JMS compliant: JMS-compliant
In SXMB_MONI
Http client sends message without any error.
But while tracing I got message
<Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>
Can anybody tell me the solution..
ThnaksHi,
I have not directly faced this but i may suggest ,
1. What do you see in sxmb_moni, do you have a queue problem?
2. see this File-to-File Scenario Stopped Working the reply from Shravan and the last message.
<i>The XBTO que was the problem. I deleted all LUWs in it and now new transactions are working again</i>
3. You may also use this /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
Regards,
Anirban. -
Hi All,
I'm trying out a scenario which sends data from a Message Queue to SAP.
For this I need to configure JMS adapter in the sender side. here i am getting the error in the sender communication channel like below
Can not access because class 'com.ibm.mq.jms.MQQueueConnectionFactory' is missing; ensure that JMS provider library 'aii_af_jmsproviderlib.sda' contains all required resources.
Can any please help me on this?
Thanks
Govinda.You need to deploy the MQ JMS library to your PI system first.
Please check sap note 1138877 for detail.
The numbers and names of the IBM libraries change depending on the MQSeries version you are using. Currently, we know the following names:
MQSeries 5.2
u2022 com.ibm.mq.jar
u2022 com.ibm.mqjms.jar
MQSeries 5.3
u2022 com.ibm.mq.jar
u2022 com.ibm.mqbind.jar
u2022 com.ibm.mqjms.jar
u2022 connector.jar (this file can also be retrieved from the SAP J2EE server directory)
MQSeries 6.0
u2022 CL3Export.jar
u2022 CL3Nonexport.jar
u2022 com.ibm.mq.jar
u2022 com.ibm.mqjms.jar
u2022 connector.jar
u2022 dhbcore.jar
u2022 rmm.jar -
Hi,
We are facing a weird issue while configuring JMS adapter for a queue sits on a remote Weblogic JMS Server.
- Configured adapter in a BPEL process and provided JNDI name 'eis/wls/Queue'
- Configured outbound connection pool with remote server url/user id/pass
- added the same jndi name properties in soa/connectors/JMSadapter.rar/weblogic-ra.xml
When we test the service, the following error is thrown:
java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Produce_Message' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. PublishToJms:JmsAdpWrite [ Produce_Message_ptt::Produce_Message(body) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/wls/Queue'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/wls/Queue. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
Please help...
Regards,
APHi,
We have re-deployed JMS adapter after changing weblogic-ra.xml as per the product documentation. Now getting a different exception..
java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Produce_Message' failed due to: ERRJMS_PROVIDER_ERR. ERRJMS_PROVIDER_ERR. Unable to produce message due to JMS provider internal error. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:570) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at
Any thoughts on this ?
Regards,
AP -
User and Password for JMS-Adapter
Hi all,
when configuring JMS-Adapter e.g. for IBM MQSeries i do not find field where to specify the user and password for the MQ. We configure e.g. a receiver communication channel.
In 2.0 JMS-Adapter we can put user and password like this
JMS.QueueConnectionFactoryImpl.user=YTEST
JMS.QueueConnectionFactoryImpl.password=<!%YTEST%!>
in the property file. We can also hide the passwort with
the mechanism of password token.
How can this be done in JMS 3.0 Adpater? Is it possible?
Thanks,
Ly-Na PhuOh, sorry. Now i see the field for user and passwort.
Thanks,
Ly-Na Phu -
JMS Adapter service not visible
Hello All,
I am trying to configure JMS adapter for my scenarios.
I am unable to see SAP XI JMS Adapter service in the Visual Admin.
Also when activate the communication channel. In the RWB it gives error "No adapter registered for the channel"
What could be the issue?
ThanksHi Prabhu,
Is it newly installed server,.??? if yes may be installation not done properly i guess...refresh the cache,is problem persist contact basis team.
Regards,
Raj -
Dynamic configuration bean in JMS Adapter
Hello Experts,
My scenario is JMS(Active MQ) to File.Its just Passthrough scenario and no mapping involved.
Filename will be coming in one of the JMS Property (say businessId) and I need to set this filename to file adapter.
I have refered the stefan's blog and used the Dynamic configuration bean module in sender JMS adapter.
getFilename key.1 write http://sap.com/xi/System/JMS DCJMSMessageProperty4
getFilename value.1 module.filename
setFilename key.1 read http://sap.com/xi/System/File FileName
setFilename value.1 module.filename
But required filename is not populated in the target File.Any other configuration is missing here?Hi Karthiga
Did you set the ASMA properties in both your sender JMS channel and receiver File channel?
For the JMS adapter, as shown below, you will need to enter the DCJMSMessageProperty4 into the table
Configuring the Sender JMS Adapter - Configuring the JMS Adapter in the Integration Directory/PCK - SAP Library
If you want to set additional JMS message attributes, select Specify Additional JMS Message Properties (Maximum of 10).
In the table, enter the names of the JMS message properties whose values are to be included in the message header of the PI message.
The technical names of the additional attributes are DCJMSMessageProperty0, DCJMSMessageProperty1, ..., DCJMSMessageProperty9.
For the File adapter, you need to check the ASMA FileName attribute.
Once you have this configured, in your message, you should be able to see that the value is in the DynamicConfiguration section of the SOAP header.
Rgds
Eng Swee
Maybe you are looking for
-
SSRS Error while executing the report
Hi, dataextension!WindowsService_0!7d4!03/09/2015-11:21:04:: e ERROR: Throwing Microsoft.ReportingServices.DataExtensions.XmlDP.XmlDPException: , Microsoft.ReportingServices.DataExtensions.XmlDP.XmlDPException: Failed to execute web request for the s
-
I have a pc running Itunes 6.1.3, and and Iphone 4s. I have exhausted every avenue I can trying to get songs from itunes into my iphone 4s. I've unchecked every box and checked every box I could find, reinstalled itunes completely, restored the iph
-
JAR file including database connection
Hello, I made an application ( GUI ) which uses a MS acces Database. I used Netbeans, so a JAR file is automatically created. The only problem is that when I run the Jar file ,the application isn't able to find the connection with the database. Very
-
How get data from another web page?
I have my own interface..after i key In a keyword and click search, method post will post the data to server and server will response.write a HTML page that display the result based on the keyword i Key In. The problem is i want the result display on
-
Why can't available to open my file in Adobe
I'm ops but when I'm send to email I not available to see my document