Quoting Ruben DF <[EMAIL PROTECTED]>:
> I'm trying a simple example with testsuite1 which work
> ok (as initiatorApp does not work properly, i dont
> know the reason)
please let us know the problem you are having with interopibm sample.
we will be happy to help you and if indeed there is a problem we could also
fix it.
> initiatorApp example). In testsuite1 example the
> methods like begin, commit, rollback..etc are called
> from the SERVER..
the reason for this is in the new Kandula code, we use async porttypes.
So we need to use a server on the client side as well to listen to messages
sent to the client (e.g. replies) by the server. So both the client and the
server run inside a web container, need not be the same container of course.
>
> wstm.begin();
>
> // Time out after a minute
> binding1.setTimeout(60000);
> binding2.setTimeout(60000);
>
> // Test operation
> binding1.modificateString(var1);
> binding2.modificateString2(var2);
>
> wstm.commit();
>
> // TBD - validate results
>
> }
unless you run this inside axis, the commit will hang. because it expects a
reply from the server ("Committed" message) which it cannot receive as a
standalone client. your approach is correct otherwise. Since this is causing
a lot of trouble I think I will modify the code to allow standalone clients to
use sync porttypes soon. this is not a problem in axis2 since axis2 has been
designed to support this type of operations.
>
> is it correct? would it work ok the commit? In the
> servers stubs (EjKandula1SoapBindingImpl and
> EjKandula2SoapBindingImpl) the operations called
> modificateString and modificateString2 respectly only
> had the modification of the variable static, whitout
> the methods begin and commit/rollback, didn't have it?
> like this (to one WS, the other is equal)
I don't understand your question, could you please explain it again.
thanks,
--dasarath
>
> public void modificateString(String var) throws
> RemoteException{
> try {
> EjKandulaPortType p = new
> EjKandulaPortTypeServiceLocator().getEjKandula();
> p.enlistXA_OKOnPrepareResourceOperation();
> A=var;//modification of static variable A
> } catch (ServiceException e) {
> e.printStackTrace();
> }
> }
>
> Thanks in advance
> Regards
>
> Ruben
>
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]