Sie sind auf Seite 1von 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

Das könnte Ihnen auch gefallen