File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes enity bean performance && commit options B/C Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "enity bean performance && commit options B/C" Watch "enity bean performance && commit options B/C" New topic
Author

enity bean performance && commit options B/C

Juergen Petri
Greenhorn

Joined: Feb 09, 2005
Posts: 5
Hi guys!

I really do need your experience.

If your app server isn't the only system accessing and possibly mutating certain tables in the database you have to choose commit options B/C.

Does anybody know how the different app servers implement the task of ensuring the correct state of entity beans?

Are they really reloading the state from the database every time I access a getter?

Isn't this a really huge performance hit and is anyone able to provide something more concrete than 'huge'?

Do you know of some 'special tricks' IBM WAS does with DB2 and Oracle AS does with Oracle DB?

Thank you very much for your help!

Best regards,
Juergen
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

"JuergenP JuergenP",

We're pleased to have you here with us in the EJB forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender
[ February 09, 2005: Message edited by: Jeanne Boyarsky ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Juergen Petri
Greenhorn

Joined: Feb 09, 2005
Posts: 5
Sorry about my login name.

Currently it 's 3:46 am my time and I'll correct my login name in the morning.

I didn't think about login name policies but just wanted to ask some serious questions.

My name is Juergen Petri from Osnabrueck, Germany.

Have a good nights sleep

Juergen
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi, you�ll find information on ejbLoad and ejbStore behavior and also how to control it at:

http://e-docs.bea.com/wls/docs81/ejb/entity.html#1107234

regards.
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
The above link is for weblogic 8.1 thought.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

Originally posted by JuergenP JuergenP:
Sorry about my login name.

No problem! Thanks for updating the name!
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

And in response to your question: it depends on your transaction settings. Marcos' link explains it well. This behavior conforms to standards and isn't app server specific.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: enity bean performance && commit options B/C