OptionStoreServiceLocator optionStoreServiceLocator = new OptionStoreServiceLocator();
IOptionStore optionStoreStub;
boolean result = optionStoreStub.upgradeProject(fabN, optionsArray, email, language); //call of Webservice Funktion
17:07:15,807 WARN [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a31480e:18057fc5:55842e95:150 in state RUN
17:07:15,812 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a31480e:18057fc5:55842e95:150 invoked while multiple threads active within it.
17:07:15,813 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a31480e:18057fc5:55842e95:150 aborting with 1 threads active!
17:07:15,844 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a31480e:18057fc5:55842e95:150 <subsystem xmlns="urn:jboss:domain:transactions:1.3">
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
<coordinator-environment default-timeout="36000"/>
</subsystem>
public class xyz implements JavaDelegate{
public void execute(DelegateExecution delegateExecution) throws Exception {
OptionStoreServiceLocator optionStoreServiceLocator = new OptionStoreServiceLocator();
IOptionStore optionStoreStub;
boolean result = optionStoreStub.upgradeProject(fabN, optionsArray, email, language); //call of Webservice Funktion
}
}
package biz.mbisoftware.web.service;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
public class Helper
{
public static void modifyRecieveTimeout( final Object o )
{
Client client = ClientProxy.getClient( o );
HTTPConduit conduit = (HTTPConduit)client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setReceiveTimeout( 0 );
conduit.setClient( httpClientPolicy );
}
}
IOptionStore optionStoreStub; is not initialized.
But this will be the object the Helper::modifyReceiveTimeout needs to be called with before you call the webservice itself certainly.
optionStoreStub = optionStoreServiceLocator.getHTTPBinding_IOptionStore();execute methode. Because I write some Logger messages to the console when the methode is called and also when the methode ends. And exatly after 5 minutes the execution methode is called again.IOptionStore optionStoreStub = optionStoreServiceLocator.getBasicHttpBinding_IOptionStore(); <subsystem xmlns="urn:jboss:domain:ejb3:1.4">
<session-bean>
<stateless>
<bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
</stateless>
<stateful default-access-timeout="5000" cache-ref="simple"/>
<singleton default-access-timeout="5000"/>
</session-bean>
<pools>
<bean-instance-pools>
<strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="50" instance-acquisition-timeout-unit="MINUTES"/>
<strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="50" instance-acquisition-timeout-unit="MINUTES"/>
</bean-instance-pools>
</pools> <job-executor>
<thread-pool-name>
job-executor-tp
</thread-pool-name>
<job-acquisitions>
<job-acquisition name="default">
<acquisition-strategy>
SEQUENTIAL
</acquisition-strategy>
<properties>
<property name="lockTimeInMillis">
3000000
</property>
<property name="waitTimeInMillis">
5000
</property>
<property name="maxJobsPerAcquisition">
3
</property>
</properties>
</job-acquisition>
</job-acquisitions>
</job-executor>BasicHttpBinding_IOptionStoreStub class. There I searched for my methode upgradeProject and there I added _call.setTimeout(3600000) where all the different properties are set to the call.