Have you set all the properties you need in your InitialContext?
Don't forget to put the Home and Remote interfaces in your client's
classpath.
This code works for me, but it WILL be a little different for you.

  Hashtable environment = new Hashtable();
  // Specify the emd-rmi SPI    **  CHANGE THE SECOND VARIABLE  **
  environment.put("java.naming.factory.initial",
"com.evermind.server.rmi.RMIInitialContextFactory");
  // Specify the host
  environment.put("host", "the.remote.server.com");
  // Specify username - this must be an admin account on the remote server
  environment.put("username", "adminUser");
  // Password
  environment.put("password", "123abc");
  InitialContext context = new InitialContext(environment);

Noah Nordrum
Hyperride Technologies

Carpe Diem. A fish a day keeps the doctor away.

----- Original Message -----
From: Nentwig Manfred <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 29, 1999 10:51 AM
Subject: Callback from EJB


> Hello,
>
> has anyone had success writing a callback from an entity instance to a
> client?
> I had tried using RMI for this. The client passes its remote interface to
> the entity instance successfully,
> but the remote-call to the client doesn't work.
> Is a standard defined in the EJB specification for reaching the client
from
> the entity instance via callback methods or other?
>
> Any tips would be greatly appreciated.
>
> > Dipl. Inform. Manfred Nentwig
> > Consultant
> > Electronic Commerce Solutions
> > BU Electronic Insurance Solutions
> >
> > EMail:        [EMAIL PROTECTED]
> > ______________________________________
> >
> >     Heyde AG
> >     Amsinckstra�e 71d
> >     D-20097 Hamburg
> >     Phone: +49 (0) 40 / 237889-0
> >     Fax:     +49 (0) 40 / 237889-20
> >     http://www.heyde.de
> >     mailto:[EMAIL PROTECTED]
> > ______________________________________
> >
>
>
===========================================================================
> 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".

===========================================================================
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