Hi Abhishek, Do you have a getRequestId getter method returning the value of the field RequestId in the command that you wrote? It has to have that getter through with the POJOCommand mediator accesses the value through reflection.
Thanks, Ruwan On Tue, Mar 10, 2009 at 1:30 PM, agupta2311 <[email protected]> wrote: > > HI > > I checked it properly and got to know that Pojo Command is not updating the > context.What can be the cause of this?? > > Thanks > Abhishek > > Ruwan Linton wrote: > > > > Hi Abhishek, > > > > You should be using the following property to read the updated context > > property; > > > > <property name="RequestId" context-name="id-var" action="ReadContext"/> > > > > Hope this helps, here the idea is you are reading a context property with > > the name "id-var" into the "RequestId" field of the command impl. > > > > Thanks, > > Ruwan > > > > On Mon, Mar 9, 2009 at 3:23 PM, agupta2311 <[email protected]> wrote: > > > >> > >> Hi Asankha > >> > >> I will take care from now onwards that i only attach files > >> Hey i have written this pojo Command > >> ---------------------------------------------------------------- > >> <pojoCommand > name="dblookup.Main"> > >> <property > >> name="processString" > >> expression="//processstring" > >> action="ReadMessage"/> > >> <property name="id" > >> context-name="id-var" > >> action="UpdateContext"/> > >> </pojoCommand> > >> ---------------------------------------------------------------------- > >> > >> The variable id takes its value from the class. > >> Now i want to pass the value of id to another pojo command.and i m doing > >> it > >> like this > >> ------------------------------------------------------------ > >> <property name="RequestId" > >> > >> expression="get-property('id-var')" > >> action="ReadMessage"/> > >> --------------------------------------------------------------------- > >> > >> But i am getting some error.So how to pass this value to another PoJo > >> Command. > >> > >> Thanks and Regards > >> Abhishek > >> > >> Asankha C. Perera wrote: > >> > > >> > Hi Abhishek > >> > > >> > Please only attach other files.. else the email becomes very messy and > >> > unreadable :-( > >> >> ERROR POJOCommandMediator Error invoking the execute() method on POJO > >> >> class > >> > > >> > > >> >> : class java.lang.Class > >> >> java.lang.reflect.InvocationTargetException > >> >> ... > >> >> Caused by: java.lang.NoClassDefFoundError: > >> >> com/sun/messaging/QueueConnectionFactory > >> >> > >> > Make sure your any JARs required by your JMS provider are copied to > the > >> > lib directory.. > >> >> What i am trying to do is to call this jms client using synapse.HOw > to > >> >> resolve this error? > >> >> Any sample example of calling a independent jms client from synapse > >> using > >> >> pojo or a class mediator will also be helpful. > >> >> > >> > this is a plain old class not found.. nothing related to Synapse > >> > > >> > cheers > >> > asankha > >> > > >> > -- > >> > Asankha C. Perera > >> > AdroitLogic, http://adroitlogic.org > >> > > >> > http://esbmagic.blogspot.com > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Invoking-Synapse-from-Non-Axis-2-Client-tp21970007p22410020.html > >> Sent from the Synapse - User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > > Ruwan Linton > > http://wso2.org - "Oxygenating the Web Services Platform" > > http://ruwansblog.blogspot.com/ > > > > > > -- > View this message in context: > http://www.nabble.com/Invoking-Synapse-from-Non-Axis-2-Client-tp21970007p22429505.html > Sent from the Synapse - User mailing list archive at Nabble.com. > > -- Ruwan Linton http://wso2.org - "Oxygenating the Web Services Platform" http://ruwansblog.blogspot.com/
