File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One Session Bean is enough for whole application

 
Mohamed AshrafM
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now, I am doing one small project in j2EE Server with oracle.I have divided my project into 3 module. i'm using jsp for view, javebean for controller, session bean for session handling and entity bean for model.What my doubt is, one session bean is enough for whole project or separate session bean need for separate module. If i use one session bean for whole project, what will happen? will Problem come? or i have to use separate session bean for appropriate model?
my project scenario is
Jsp<-->javabean<--->session bean<--->Entity bean

Jsp calls javabean, Javabean calls session bean, session bean calls entity bean. Entity bean gives output to session bean,session bean give it to java bean and java bean to jsp.
This model is correct??If more than one user/same user access at same time, what will happen..Deadlock condtion will arise.If arise, how do we handle this??
Please, anyone remove my gloom.
Thanks in Advance.
with regards
Mohamed Ashraf
 
lolo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Mohamed AshrafM,
i have made some applications, and my experience say that you should use as many session beans as whole operations you use. It is not a good solution using a powerful session bean who response to any question.
In fact a session bean is used to make operations using entity beans, but if you have different functional operations, is better working independently.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic