SCJP 1.4, SCBCD 1.3, SCBCD 5.0, SCEA J2EE, SCEA 5.0
------------------------------<br />IBM RUP Specialist,IBM SOA solution developer,IBM XML solution developer<br />SCEA ,SCBCD , SCWCD, SCJD, SCBCD 5, SCEA 5(In progress)<br />------------------------------
Originally posted by Deepak Kanwar:
You can inject EJBs or any resource into servlets - you can inject EJB 3 stateless and stateful session beans, EJB 2.1 Home, DataSource, ORB, UserTransaction, javamail session, JMS ConnectionFactory, JMS Queue, JMS Topic, etc. etc.
You can not inject resources into classes which are "not managed" by container like normal javabeans but servlets are container managed so you can.
--<br />[bold]Peter Pilgrim[/bold]<br />Java EE Developer, Designer and Architect<br/>Oracle Java Champion<br /><a href="http://jroller.com/peter_pilgrim" target="_blank" rel="nofollow">http://jroller.com/peter_pilgrim</a>
Originally posted by Deepak Kanwar:
You can inject EJBs [...] into servlets - you can inject EJB 3 [...] and stateful session beans
Originally posted by Dario Laverde:
@Mikalai,
Oh yes you can inject EJBs into servlets, see OpenEJB or JBoss Embedded and pretty soon the embedded Glassfish EJB containers. You can argue that it's non-standard, but it's not against the EJB 3 specs per se.
-Dario
Originally posted by Peter Pilgrim:
One thing I do not understand from a UML point of view is how does one represent annotations?
[ November 28, 2007: Message edited by: Peter Pilgrim ]
James Jurach
Developer
SC{JP5,JD5,WCD,BCD5,EA5}
David Chen<br />Java is my skin
Originally posted by Buddhika Pathiraja:
Can some body answer me ..
Can I assume J2EE 1.4 in the Part 2 Assignment [SCEA 5 Beeta] ???
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJP 1.4, SCBCD 1.3, SCBCD 5.0, SCEA J2EE, SCEA 5.0
SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Originally posted by Morten Franorge:
My question wasn't whether you can inject EJBs into servlets or not. It was whether you should. Of course SLSB makes sense, however as Servlets are singletons SFSB would be shared across all web clients.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Originally posted by Jose Huizar:
I think design patterns are still useful in J2EE 5, it's a good idea to hide the details of looking up an object maybe you'd like to switch the look up mechanism for your app from ejb dependency injection to one based in spring.
Also, keeping DTOs in your design may help decouple your domain model from the way they're presented in the UI tier.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Tomas Augusto Muller
http://tomasmuller.com.br/
The City calls upon her steadfast protectors. Now for a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|