Hi. I have implemented JSR-109 POJO Endpoint. This endpoint implements ServiceLifecycle interface. But init() method is never invokes. What's wrong?
I am using JBoss 4.0.4. Here is a code: ============= Endpoint interface: public interface ClientInterface extends Remote { public boolean login(String login, String psw) throws RemoteException; public void logout() throws RemoteException; } ============== Endpoint implementation: public class ClientInterfaceImpl implements ClientInterface, ServiceLifecycle { private ServletEndpointContext context; public void init(Object object) throws ServiceException { this.context = (ServletEndpointContext)context; } public void destroy() { } public boolean login(String login, String psw) { ... } public void logout() { ... } } =========== Web.xml: <web-app> <display-name>server8hWeb</display-name> <servlet-name>ClientInterfaceWS</servlet-name> <servlet-class>com.logiamobile.server8h.core.ClientInterfaceImpl</servlet-class> <servlet-mapping> <servlet-name>ClientInterfaceWS</servlet-name> <url-pattern>/ClientInterface</url-pattern> </servlet-mapping> </web-app> ============== webservices.xml: <webservice-description> <webservice-description-name>server8h</webservice-description-name> <wsdl-file>WEB-INF/wsdl/server8h.wsdl</wsdl-file> <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file> <port-component> <port-component-name>ClientInterfacePort</port-component-name> <wsdl-port>impl:ClientInterfacePort</wsdl-port> <service-endpoint-interface>com.logiamobile.server8h.core.ClientInterface</service-endpoint-interface> <service-impl-bean> <servlet-link>ClientInterfaceWS</servlet-link> </service-impl-bean> </port-component> </webservice-description> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979033#3979033 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979033 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user