Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jelle Klap wrote:Right, so you want to do a look-up of an EJB packaged inside the market-cadastro-ejb.jar archive from a class inside the market-web.war that's part of the same .ear deployment.
A local JNDI lookup should work in that case using the java:app namespace, but I would take a different approach altogether.
Instead of manually performing a look-up that couples your code to JNDI, in my opinion, you'd be better of using dependency injection and have JBoss figure out how to obtain a reference to the EJB (via JNDI somwhere in the background). Have a look at the @EJB and @Inject annotations
Wanna see my flashlight? How about this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|