Your problem is a plain Java bug:
> "Bolt, Dave" wrote:
[snip]
> private Hashtable lookup = new Hashtable();
> private Context ctx = null;
> private CourseList list = null;
[snip]
> //Process the HTTP Get request
> public void doGet(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException {
[snip]
> if (list == null)
> {
> ctx = new InitialContext(lookup);
> Object ref = ctx.lookup("CourseList");
> CourseListHome listHome =
> (CourseListHome)PortableRemoteObject.narrow (ref,
> CourseListHome.class);;
> CourseList list = listHome.create();
> }
> System.out.println(list.getSize());
Aha! you assign the result of listHome.create() to a local variable that
immediately goes out of scope.
Toby.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]