I want to use Stateless EJB Bean to be used both as web-service and also
using remote interface. 

when i define EJB as a service-endpoint then then it can be used only as a
web-service. when i invoking this EJB through Remote interface i am getting
this Error :-

Exception in thread "main" javax.ejb.EJBException: The bean encountered a
non-application exception; nested exception is: 
        java.lang.IllegalArgumentException: WebService calls must follow format
{messageContext, interceptor, [arg...]}.
        at
org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:219)
        at
org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:162)
        at
org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:117)
        at
org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)

please advice me ...



-- 
View this message in context: 
http://www.nabble.com/Using-Stateless-Bean-as-WebService-and-Remote-Interface-Both-tp22742953p22742953.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to