> AccountServices service = (AccountServices)
> context.lookup(AccountServices.class.getName());
> Account a = service.findAccountById(id);

One thing occurs immediately: The lookup will be fine if
AccountServices is a local interface on the bean. If it is a remote
interface, you'll need to narrow the reference before you can cast it.

julian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to