-
1. Re: @WebServiceRef fails in JBossWS metro webservice
ropalka Jan 13, 2009 9:48 AM (in response to nandaja)Upgrade to JBossWS 3.0.5. Some WebServiceRef related issues have been fixed there.
-
2. Re: @WebServiceRef fails in JBossWS metro webservice
nandaja Jan 14, 2009 11:17 PM (in response to nandaja)Hi,
Sorry for the typo .. I am already using JbossWS Metro..
Detailing the scenario a little further, I have a webservice Echo deployed on JBossWS Metro -3.0.5 on Jboss4.2.3-GA. I have another stateless session bean ( EJB3.0 ) annotated as a WebService. Also it acts a client to Echo Webservice, for which I have a WebServiceRef injection @WebServiceRef
private Echo echoClient;
in the bean.
I have defined a PostConstruct for this stateless session bean where I
might bind this reference to an Endpoint Address using BINDING_PROVIDER. However, in the post construct if I try to obtain a port on the injected reference, there is a Null pointer exception, which means that the injection did not happen. As far as a PostConstruct method is concerned, all injections have to be available therein. If I do not annotate the bean as a WebService, everything works fine.
Does the Metro deployer construct a bean instance on deployment ? I think it does, becuase I can see the logs hitting the post construct. If so , is there a race condition here, because the postconstruct is hit before the WebserviceRef injection is done by the ServiceObjectFactory of Jboss WS metro.
If I use a constructor to instantiate the service class instead of WebserviceRef, things work fine, and I can see the logs showing that the ServiceObjectFactory is used to do a getObjectInstance().This is missing in the bean instance creation done during deployment.
Also , if I look up the bean, webserviceref injection takes place fine.
Is this something that has not been tackled in JBossWs Metro webservice deployment ? This was working fine with JBossWS Native. We needed to switch to Jbossws metro to send some custom HTTP headers with the web service request.
Please advise as to whether this is a bug, or something that I am missing to take care during my deployment.
Thanks. -
3. Re: @WebServiceRef fails in JBossWS metro webservice
ropalka Jan 15, 2009 2:23 AM (in response to nandaja)"nandaja" wrote:
Is this something that has not been tackled in JBossWs Metro webservice deployment ? This was working fine with JBossWS Native. We needed to switch to Jbossws metro to send some custom HTTP headers with the web service request.
Please advise as to whether this is a bug, or something that I am missing to take care during my deployment.
Hi,
please create an JIRA issue and provide the simple test case that works on Native and doesn't on Metro integration. Then you can be sure it will be fixed. We consider it bug. -
4. Re: @WebServiceRef fails in JBossWS metro webservice
nandaja Jan 19, 2009 1:02 AM (in response to nandaja)Hi,
Have created a JIRA issue https://jira.jboss.org/jira/browse/JBWS-2476 for the same. Hoping for an early fix . Thanks.