This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Remote call in different server  RSS feed

 
Douglas Mendonca
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, how can call a remote ejb from different servers using annotation @EJB?

Server A
remoteEJB-1

Server B
remoteEJB-2

I have a code that its working, but I want to replace this lookup code by @EJB annotation, its possible?
My actual code (its working):


My jndi.properties is working fine with the code above:


I tried this and didn't work:


Any sugestion?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use @EJB to inject the EJB from a different server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!