[ 
https://issues.apache.org/jira/browse/CAMEL-4320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590617#comment-13590617
 ] 

Nicola Scannapieco commented on CAMEL-4320:
-------------------------------------------

I`m looking for a remote ejb calling by camel java dsl. 
Perhaps, I can explain my question better with an example: I`ve a web app with 
a local ejb component (named Test).
I invoke it by:
...
context.addRoutes(new RouteBuilder() {
    def void configure(){ 
from("direct:test").to("ejb:java:module/Test?method=printHello");}
})
...
and it works.

Now, I`ve deployed a remote ejb component (named RemoteTest) on the same 
application server (gf) but in a different web app (named testWA).
Now, when I try to invoke it from the first webapp by:
...
context.addRoutes(new RouteBuilder() {
    def void configure() { 
from("direct:remoteTest").to("ejb:java:global/testWA/RemoteTest");}
})
...

I obtain:
"No bean could be found in the registry for java:global/testWA/RemoteTest"

Can you help me to understand this error?

Many thanks in advance 



                
> Enhance the EJB component to be able to use remote EJBs
> -------------------------------------------------------
>
>                 Key: CAMEL-4320
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4320
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-ejb
>            Reporter: Jean-Baptiste Onofré
>             Fix For: Future
>
>
> To be able to use a remote EJB, a Camel EJB endpoint should at least support 
> the following attributes:
> - JNDI name of the EJB
> - JNDI context factory
> - JNDI URL provider
> - EJB interface
> - EJB home interface

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to