Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Question On Enterprise Java Beans, Answer me
Leo_578
post Mar 3 2005, 10:54 AM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 3-March 05
Member No.: 2,870



Hi All,
there's a question on ejb that i need to ask, the question is as follows:
Is it necessary for an entity bean to protect itself against concurrent access from multiple transactions?

Regards,
Leo

This post has been edited by microscopic^earthling: Apr 19 2005, 04:01 PM
Go to the top of the page
 
+Quote Post
BabyTux
post Mar 3 2005, 12:03 PM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 21
Joined: 2-March 05
From: Auckland, New Zealand
Member No.: 2,849



Hope this answers your question:

QUOTE
In Entity bean deployment descriptor, we can define whether the bean is-reentrant or non-reentrant. If we define the entity bean as being reentrant, multiple clients can connect to the Entity bean & execute methods within the entity bean concurrently. Container takes care of synchronization. If we define the entity bean as non-reentrant and many clients connect to it concurrently to execute a method, exception is thrown.


Read complete discussion: http://www.jguru.com/faq/view.jsp?EID=35269
Go to the top of the page
 
+Quote Post
ykf
post May 14 2005, 04:39 PM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 27
Joined: 14-May 05
From: Hong Kong
Member No.: 5,054



For transaction control in entity bean, it depends on whether you use CMT or BMT. If you use CMT (container-managed transaction), you need to write deployment descriptor on the concurrency access model for the container to use. This setting haven't specified in EJB spec, so it is now container specific (Websphere, Weblogic, JBoss... all use different descriptor syntax to deal with this). If you use BMT, you need to control it using JTA UserTransaction object, which is obtained from JNDI.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Using system date in java... How?(5)
  2. Array Sorting(21)
  3. Java Applets(5)
  4. Mp3 Questions(14)
  5. Need Help: Find Lowest Character Using Java(7)
  6. Download Java Ebooks(15)
  7. Java By Example(8)
  8. Looking For A Java IDE(25)
  9. How To Install Applications In Fedora(12)
  10. MySQL Output Database Question(18)
  11. How To Create Exe File In Java?(13)
  12. What's The Best CMS(38)
  13. Do Google Search Better Than Yahoo?(15)
  14. Concept Of Hijaab In Islaam(2)
  15. Simple Java Question(3)
  1. Java Memory Leak?(2)
  2. Question About Opengl Codes.(0)
  3. Css Minus The <p>(9)
  4. Php To Java(5)
  5. Java Mouse Movement.(2)
  6. Question: Ssh Tunneling(1)
  7. Pointers(0)
  8. How To Validate The Login Form Using Php Pcre(0)
  9. How To Design The Popup Menu Item Using Javascript(1)(0)
  10. Question Related To Website(5)
  11. Ask An Open Question 404 (and A Confused Noob)(3)
  12. Google Calendar Question(4)
  13. How Do I Get Rid Of Warn: (0%) ----- ?(9)


 



- Lo-Fi Version Time is now: 5th December 2008 - 11:51 AM