SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote: Can I inject a EJB resource in a Servlet?
Yes, you can.
Marco Ehrentreich wrote:
Yes, you can.
But this is new to the Servlet 3.0 API, right?
Marco Ehrentreich wrote: And to my knowledge you can define EJB resource to be available to concurrently used components like Servlets but you still have to look it up via JNDI. Please correct me if I'm wrong!
Marco
Jaikiran Pai wrote:
Jothi Shankar Kumar wrote: Can I inject a EJB resource in a Servlet?
Yes, you can.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Marco Ehrentreich wrote:How does this work for Servlets which are usually reused and shared between multiple clients, too?
Does this mean that the Servlet is a managed resource of the EJB Container?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Looky! I'm being abducted by space aliens! Me and this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|