0

is there anybody who try to call ejb 3 from bundle on servicemi by use of camel route and spring-integration? I have following error:

java.lang.ClassNotFoundException: javax.ejb.EJBObject not found by org.springframework.context

Adding javaee-api doesn't help

Any suggestions?

рüффп
  • 5,172
  • 34
  • 67
  • 113

1 Answers1

0

You can get access to the EJB from any Spring bean only if you register that EJB as bean too. And what is good, Spring provides a hook for such tasks:

<jee:jndi-lookup id="myEjb" jndi-name="MY_EJB_JNDI_NAME"/>
Artem Bilan
  • 113,505
  • 11
  • 91
  • 118