Byte JMS Message processing in BPM process
Hello, I have a Global Automatic activity in my process which is listening a JMS Queue with Acknowledge Mode is set to "Auto Acknowledge". I am sending a XML on this JMS Queue as Byte Message. Please let me know how can I convert Byte XML back into text XML in my Global Automatic activity. I am using Oracle BPM 10.3.1.
Thanks in advance.
not the receive activity, rather the delivery service - that is called by the adapter. Depending on the operation type (one way only (input only) or two way /req-reply) the thread ~ and hence the transaction is held until it returns.
This means, under normal circumstances, the operation generated by the adapter wizard is oneway, and hence the delivery service inserts the message into the invoke message store, the thread returns, and the adapter (owning the tx if configured that way) will commit.
The process instance is started from a new thread then (and hence with its own tx).
Similar Messages
-
How to send JMS Message from a BPM Process
Hi All
I have small query regarding sending JMS Message from a bpm process. Is it possible to send JMS message from one bpm process to another bpm process.
I have a scenario in which I need to send a JMS message to a queue where another process is listening on that queue and as soon as the message is received on the queue the process instance is created.
I know how to listen for the JMS message on the queue, but I don't how to send a JMS message from a process.
Also Can I create process by sending the Notification to the process instead of a JMS message. But the process to be created is not a subprocess i.e. Can notification be send accross different processes.
Any information or example in this regard would be helpful.
Thanks in advance
Edited by: user9945154 on Apr 22, 2009 7:46 PMHi,
Here's one approach to sending JMS messages from an Oracle BPM process. If you're doing this just to send a message into another process, do not take this approach. It's far easier and quicker if you do this using the OOTB "send notification" logic.
These steps describe how to do this using WebLogic. The steps would be different if you're using another ap server / JMS provider.
1. Guessing you've already done this, but first expose the two required WebLogic jar files for JMS messaging as Java components in the External Resources. The two files for WebLogic are weblogic.jar and wljmsclient.jar” (located in the < WebLogic home directory > /weblogic/server/lib” directory).
AquaLogic BPM JMS Queue Listener for WebLogic 8.1
2. You've probably already done this, but add an External Resource to represent the J2EE container:
• Name: “weblogicJ2EE” - this is important and will be used in the next step
• Supported Type: “GENERIC_J2EE”
• Initial Context Factory: “weblogic.jndi.WLInitialContextFactory”
• URL: “t3://localhost:7001”
• Principal: and Credentials: whatever userid and password you defined to access theWebLogic administrative console.
3. Create the External Resource that represents the send queue configuration. In this example, I'm calling it “WebLogic Send Queue”. This is important - remember what you named it because you will use this name in the logic that sends the JMS message. This new External Resource is configured as:
• J2EE: “weblogicJ2EE” (same name as the second External Resource you created)
• Destination Type: “QUEUE”
• Lookup Name: “weblogic.examples.jms.exampleQueue”
• Connection Factory Lookup Name: “weblogic.examples.jms.QueueConnectionFactory”
4. Here's the logic to send a Message to the Queue
<pre class="jive-pre"><p />msg as String = "Hello World"
jmsMsg as Fuego.Msg.JmsMessage
msg = "<?xml version=\"1.0\"?><Msg>" + msg + "</Msg></xml>"
jmsMsg = JmsMessage(type : JmsMessageType.TEXT)
jmsMsg.textValue = msg
sendMessage DynamicJMS
using configuration = "WebLogic Send Queue",
message = jmsMsg</pre>
Note that the “sendMessage” method uses the configuration parameter “WebLogic Send Queue”. You previously created a JMS messaging service External Resource with this name in the third step.
Again, please don't go this route if you're just using it to send notifications between processes,
Dan -
How to read JMS message properties from BPEL or BPMN process
Hi all,
I have a JMS Adapter that consumes messages from a remote ActiveMQ queue and I don't find the way the get the properties of the JMS message as I would like to map them in BPEL or BPMN process variable. I only manage to get the content of the message.
I've also read that if using a MapMessage, one of the map entry can be mapped directly and that the other map entries go to jca.jms.Map.xxxx where xxxx is key of the map entry.
But how can I map those "jca.jms.Map.xxxx" properties on process variables ? and how to map JMS Properties (that seem to be mapped on jca.jms.JMSProperty.xxxx) to process variables ?
I use SOA Suite version : 11.1.1.4.0
Thanks for your helpSOA Suite 11g - how to set/get JMS headers ?
-
Correlated message processing and QOS in BPM
Hi,
I need one clarification w.r.t correlated message processing within integration process.
Is there any relationship between the QOS and correlation w.r.t message processing inside the BPM ?
In otherwords, will the QOS automatically changed to EOIO in BPM while processing correlated messages ?
I appreciate your reply.
Regards
VenkatHi,
In case of multiple messages to same receiver the QOS will change automatically....EO to EOIO
For more details:
http://help.sap.com/saphelp_nwpi71/helpdata/en/28/68073c8e56f658e10000000a114084/content.htm
This happens to make sure that you get the required message at the required point...Exactly Once IN ORDER
Regards,
Abhishek. -
How to test BPEL Process that starts with a pick consuming a JMS message
Hi,
We are using App Server v 10.1.3.3.0 and attempting to test a BPEL process which starts with a pick operation which is awaiting a JMS message on a specific queue.
We are using the Oracle JMS adapter to achieve this.
Is there any way in which this particular configuration can be easily tested using the BPEL testing framework? I have problems when I write the first initiate XML statement in my test case (stack trace below)
<2011-01-27 10:23:47,028> <ERROR> <ProvisioningInterface.collaxa.cube.bpeltest> test run failed!
ORABPEL-20011
Instance initiation error.
An error occurred while launching an instance for suite "BasicTest", test "baseline.xml".
Please examine the log file for details or contact the system administrator.
at com.collaxa.cube.engine.test.BPELTestRunManager.initiate(BPELTestRunManager.java:218)
at com.collaxa.cube.ejb.impl.BPELTestBean.runSuites(BPELTestBean.java:625)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Unfortunately, there are no further details or any example I can see which simulate the kind of setup I have for my test.
Any help much appreciated,
Kind Regards,
Colin.Hi,
I assume you mean the JMS example under the $OH BPEL examples area. Unfortunately, this only shows how to get a BPEL process kicked off by awaiting a JMS message - but there is no test code there! There are specific examples which show off the testing framework facilities but it appears that all the examples which use async type of interactions are in the middle of a process which is kicked off by a normal synchronous client interaction.
Any further help much appreciated.
Colin. -
Kick off a business process with JMS message
I'm a newbie with a job that's way over my head and I'm thouroughly confused on
the logic involved with kicking off a business process (workflow) through the
reciept of a JMS message. The docs say it can be done. I have a business process
in one project folder of an enterprise app, its start node is a channel subscription.
Can I somehow send a JMS message directly to the business process? (Send a message
NOT from within the weblogic environment, but from outside) I have created a
Message Driven bean in a seperate project folder of the same application as the
business process. From an outside client, I think I might need to invoke the
MDB with a JMS message, then call the business process from there. Is this totally
off-base? What do event generators have to do with any of this?
Please help.Yes, you use the event generator.
Open up the Weblogic Integration console, click on Event Generators.
Add a JMS Event generator that listens to the queue you are interested
in, and then select the channel that your process has subscribed to.
Lisa wrote:
I'm a newbie with a job that's way over my head and I'm thouroughly confused on
the logic involved with kicking off a business process (workflow) through the
reciept of a JMS message. The docs say it can be done. I have a business process
in one project folder of an enterprise app, its start node is a channel subscription.
Can I somehow send a JMS message directly to the business process? (Send a message
NOT from within the weblogic environment, but from outside) I have created a
Message Driven bean in a seperate project folder of the same application as the
business process. From an outside client, I think I might need to invoke the
MDB with a JMS message, then call the business process from there. Is this totally
off-base? What do event generators have to do with any of this?
Please help. -
Hi,
While trying to read the message in Queue from my BPEL, Iam getting the following error:
JMSBC-E0713: Failed to process JMS message [com.stc.jmsjca.core.WTextMessageIn@ffae4c] in onMessage: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Can any one provide some suggestion on how to resolve this error.No, Iam just storing a simple message say "Hello" in the queue, the message is stored in the queue but it is shown in the below format when I opened that file in Notepad:
UUªª ªªUU ‡ÿãÂ- ‡ 6›4•Z 6›4”öÿ Â
Ô£9™ÿÿ¬h ÎM o „ fÂ6›4”ñ Trial4 com.sun.messaging.BasicQueue Hai ªªUU
and soon Iam getting this error below:
[Fatal Error] :1:1: Content is not allowed in prolog.
JMSBC-E0713: Failed to process JMS message [com.stc.jmsjca.core.WTextMessageIn@1e377d5] in onMessage: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog. -
Get Message Notification in BPM 10G from External JMS Provider
Hello,
Can anyone provide me the steps how to get a message from the queue (external JMS provider) in BPM 10G.
I have been looking into this for couple of days now and I'm not able to figure it out. Any input on this would be greatly appreciated.
Thanks
NCHi,
Please find the steps below and change the necessary parameter according to your requirement.
JMS Configuration and read the message from queue a
1) Configure a J2EE Configuration in External Resources with the following details.
Where
Name: J2EEConfiguration
Initial Context Factory: weblogic.jndi.WLInitialContextFactory
URL: t3://localhost:7001
Principal: weblogic
Credentials: weblogic
2) Configure a JMS Configuration in External Resources with the following details
Where
Name: JMSConfiguration
J2EE: J2EEConfiguration
Destination Type: Queue
Lookup Name: com.bibhu.queue – Refer to JMS configuration in Weblogic Server
Connection Factory Lookup Name: com.bibhu.cf – Refer to JMS configuration
3) Configure a Java Configuration in External Resources with the following details
Add weblogic.jar, wsclient.jar, and jms.jar files
4) Create a process and add a Global automatic Activity with the following configuration
5) Add the following code for different purpose
// The below code is meant for reading a message/messages from Queue
logMessage("JMS message retrieved from queue: \n" + message.textValue);
// The below code is meant for sending message to the Queue Where,
// JMSConfiguration: is the External Resource Configuration for JMS
// Bibhu: is the message body
String externalResourceId = "JMSConfiguration";
String msgBody = "Bibhu";
JmsMessage jmsMsg = JmsMessage(type : JmsMessageType.TEXT);
jmsMsg.textValue = msgBody;
jmsMsg.expiration = 'now' + '5m'; // expires in 5 minutes
sendMessage(DynamicJMS, configuration : externalResourceId, message : jmsMsg);
hope the above will help you.
Bibhu -
File Receiver - before message processing *urgent*
Hello experts,
I have a scenario where i need to execute a script in File receiver adapter.
problem: "i send an xml file to target system, but as long as there is a .xml file in the directory, it should not send.
He should wait and send only then when there is no .xml file in the directory."
Is that possible with "run operating system command before" in the receiver adapter or i need for this issue BPM?
Best wishes,
FKHi,
File receiver adapter has a "Run Operating System Command Before/After Message Processing" feature, so you could use it for such purpose :
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
I think it could be better to use a script than using BPM (it will save resources at XI level).
Chris -
How to stop message processing based on validation?
Hello experts,
I have a requirement to stop message processing in the graphical mapping based on validation results. Here is the scenario - messages are translated using graphical mapping and sent to the target system. An RFC lookup will be done to ECC to determine if the data in the message is good. If the lookup returns a negative result, message processing should be stopped right there.
I guess we can throw an exception from the mapping to force a failure and stop further processing, but that will cause the message to show up as failed on SXMB_MONI and cause alert emails to be sent out in PROD. Another option will be to supress creation of the root node itself, but I think the message will then fail in the subsequent "call adapter" step if the target schema has a min occurence of 1 for the root node (as in the case of IDocs).
Is it possible to do it without using BPM?
Thanks,
MichelleHi Michelle,
If your requirement, to stop message processing without sending an alert?
If yes, then you can have a alert rule, not to trigger alerts on a failure (And to raise an exception based on the result from RFC loookup).
If your requirement is not to make the message fail, then you have to go for the ccBPM route.
Best Regards,
Ravikanth Talagana -
OS level command before message processing
Hello
I am getting the files from the SFTP server through the shell script and expecting to be processed by my File sender adapter.
I have configured my File adapter which will poll the directory into which the shell script gets the file and it is scheduled at say 60 sec duration and i had configured OS level command before message processing.
But when i monitored my communication channel and also my directory I found out that its not executing the OS level command. I tried dropping the dummy file into the directory. This time when checked in comm channel monitoring, it executes the OS level command and gets the file from the SFTP server and adapter polls the SFTP file as well. But i don't want to use dummy file each time.
Is there any way by which we can always make adapter to execute OS level command. I tried various options like Process Empty files etc etc but no luck.
Thanks in advance.
regards
rajeevRajeev
How about placing a dummy file of 0 bytes, setting up the 'Handling of Empty Files = Don't create message', Processing mode = 'Test' and then writing a post operating command script as well, to move all the files to archive directory except the dummy file.
Not a clean solution but just a thought.
http://help.sap.com/saphelp_nw70/helpdata/en/e1/69a740aa053a13e10000000a155106/frameset.htm -
Mail on success or error in message processing
Hi experts
I need to configure a scenario
1. Receive idoc from an SAP system
2. Convert the Idoc into File and Place it in the NFS File directory.
3. On success of the message, I need to mail to SAP Owner regarding the success of the message.
4. On error as well , i need the error details to the SAP Owner.
I had configued all the basic steps in IR. I had struck with the BPM part.
Please suggest with the steps in the BPM.
Thnzhi Mohamed,
For sending the mail on success or error in message processing you need to go to the runtime workbench and configure the scenario for mail alerts.
You need to create the alert rules for the success scenario and the failure scenario.
While creating the rules you can specify the message id's to which the mail should be sent.
Please refer to the below link for more clarification.
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
Kindly search SDN also as there are several threads in the forum answering the same question.
Regards,
Alpa. -
Stateful message processing for async scenario
Dear all,
my async scenarios:
1. RFC -> PI -> File
2. File -> PI -> RFC
Following facts:
- The second message is a response to the first one. Both message are separted and async.
- Scenario 2 can be send some hours after Scenario1.
- A response should only be send if a specified field in the message of first scenario is filled.
For example: Message in scenario has a field <ResponseNeeded>YES</ResponseNeeded>
This field does only exist in message of scenario 1.
- Both message have an ID field (e.g. <ID>4711</ID>) which can be used to identified the
corresponding message.
Questions:
- Is it possible to use stateful message processing for this scenario? Or do I need BMP + Correlation?
- A service interface with pattern "stateful" can only be used synchronously. So is it
possible to use this stateful for async message processing at least?
I would assume that I will need a BPM that sends the messsage and keep alive until a
response will be sends with same ID. After this I would check message of scenario1 and
send (or even not) the message of scenario2 to receiver depending on <ResponseNeeded>.
Thanks in advanced.
ChrisHi Chris,
Although BPM is possible here, I would not recommend you to use one here for the reason,
>>Scenario 2 can be send some hours after Scenario1.
This means you are keeping a process alive for so long which is not a good thing to do.
You could end up with a lot of open/live process instances.
Having said that, if you still wish to go ahead with BPM, the steps would be
1. Receive async (RFC req) - start process, correlation based on ID.
2. Switch step (Evaluate ResponseNeeded)
branch 1(True): a. Send asynch step - File
b. Receive async - File correlation - ID.
c. Send async - RFC call.
branch 2(false) a. Send async -File
3. Stop process.
Regards
Jai -
High JMS payload processing in BPEL
Hi -
We need to process huge JMS messages through BPEL. Our current RAM size allocated to SOA JVM heap is 6 GB and process has 4 cores. While processing these messages soa server slows down too much.
Please provide suggestions how to handle this.
Thanks,
Ramesh<messages>
<SyncJobOrderEBSReqMsg>
<part name="QueryJobOrderEBM">
<ebo:QueryJobOrderEBM>
<ebo:DataArea>
<ebo:QueryJobOrder>
<corecom:Identification>
<corecom:ID>351407</corecom:ID>
</corecom:Identification>
</ebo:QueryJobOrder>
</ebo:DataArea>
</ebo:QueryJobOrderEBM>
</part>
</SyncJobOrderEBSReqMsg>
<SyncJobOrderEBSRespMsg>
<part name="QueryJobOrderResponseEBM">
<QueryJobOrderResponseEBM>
<DataArea>
<QueryJobOrderResponse>
<corecom:Identification>
<corecom:ID>817759</corecom:ID>
</corecom:Identification>
<corecom:Status>
<corecom:Code>F</corecom:Code>
</corecom:Status>
</QueryJobOrderResponse>
</DataArea>
</QueryJobOrderResponseEBM>
</part>
</SyncJobOrderEBSRespMsg>
</messages> -
Correlation & Multi message processing?
Hi,
I have some queries about <i>Correlation</i> in XI.
1. What is correlation in XI ?
2. How is Correlation different from Multi message mapping ?
Thanks,
Snehal.<i>1. What is correlation in XI ?</i>
>>>>
/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
Ref checklist - http://help.sap.com/saphelp_nw04/helpdata/en/6d/94364296f1b26be10000000a155106/content.htm
Correlation is used in BPM to relate messages say based on a particular field. In case the correlation is broken a new instance of BPM is executed.
<i>2. How is Correlation different from Multi message mapping ?</i>
>>>
multi mapping is convertion of N message to 1 or 1:N or N:M
Further reference:
BPM involved:
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
Without BPM:
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Maybe you are looking for
-
Unable to load Flash 9 on my Intel MacBook Pro
Unable to load Flash 9 on my Intel MacBook Pro but can on my Intel iMac. I spoke with a Tech from the Mac Store service area and was told that there in a thread on this issue but I can't find it. The basic issue is that I am able to load Adobe Flash
-
TS4009 can I make an icloud account on my pc?
Am I able to make an icloud account on my pc? if so, let me know how??
-
AEM(Asset MAnegement)
Hi guys anyone who has Asset management docs,simplyfied process doc's not the oracle user/impl guides,please share thank you in advance
-
Hello, I am running a backup and checking for any logical corruption - RMAN> backup check logical database; Starting backup at 03-MAR-10 allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: SID=135 device type=SBT_TAPE channel ORA_SBT_TAPE_1: Da
-
Wrong color in Photoshop when pasting from Illustrator
Hey!! I have what seems to be an issue with Illustrator CC 2014 edition (have tried CS6 as well). The problem occurs in InDesign as well. The problem is that a color shift occurs when I Copy something to Photoshop from Illustrator. The color profiles