Yes, now all I need to know is how to find the provider URL... Would it be
something like iiop://coredump:14000 ?
----- Original Message -----
From: "Tinou Bao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 6:30 PM
Subject: Re: Multiple EJB Container with the same beans but not same
version.
> This is how you typically obtain your initial context:
>
> String url = "your url";
> Properties h = new Properties();
> h.put(Context.INITIAL_CONTEXT_FACTORY,
> "weblogic.jndi.WLInitialContextFactory");
> h.put(Context.PROVIDER_URL, url);
> InitialContext initCtx = new InitialContext(h);
>
> --
> Tinou Bao
> www.tinou.com
>
> ----- Original Message -----
> From: "Maxime Poulin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 15, 2001 5:11 PM
> Subject: [EJB-INT] Multiple EJB Container with the same beans but not same
> version.
>
>
> > Hi all !
> >
> > I have two EJB Containers on the LAN here.
> > One of which (taipan) is on my machine. I use it for devlopping and
> > testing the bean part of our software.
> > The second one (coredump) is used for the "final" beans, and this
EJB
> > Container should be used by the other devloppers (who are building the
> > client side of the application).
> >
> > Now, suppose that the EJB Container on TAIPAN is up as well as the
one
> > on COREDUMP. They both contain the bean TestBean. But the TestBean on
> TAIPAN
> > might not be 100% working. Anyways, how do the client app knows where to
> > connect ? Right now, it seems most magic to me. If I shut down TAIPAN
and
> > run the app, it works fin (connects to coredump magically to access
> > TestBean). If COREDUMP is down but TAIPAN is up, it also works (as long
as
> > TestBean works). But what if BOTH are up ???
> >
> > There is something I do not understand. Right now, in my code, I
have
> > the following :
> >
> > javax.naming.Context jndiContext = new
javax.naming.InitialContext();
> > Object ref = jndiContext.lookup(MBS_BEAN_JNDI_NAME);
> > ..........
> >
> > As you can see, I do not give any info to the initialContext and let
> it
> > initialize by itself. But there should be a way for me to tell it to use
> the
> > container on coredump ????
> >
> > All I know is that coredump listens on port 14000 (osagent). What do
I
> > need to do to force the app to use this server ? What are the variables
I
> > have to set and how can I find the values for these vars ?
> >
> > Thanks a lot !!!!
> >
> > Maxime.
> >
> >
>
===========================================================================
> > 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".
>
>
===========================================================================
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".