On Mar 27, 2009, at 7:36 AM, Nitin Gupta wrote:
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 ...
Hi Nitin,
This has come up a couple times this month:
http://www.nabble.com/Re%3A-lose-remote-interface-when-creating-web-service-annotation-p22380170.html
(this one shows a spec compliant workaround)
http://www.nabble.com/User-Blog%3A-Using-OpenEJB-for-EJB3-testing-with-Maven2-to22323088.html
Pascal, Howard, Nitin,
I've brought this up on the EJB 3.1 Expert Group. If this is a
feature you're using now in another server, let me know what platform
that is. It will be a big help in possibly getting this supported at
the spec level.
-David