This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Billy Hickory

+ Follow
since May 04, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Billy Hickory

True..the client can not call these methods - actually the container calls these methods. However, the provider can put code in these methods. On page 320 of the spec, it does state you can call getUserTransaction() method in ejbCreate and ejbRemove. If so, you have the Usertransaction object, which means you should be able to call the UserTransaction methods.

I believe it is an error in the specs. That is, if you have access to getUserTransaction(), you should be able to call the UserTransaction methods.
On page 320 of the specs, it states:

For BMT, ejbCreate/ejbRemove have access to getUseTransaction. Does this mean it can execute methods within the UserTransaction interface. If so, why does it list UserTransaction methods for ejbCreate/ejbRemove - similiar to onMessage(). That is, onMessage states getUserTransaction() and UserTransaction methods.
[ November 09, 2004: Message edited by: Billy Hickory ]
Is the hashCode() method required to return a positive number. It could possibly return a negative number if overflow occurs, correct?
What is the difference between using the class object(line 1) and the Thread object(line 2) when executing start?
public class Borley extends Thread{
public static void main(String argv[]){
Borley b = new Borley(); //1
//Thread b = new Borley(); //2
public void run(){