Chuck,

At the risk of helping the customer of a competitor, you could put the jndi
properties in properties files and load them at run-time instead of putting
them in your code. You can then put the file based properties resources on
your classpath.

In GemStone/J we automatically generate properties files for this purpose...

Regards,

-Chris

> -----Original Message-----
> From: Chuck Zheng [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 25, 1999 9:00 PM
> To:   [EMAIL PROTECTED]
> Subject:      Q: EJB & JNDI - multi-server EJB development
>
> Hello,
>
> If you have seen this message before, please ignore.
>
> Here is a problem regarding to EJB development, and I would like to know
> how other people solve it.
>
> We are currently developing a reasonably large system with WebLogic EJB
> Server with dozens of developers.  We plan to have each developer run
> their own EJB Server on their PC for developing their own EJBean.  Once
> the EJBean is developed, it is moved/deployed to a EJB Server running on
> a larger Unix box to be shared by all developers.  Then developers work
> on new EJBeans which depends on those EJBeans on the Unix server.
>
> This present a problem: How do you concurrently access EJBeans in two
> EJB
> server with location transparency? We don't want to hard-code any
> location
> info because all EJBeans will evnetually end up on the Unix Server.
>
> My understanding is that EJB Homes are published in JNDI by containers
> into
> individual EJB servers.  If we can make the contents of Unix Server's
> JNDI
> naming space available on each developer's PC's EJB server / JNDI naming
> system, then the problem is solved.  At present, we are not planning to
> use WebLogic clustering approach.
>
> We are writing a JNDI application to do it ourself.  I am thinking along
> the line
>
> 1) get a JNDI Reference of the EJB Home on Unix Server,
> 2) add that Reference/LinkRef into my PC's JNDI.
>
> I have no success yet - I could not find a way to get the JNDI Reference
> in
> step 1) after reading all the specs and tutorials (with some
> confusions).
> It seems to me that Reference is handled by Service Provider and not
> for "client" programming use.
>
> So I wonder
> - is our approach correct?
> - If no, what's correct approach?
> - If yes, How do I get the Reference?
> - Also, how an EJBean is published in JNDI naming system? I mean, does
> Container just bind the Home class to the name, or a JNDI Reference to
> the Home class is bound?
>
> - JNDI also mentioned URL for constructing RefAddr/Reference.  Where
> could I
> get this URL naming convention for EJB servers?
>
> Thanks in advance,
>
> Chuck Zheng
>
> ==========================================================================
> =
> 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