I forgot to specify that I use jboss-4.0.4.GA with jbossws by default.
And my code :
| @Stateless
| @SecurityDomain("Protected-Web-Services")
| @Interceptors( { LoggerInterceptor.class, ConnectionInterceptor.class })
| @RemoteBinding(jndiBinding = "TestSession")
| @WebService(name = "Test")
| public class TestSessionBean implements TestSession {
|
| private static Logger logger =
Logger.getLogger(TestSessionBean.class.getSimpleName());
| @EJB
| ResourcesDAOSession resourcesDAOSession;
|
| @RolesAllowed("ws_resources")
| @WebMethod
| public Resource echo(int idResource) {
| logger.info("DAO : " + this.resourcesDAOSession);
| Resource resource = this.resourcesDAOSession.getResource(idResource);
| logger.info("resource : " + resource);
| return resource;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974200#3974200
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974200
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user