[
https://jira.jboss.org/jira/browse/CDITCK-60?page=com.atlassian.jira.plug...
]
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...
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossws/framework/tags/jbossws...
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