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 hi need some advice 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 "hi need some advice" Watch "hi need some advice" New topic
Author

hi need some advice

addrian brilianda
Greenhorn

Joined: May 07, 2012
Posts: 6
i was noob for using EJB.... exclusively EJB -JPA...... one that i want to ask is that the EJB-JPA is thread safe.. and basicly can someone explain what is thread safe with a simple example and simple word.... i'm tottaly new here..
thanks..
Andrew Moko
Ranch Hand

Joined: Dec 16, 2011
Posts: 55
You need to go back to your scjp notes. It's a whole topic that can't simply be explained in a sentence.

But, simply put you don't have to worry about implementing your own safety methods just so classes/ methods/ variables are EXCLUSIVE. This mainly achieved by synchronization, wait()/ notify() etc etc.

Anurag Verma
Ranch Hand

Joined: Mar 30, 2012
Posts: 124

Being "Thread Safe" means that multiple threads can not execute methods of one particular object concurrently. if any thread is executing ANY of the methods of an object, other threads have to wait to execute ANY of the method of that object. (here ANY includes all the methods which are synchronized. for a completely thread safe Object/Class, all methods are supposed to be synchronized but methods from Object class may not be synchronized.)
addrian brilianda
Greenhorn

Joined: May 07, 2012
Posts: 6
here.... i tried this things..... i call the method to list the entity from database....... when i press the refresh(F5) button constantly.... it doesn't appear the error... but when i tried the some kind with two machines it's appear error.... why it's happened... and how to solve it???
Anurag Verma
Ranch Hand

Joined: Mar 30, 2012
Posts: 124

Please help me understand how is it related to your previous question???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi need some advice
 
Similar Threads
project example to practise
Entity Bean in 3.0
Tracking "free" lines in a dedicated set
Design implementation Doubt Please tell me the best approach
Can I use Entity class as my managed bean?