Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic question on EJB..

Status
Not open for further replies.

henpat123

Programmer
Apr 14, 2005
35
US
Hi,
I have a very brief idea on EJB. Meaning I understand that EJB represents a record of a table in the database.

My Question is how is the connection in the database made when the EJB is deployed or invoked or called?

Can someone brief me out on that?

henry
 
You're asking about Entity Beans which are a specific type of EJB (which stands for Enterprise Java Bean).

The database connection is obtained from a DataSource which is bound in the JNDI repository of the J2EE server. This DataSource is configured in a vendor (J2EE server) specific fashion.

There is also a set of vendor-specific XML deployment descriptors which allow Entity Beans access to connections obtained from the DataSource.

Do you have a particular J2EE Application Server in mind?

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Thanks for the reply. Yes, you are right I am talking about the Entity Beans. I am using the Weblogic Server.

Thanks
henry
 
.. in which case, can anyone help Henry with configuring DataSources in WebLogic? (I only know Borland Enterprise Server and JBoss, I'm afraid).

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
just click sometimes like connection manager in workshop of weblogic.
I think you can set up something about connection when you creating a new domain from weblogic template...

I have tried using ejb in weblogic with MySQL and Oracle..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top