[jboss-user] [JBossWS] - Re: Inject EJB problem in web service method !!

boby do-not-reply at jboss.com
Tue Sep 26 09:28:47 EDT 2006


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



More information about the jboss-user mailing list