I understand that I could manually put the info I want in a number
of places but that is not an implementation-independent
approach: if I change vendors I must change the hard-coded
info. I would rather "discover" the info dynamically at class
initialization time.
I've looked and can not find any way to do this currently -
I thought maybe one of you might have a trick.
I know that so much of EJB is UN-standard that one can't
"write once - run anywhere" so adding one more thing
(that must be changed for various vendors) is something
I might just have to live with. I just don't like doing it if
I don't have to: ease of maintenance and all that.
Thanks,
Bob
Bob Pecor
Vanguard Cellular Systems, Inc.
336.286.1742 (Voice) 336.286.1881 (Fax)
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 16, 1999 9:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Bean access to server info
Hey
Bob Pecor wrote:
> Not enough info, Chris. The info needed for the URL is
the protocol and
> port
> (no problem with the host address). One might also need
the JNDI initial
> context factory class name as another attribute.
What Chris meant was that you put this info into the
deployment
descriptor when you deploy the bean into the server, at
which time the
relevant info should be available.
> The problem is that some vendors us the RMI registry and
some use their
> own naming service. In the latter case the initial
context factory is also
> needed.
You should always be able to start the server with a -D
parameter
setting this kind of info as global environment variables
which your
beans then can use.
/Rickard
--
Rickard �berg
Computer Science student@LiTH
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".