For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > March 2006 > entity bean versus session bean for BMP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author entity bean versus session bean for BMP
timasmith@hotmail.com

2006-03-13, 3:56 am

Hi,

I have two needs
a) cache reference (lookup) semi-static data
b) execute my own SQL statements

So far for a) entity beans seems to work fine. I assume will have to
play with the isolation levels of methods in order to allow for
multiple concurrent readers.

For b) I have been using stateless session beans, which connect to the
database via JDBC and execute SQL as needed.

However this seems like a lot of beans being created unecessarily.

What if I switched those to Entity beans - which have no instance data
but which execute the SQL using local method variables only.

Would that work - can I make those methods Read Uncommitted forcing all
the transaction management to be handled by the database.

Does this make sense?

thanks

Tim

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com