• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Output from Sun's J2EE Tutorial

 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone tried running the this tutorial? It's found at THE J2EE TUTORIAL
The output from the section entitles "Running the J2EE Application Client" should be this:
Binding name:'java:comp/env/ejb/SimpleConverter'
12160.00
0.77
Unbinding name:'java:comp/env/ejb/SimpleConverter'
However, I'm not getting the last line output. This is the client code:


BTW, if anyone has difficulties in getting things working with Sun's RI under Windows 98, I've got script files which work.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works fine for me.
There are 2 System.out.println statements and both are displayed.
12160.00
0.77
There is a System.exit(0); after the 2 printf stmts.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I'm getting those two lines. It is this one which is not being output:
Unbinding name:'java:comp/env/ejb/SimpleConverter'
Or it could be something that I don't need to worry about.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running the code on Windows2000 Professional, service pack:3.
JDK1.3.1
I did not understand the purpose of the System.exit(0) stmt at the end.
Even without that stmt also, the output seems to be the same.
A couple of other BMP-entity bean samples seem to throw some exception due to ArrayList.set() usage. I had to fix it to make it work.
[ November 11, 2003: Message edited by: Vish Kumar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic