This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ejb

 
Soman Singh
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I am new to EJB.
So some questions would sound silly.

1. Can we make Session Bean Persistent. What I mean is we make a database connection and fetch the records.
2. Why does pooling concept not applies to Session Bean?

Thanks in Advance,
Sos
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Can we make Session Bean Persistent. What I mean is we make a database connection and fetch the records.

Why wouldn't you use an Entity Bean for that? Anyway, the answer would be "yes, you can use JDBC within a Session Bean's business method."
2. Why does pooling concept not applies to Session Bean?

Stateful Session Beans cannot be pooled from a logical point of view -- because each bean instance holds a client-specific state -- but Stateless Session Beans are being pooled.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I just realized you have double-posted the question and Pradeep had already answered in the other thread...
Please, consider deleting duplicate messages in the future, ok?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic