aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Ejb " Watch "Ejb " New topic
Author

Ejb

Soman Singh
Ranch Hand

Joined: Sep 02, 2003
Posts: 37
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Ejb
 
Similar Threads
Maintaing everthing in Session Object
EJB
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05
Manually delete entity bean in memory?
Session bean without EJB environment