View Single Post
  #3 (permalink)  
Old 07-05-2009, 08:03 PM
jon80's Avatar
jon80 jon80 is offline
Senior Member
 
Join Date: Feb 2008
Posts: 195
Rep Power: 3
jon80 is on a distinguished road
Default
Code:
ProductClient.java
...
try
       {
          Context namingContext = new InitialContext();

          Product c1 = (Product) namingContext.lookup(url + "toaster");

          Product c2 = (Product) namingContext.lookup(url + "microwave");


          System.out.println(c1.getDescription());

          System.out.println(c2.getDescription()); //line 35 
....
       }
...


NOTE: It would be helpful to have the functionality that tags automatically generate line numbers (editable).

Last edited by jon80; 07-05-2009 at 08:07 PM. Reason: update #1
Reply With Quote