0% found this document useful (0 votes)
196 views4 pages

Oracle Fusion Middleware Blog - Getting and Setting JMS Header Properties - SOA 11G

The document discusses how to get and set JMS header properties in SOA 11g. It describes using inputProperty and outputProperty tags in BPEL to set header properties on messages sent to the JMS queue and retrieve properties from messages received. The properties can then be accessed from the BPEL process and mediator using variables. Setting and retrieving properties involves adding code to the appropriate invoke and receive activities in the BPEL process.

Uploaded by

drasansam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views4 pages

Oracle Fusion Middleware Blog - Getting and Setting JMS Header Properties - SOA 11G

The document discusses how to get and set JMS header properties in SOA 11g. It describes using inputProperty and outputProperty tags in BPEL to set header properties on messages sent to the JMS queue and retrieve properties from messages received. The properties can then be accessed from the BPEL process and mediator using variables. Setting and retrieving properties involves adding code to the appropriate invoke and receive activities in the BPEL process.

Uploaded by

drasansam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

9/21/2016 OracleFusionMiddlewareBlog:GettingandSettingJMSHeaderPropertiesSOA11G

0 More NextBlog CreateBlog SignIn

OracleFusionMiddlewareBlog
Thursday,June20,2013 AboutMe

KaranMann
GettingandSettingJMSHeaderPropertiesSOA11G Follow 65

HiGuys, Viewmycompleteprofile

SometimesthereisrequirementwhereyouarerequiredtosetsomeJMSheadervaluesandthen
sendthejmsmessagetotheclientorconsumermayinteractwithyouviajmsqueueandsends
someuserdefinedpropertiesintheJMSheader.InBPEL11G,wecaneasilysetorretreivethese BlogArchive
values.
2014(2)
2013(28)
Setting JMS Header Values
October(2)
Step1:ClickontheinvokeactivityinsideyourBPELprocessthatiscallingyourJMSadapterfor August(1)
publishingmessagesinthejmsqueue.ThenclickonthesourcetabofBPEL. July(8)
June(3)
GettingandSettingJMSHeader
PropertiesSOA11...
DifferencebetweenBPEL1.1andBPEL
2.0
CompositeSensorsinSOASuite11G

May(6)
April(8)

Step2:Insidetheinvokeactivitycodeaddthisproperty<bpelx:inputProperty Labels

name="jca.jms.JMSProperty.propertyname"variable="variablename"/> BeginnersGuide(1)
wherepropertyname:nameofthepropertyyouwanttosetandvariablename:variablefrom BPEL(26)
whichyouarepassingvaluetothisproperty.Forinstance,inoutusecaseIamsettingfollowing
BPEL2.0(1)
properties:
DB(1)
Guide(1)
<bpelx:inputPropertyname="jca.jms.JMSProperty.MSG_ID"
variable="TransID"/> JCAAdapters(10)
<bpelx:inputPropertyname="jca.jms.JMSProperty.FROM_SYSTEM" JMS(4)
variable="FROM_SYSTEM"/> SOA(5)
<bpelx:inputPropertyname="jca.jms.JMSProperty.ServiceName" UsefulLinks(1)
variable="ServiceName"/> Weblogic(2)
Makesureyoupopulateallthesepropertiesbeforecallinginvokeactivity,otherwisethese XSL(2)
propertieswillcontainnull/blankvalues.

Followers

Followers(28)Next

Step3:Deployandtestyourcode.Verifythatthesevaluesaregettingsetbylookingintotheflow Follow
traceofyourcomposite.

TotalPageviews

1 6 8 3 1 6

http://learnoraclesoa.blogspot.in/2013/06/gettingandsettingjmsheader.html 1/4
9/21/2016 OracleFusionMiddlewareBlog:GettingandSettingJMSHeaderPropertiesSOA11G

Step4:Also,youcanverifythemessageinjmsqueueaswellandseeifthepropertiesare
properlysetornot.

Getting JMS Header Values

Step5:InsideyourBPELprocess,clickonthereceiveactivitythatisreceivinginputfromthejms
adapterandclickonsource.

Step6:Addthispropertyinsideyourreceiveactivity:<bpelx:outputProperty
name="jca.jms.JMSProperty.propertyname"variable="variablename"/>.Itissameaswedidfor
settingthepropertyexcepttheoutputPropertytag.Inmyexample,Iamretreivingthevalueof
jmsheaderthatIsetpreviously.

<bpelx:outputPropertyname="jca.jms.JMSProperty.MSG_ID"
variable="TransID"/>
<bpelx:outputPropertyname="jca.jms.JMSProperty.FROM_SYSTEM"
variable="FROM_SYSTEM"/>
<bpelx:outputPropertyname="jca.jms.JMSProperty.ServiceName"
variable="ServiceName"/>

Createthevariablesthatwillstorethevaluesoftheseproperties.

Step7:Deployyourcodeandtestyourcomposite.Insideflowtraceverifyyouareabletoretreive
thejmspropertiesheadersvaluefromtheJMSmessage.

http://learnoraclesoa.blogspot.in/2013/06/gettingandsettingjmsheader.html 2/4
9/21/2016 OracleFusionMiddlewareBlog:GettingandSettingJMSHeaderPropertiesSOA11G

InthiswayyouguyscansetandgettheheaderpropertiesofanyJMSmessageinSOA
11G.ApartfromaccessingthesevaluesfromBPEL,youcanalsoaccessthesevaluesfrom
Mediator.Inmediator,theyareaccessedintheassignstepusing:

Inbound:$in.property.jca.jms.JMSProperty.<propertyname>
Outbound:$out.property.jca.jms.JMSProperty.<propertyname>

Hopethispostofsomehelptoyou.

HappyLearning,
Cheers!!!

PostedbyKaranMannat8:37AM

Recommend this on Google

Labels:BPEL,JMS

2comments:

rajasekharpaati April3,2014at2:53AM

HiCanyoupleasegivemethesamescenariousingSpringContext.

Reply

delphici April7,2015at1:21AM

Ihaveoneproblemwithqueue.Ihave3partitionnorth1,2and3andwithconfigplanideploy
mycomposite.Butineedthis:Whatisnameofqueuecommingtomycomposit.Forexample
partition 1 user queue1 partition 2 use queue 2 and partition 3 user queue3 but all of queue
sendmessagetoonemycomposit.Whatisqueuename1,2or3?

Reply

Enteryourcomment...

Commentas: Selectprofile...

Publish
Preview

NewerPost Home OlderPost

Subscribeto:PostComments(Atom)

Simpletemplate.PoweredbyBlogger.

http://learnoraclesoa.blogspot.in/2013/06/gettingandsettingjmsheader.html 3/4
9/21/2016 OracleFusionMiddlewareBlog:GettingandSettingJMSHeaderPropertiesSOA11G

http://learnoraclesoa.blogspot.in/2013/06/gettingandsettingjmsheader.html 4/4

You might also like