PDA

View Full Version : To Rod Johnson or Juergen Hoeller or Spring Team



gamblingman
Oct 28th, 2004, 08:28 PM
Can you give me one simple example that usage of EJBs with Spring?
My Email: the_light_river@yahoo.com

robh
Oct 29th, 2004, 05:33 AM
What particular EJB usage scenario are you looking at? Session beans, MDBs, entity beans?

Rob

gamblingman
Oct 30th, 2004, 01:46 AM
I'm looking at Entity Beans. Can you show me one example?
Thank for Reading

alesj
Oct 31st, 2004, 01:58 PM
I suggest that insted of using Entity beans you look at some ORM solution - Hibernate, JDO or something lightweight as IBatis.
Since as far as I know Spring has no usage of Entity bean, but has a nice variety of utilities for all that stuff that I mentioned.

If you want to learn more about Entity beans probably the best book that I came by was 'Mastering Enterprise JavaBeans second edition' by Ed Roman.

Rgds, Ales

gamblingman
Oct 31st, 2004, 07:11 PM
Thank Ales,
Can you post one example using ORM solution instead of Entity.
Using Struts+Spring + ORM Solution + EJB+Jboss. Can you post your example here?

alesj
Nov 1st, 2004, 06:46 AM
You got all sorts of examples already shipped with Spring:
http://cvs.sourceforge.net/viewcvs.py/springframework/spring/samples/

But probably before you go and have a look at them you should thouroghly go through documentation:
http://www.springframework.org/docs/reference/index.html

All these ORM (aspecially Hibernate) are really well explained. And there is also nice EJB access introduction.

But since you are looking for such 'global J2EE example' - how experienced with EJB are you (no offence meant)? Do you really need them - won't Spring be enough - with his great transaction and DAO coverage, well integrated AOP, scheduling, ...?

If EJB is really what you need, I belive there is a nice example app somewhere in CVS repository (also check other topics on EJB). Go step by step, really try to understand for your self how things are done, and then ask as much as possible precise questions. I'm sure people with experience will be glad to answer you. Answering such 'vast' question is probably impossible. 8)

Rgds, Ales

gamblingman
Nov 2nd, 2004, 04:04 AM
Thanks alesj very much.