[weld-issues] [JBoss JIRA] Commented: (CDITCK-60) Use of @WebServiceRef is not portable

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Jan 19 07:39:47 EST 2010


    [ https://jira.jboss.org/jira/browse/CDITCK-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12506864#action_12506864 ] 

Pete Muir commented on CDITCK-60:
---------------------------------

>From Alessio:

You should basically using another type for the @WebService annotated attribute, let me search for a sample for you (and check what we have in the doc, it might be not that clear...)

Sample:

 http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossws/framework/tags/jbossws-framework-3.2.2.GA/testsuite/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/

http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossws/framework/tags/jbossws-framework-3.2.2.GA/testsuite/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.java?revision=11335&view=markup has most the possible use of @WebServiceRef . You can either use a JAXWS SEI (Endpoint class in the sample) or a JAXWS Service (EndpointService in the sample)

Also see http://community.jboss.org/wiki/JBossWS-UserGuide#WebServiceRef

> Use of @WebServiceRef is not portable
> -------------------------------------
>
>                 Key: CDITCK-60
>                 URL: https://jira.jboss.org/jira/browse/CDITCK-60
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>    Affects Versions: 1.0.0.GA
>         Environment: solaris x86 / JDK 16u6 / GF v3
>            Reporter: Santiago Pericas-Geertsen
>             Fix For: 1.0.1.CR1, 1.1.0.CR1
>
>
> The tests,
> *.context.application.ejb.ApplicationContextSharedTest.testApplicationContextShared
> *.context.application.ejb.EJBApplicationContextTest.testApplicationScopeActiveDuringCallToEjbTimeoutMethod
> *.context.application.ejb.EJBApplicationContextTest.testApplicationScopeActiveDuringWebServiceInvoation
> use the @WebServiceRef annotation in a non-portable way causing a failure in GF v3. The structure of the test is as follows:
> ----------
> import javax.ejb.Local;
> @javax.ejb.Local
> public interface FeederService
> {
> public void refillFood();
> public boolean adequateFood();
> }
> ------------------------
> @Stateless
> @WebService
> public class BirdFeederService implements FeederService
> {
> ...
> }
> --------------
> @Stateless
> public class CommonKingfisher implements Bird
> {
> @WebServiceRef
> private FeederService birdFeeder;
>  public void eat()
>  {
>     birdFeeder.refillFood();
>  }
> --------------------
> The use of @WebServiceRef is not portable because FeederService is not a JAX-WS SEI.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list