[jboss-dev-forums] [Design of EJB 3.0] - Re: Getting EJBTHREE-1337 in JBoss 5.0.0.GA with each web se

Jonas123 do-not-reply at jboss.com
Fri Apr 3 23:02:34 EDT 2009


"cwolters" wrote : I get the warning
  | 
  | [StatelessBeanContext]  EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected
  | 
  | with each call to a deployed web service. I'm running JBoss 5.0.0.GA with JDK6.
  | 
  | The Web Service is defined with these annotations:
  | @Stateless
  |   | @Remote(QuoteEndpoint.class)
  |   | @TransactionAttribute(TransactionAttributeType.REQUIRED)
  |   | @WebService(serviceName = "QuoteService", endpointInterface = "services.endpoints.QuoteEndpoint")
  |   | @Interceptors( { LoginEndpointInterceptor.class })
  |   | public class QuoteEndpointImpl extends AbstractSessionBeanImpl implements QuoteEndpoint {
  |   | 
  |   | 	@Resource
  |   | 	public SessionContext sessionContext;
  |   | ...}
  | 
  | and the webservice interface:
  | @WebService
  |   | public interface QuoteEndpoint {
  |   | 	@WebMethod
  |   | 	EquityDTO[] getSubscriptions();
  |   | 
  |   | 	@WebMethod
  |   | 	CustomSymbolDTO[] getCustomSymbols();
  |   | 
  |   | 	@WebMethod
  |   | 	void receiveQuotes(QuoteDTO[] quotes);
  |   | 
  |   | 	@WebMethod
  |   | 	void receiveEquityMappings(equityMappingDTO[] equityMappingDTOs);
  |   | }
  | 
  | Is something wrong with this code? Can I ignore the warning? 
  | 
  | Please remove the warning from the log if unnecessary.

Hi guys, I just came up with the same problem, is there any solution for this warning ? Why is it happening ? Although the code works I don't want to leave it that way. Please help me. 
 Thanks

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

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



More information about the jboss-dev-forums mailing list