Problems with Boxcarring

fedalpra.ici.curitiba.org.br's picture
Good afternoon, we're having trouble setting up the call of the methods of transaction (begin_boxcar, end_boxcar and abort_boxcar) following classes as we are doing, I would like to take a look and retornacem where we are failing.
AttachmentSize
shop.zip11.84 KB
sumedha's picture

Hi, We would definitely like

Hi, We would definitely like to help. But it would have been ideal if you can pin point the exact code block in which your having the problem. Generally speaking, this is how a code block using box carring would look like(Spellings of method names may not be 100% accurate) try{ stub.begingBoxCarr(); stub.insertOrder(order); stub.insertOrderDetail(orderDetail1); stub.insertOrderDetail(orderDetail2); stub.endBoxCarr(); }catch{ .... stub.abortBoxCarr(); } /sumedha
fedalpra.ici.curitiba.org.br's picture

Ok, following a block of our

Ok, following the block of code that are invoking the operation of the transaction, when invoked shows no error but nothing happens. public void run() throws Exception { options.setAction("urn:" + "begin_boxcar"); options.setManageSession(true); sender.setOptions(options); OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace("", "begin_boxcar"); OMElement payload = fac.createOMElement("begin_boxcar", omNs); sender.sendRobust(payload); }
anjana's picture

Hi, Boxcarring functionality

Hi, Boxcarring functionality may not be working, because you are using an incorrect version of the Axis2 client libraries. Make sure you use the Axis2 library "axis2-1.6.0.wso2v2.jar", which can be found at "DS_HOME/repository/components/plugins/". Regards, Anjana.
fedalpra.ici.curitiba.org.br's picture

Hello, Actually I was using

Hello, Actually I was using an older version, atlualizei the Axis2 library "axis2-1.6.0.wso2v2.jar" as guided me and it worked. Thank you.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)