What kind of bean(entity/session) will you use if there are no database transactions and all you use is a read-only database.

Questions by deepti_bellubbi

Showing Answers 1 - 7 of 7 Answers

parash goswami

  • Apr 18th, 2006
 

stateless session bean

  Was this answer useful?  Yes

Rakesh

  • Apr 20th, 2006
 

It depends on the available infrastructure and programming efforts to be put in.Read only Entity bean(CMP) will minimize progarmmer time and effors, if one is comfortable with CMP developmet.Stateless or BMP requires more effort and coding than CMP

  Was this answer useful?  Yes

s_s78

  • May 3rd, 2006
 

If u are only reading the database then u dont need to use Entity been at all.

Entity been slows down data fetch operation.

U just need to use stateless session bean.

  Was this answer useful?  Yes

If you have no database transactions and you need just data fetch..I would not go for both of them..

We can as well use simple dao with jdbc call to fetch data. If you have to pick one from the beans then definetely it would be stateless for this scenario.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions