Skip to Content
avatar image
Former Member

Remote interface on EJB required for Virtual Interface?

I'm trying to create a simple stateless session bean with a local interface (and one business method) which I want to expose through a webservice.

The webservice and session bean will run on the same server in the same JVM. When I tried to create a Virtual Interface on my session bean, I noticed the option to do that was not available in the IDE (it was disabled).

After trying and testing I found that a Virtual Interface can only be created when the session bean has a remote interface, which surprised me.

I would expect that it is possible to create a Virtual Interface on a bean with local interface when all is running in the same space.

Can somebody explain me why this isn't the case? Shouldn't it be possible to create a webservice on a bean with a local interface? Or am I missing something here?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 18, 2005 at 09:58 AM

    Hi,

    indeed the IDE does not support exposing local EJB interfaces as WS. The only thing that I can advice is to declare both remote and local interfaces, create a VI from the remote one and deploy. During the deployment the WebAS will determine the existence of a local interface with the same methods as the remote interface and will use local access at runtime.

    I know that this sounds a bit weird, but this will work until a better and more convenient IDE support is provided.

    Regards,

    Svetoslav

    Message was edited by: Svetoslav Manolov

    Add comment
    10|10000 characters needed characters exceeded