Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Initialize remote facade of another application  RSS feed

Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a configuration problem. I have 2 EAR-type applications deployed in Weblogic 12c (though this post is probably not directly related to this platform, so I've posted it here) and want from one application to get access to a remote facade of the other application with @EJB annotation.

After reading tons of posts related to weblogic-ejb-jar.xml and ejb-jar.xml descriptors I still can't find a way to initialize the remote interface with simple @EJB annotation (no parameters). I have all this stuff working using a custom service locator that uses a global JNDI path (java:global/earname/ejbmodulename/MyFacade!com.package.MyFacadeRemote) and I also was able to achieve a more elegant way by using @Stateless(name = "MyFacade" mappedName = "MyFacade") in the stateless bean declaration and @EJB(mappedName = "MyFacade") in the client application. Still I know there is a way to specify the reference in the descriptor to avoid the EJB annotation's mappedName parameter in the client app. Anyone knows how it can be done?

Thanks and Regards
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!