Hi,

Only one little problem. I want to access the Calc Bean (from the
tutorial) (or any other bean) from a client application. But I don't
know how to get the HomeInterface.

Can anyone give a little code example for this? I tried:

Properties props = new Properties();
props.put("Context.PROVIDER_URL","http://localhost"); //The j2ee runs
local
Context initialContext = new InitialContext(props);
CalcHome home = (CalcHome)initialContext.lookup("calc");

But I get an ClassCastException. The class of home is something like:
...(cant remember)...CDRInputStream$1

Any ideas, code samples....?
Big thanx.

Michael

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to