code sample icon Sample Code

In the source editor, after the line:

                               
 HelloWorldSession helloWorldSession =
  (HelloWorldSession)context.lookup("
                                
<mapped_name>#
                                
<bean_class_name>");
                              
                            

Add the following line:

                               
 System.out.println(helloWorldSession.sayHello( "world" ));
                            

Instead of typing the sample code, you can copy the code in this window and then paste it into the source editor.

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,