[jboss-user] [JBossWS] - Re: asynchronous webservice posible with jboss ?

zauberlehrling do-not-reply at jboss.com
Wed Jun 13 07:31:08 EDT 2007


I tried the following:

package ws
  | 
  | import javax.jws.Oneway;
  | import javax.jws.WebMethod;
  | import javax.jws.WebService;
  | import javax.ejb.Stateless;
  | 
  | 
  | @WebService
  | @Stateless
  | public class Hotel {
  | 	
  | 	@Oneway
  | 	@WebMethod
  | 	public void
  | 	reserve(String input) {
  | 		System.out.println("input: "+input);
  | 		for (int i =0; i < 60; i++) {
  | 			try {
  | 				Thread.sleep(1000);
  | 			} catch (InterruptedException e) {
  | 				e.printStackTrace();
  | 			}
  | 			System.out.println("i: "+i);
  | 		}
  | 	}
  | }
According to the JAX-WS User Guide it should be an asynchronous webservice because of the annotation @Oneway. But it's not.
I've tested this JBoss-4.2.0.GA and jboss-5.0.0.Beta2. The call to 
this webservice is blocking. Any help is appreciated!

Thanks in adavance for any help,

Frank
  

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053896#4053896

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053896



More information about the jboss-user mailing list