users@glassfish.java.net

Re: WebService objects vs. Worker Threads

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Jun 2008 06:25:08 PDT

No, its a standard java 1.6 web service. Here is the basic idea:


@WebService(targetNamespace="http://tempuri.org/")
public class TestWebService
{
    @PostConstruct
    public void startup() throws Exception
    {
        System.out.println("startup");
    }

    @PreDestroy
    public void shutdown()
    {
        System.out.println("shutdown");
    }

    @WebMethod(action="http://tempuri.org/SendMessage")
    public void SendMessage()
    {
        System.out.println("SendMessage");
    }
}
[Message sent by forum member 'ethere0683' (ethere0683)]

http://forums.java.net/jive/thread.jspa?messageID=278036