Quoting Jack Wang <[EMAIL PROTECTED]>:

> > I just tested the build but it doesn't have a problem, let us know if the
> > problem persists. thanks,
> > --dasarath
>   No problem again. If there is build error, I will tell you later.
>    
>   Question 1:
> In example InitiatorApp.java, there are two web services: IBM_INTEROP_SERVICE
> and KANDULA_INTEROP_SERVICE.
> Can I call these two web services in one transaction ? 
>       My reference code is:
>    public void testCommit() throws Exception {
>   begin();
>   getInteropService().commit(null);
>   getKandulaInteropService().commit(null);
>   commit();
>  }

InteropIBM sample was developed to test Kandula_1 for interoperability against 
IBM ws-tx impl. IBM endpoint is available at 
http://wsi.alphaworks.ibm.com:8080/interop/index.html.
The interop scenario document (also available from above URL) provides detail 
descriptions of what is been tested and how to interpret the results. Some test 
scenarios require a test orchestrator to selectively block certain messages. 
You can use the ManInTheMiddle class for this. Kandula_1 interops with IBM impl 
when Kandula_1 is in CS/IA roles and IBM is in PA role. We are yet to complete 
testing on other combinations.


>  private String eprOfKandulaInteropService = KANDULA_INTEROP_SERVICE;
>  private InteropService_PortType getKandulaInteropService() throws Exception
> {
>   return new InteropServiceServiceLocator().getInteropService(new URL(
>     TCPSnifferHelper.redirect(eprOfKandulaInteropService)));
>  }
>     I don't need to change code in method begin(),rollback(),commit().  
>   Am I right ?

correct, however note that in InitiatorApp we have duplicated the functionality 
of TransactionManagerImpl since it is designed work inside a web container-- 
whereas InitiatorApp is a standalone application. This is due to Kandula_1 
using async port types. Previously we support sync port types and this was not 
a problem.


>    
>   Question 2:
>  I can pass a object as a parameter to a web service and get the result as a
> object, the reference code is:
>         String wsdlUrl = "http://centerhost:8080/services/receiveDate?wsdl";;
>         Person p = new Person();
>   ...
>         Service service = new Service();
>         Call call = (Call)service.createCall();
>         QName qn = new QName("urn:BeanService","Person");
>         call.registerTypeMapping(Person.class, qn, new
> BeanSerializerFactory(Person.class, qn),new
> BeanDeserializerFactory(Person.class, qn)); 
>   // call the web service's method "receive"
>         call.setOperationName(new QName(nameSpaceUri, "receive"));    
>         call.setTargetEndpointAddress(new java.net.URL(wsdlUrl));
>  Can I do theses things in a transaction ? Where is the example code ?

You can. We do not have a sample that uses DII. However, it is not any 
different from using stubs. Once you estabilish a transaction using 
TransactionManagerImpl.begin, any web service invokation made from that 
*thread* until the tx is terminated will be included in the tx. The usage is 
similar to j2ee transactions.

>         
> Question 3:
>  Tomcat 5.5.12 reports "geronimo-spec-j2ee-1.4-rc4.jar not loaded", maybe I
> load too many jars in tomcat 5.5.12, I will do a test with minimum jars. The
> error message is:
> "2006-1-22 16:00:35 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> ÐÅÏ¢:
> validateJarFile(D:\miscsoft\kandula\KandulaProject\webapp\WEB-
INF\lib\geronimo-spec-j2ee-1.4-rc4.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.
> 2. Offending class: javax/servlet/Servlet.class 
> 2006-1-22 16:00:55 org.apache.catalina.core.StandardHost start"
>  Is there any conflict between geronimo-spec-j2ee-1.4-rc4.jar and other jars
> ?

the 2 jars: geronimo-spec-j2ee-1.4-rc4.jar, servlet.jar contain similar 
implementations.

>  
>  Too many questions, but I must pass the testing if I wish to use kandula in
> a distributed application. Thanks.

test-suite1 and interopIBM sample are complementary. test-suite1 shows how 
Kandula_1 ties in with j2ee. Whereas interopIBM sample shows how to use ws-tx 
without j2ee. To learn how to use the client side of Kandula_1, you may use 
either sample.

the architecture guide describes a sample that involves a credit/debit scenario-
--  though some parts of the design may no longer be relavent.

thanks,
--dasarath

>    
>   > Greate, kandula is compiled with maven. But it is strange why It can not
> > download commons-logging jar, until I change  something the 
> > second time.Now I
> > will do a test in a test application with kandula. Happy New Year. Thanks. 
> 
> > 
> > 
> > Wang Jun
> 
> 
> Wang Jun
> __________________________________________________
> ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
> http://cn.mail.yahoo.com




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to