First of all, sorry bout my english.
The problem is that most of developers advice me not to use Entity Beans if I have lots of users, so I decided to use Session Stateless Beans.
Which are the advantages of using EJB instead of usual java Beans w/ JDBC Api??? Because I lost the (I think) main advantage what is transaction management...
Does session facade pattern makes sense then?
Where must I make DB calls? in session beans or must I develop some clases for the DB access to be called from SessionBeans?
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Does session facade pattern makes sense then?
-----------------------
No, session facades are for Entity beans
Sorry, but the Session Facade Pattern works regardless of whether or nor you use Entity Beans. The idea works just as well with plain old Java classes doing the JDBC work as it does with Entity beans.
Kyle
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Sorry, but the Session Facade Pattern works regardless of whether or nor you use Entity Beans. The idea works just as well with plain old Java classes doing the JDBC work as it does with Entity beans.
for data to a Session Stateful EJB [facade].One per use case.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by jose maria:
But I still hav one IMPORTANT question...
How can I save the state of every EJB...Now they are not entityEJB, they are Stateless...
How do you save them??? How do you manage this problem...
Yup, yup, yup. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|