|
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).