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.
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.
Thanks,
Bob
Bob Pecor
Vanguard Cellular Systems, Inc.
336.286.1742 (Voice) 336.286.1881 (Fax)
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Chris Raber [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 15, 1999 6:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Bean access to server info
One option: Use the properties information in the beans
deployment
descriptor...
-Chris.
> -----Original Message-----
> From: Bob Pecor [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 15, 1999 2:52 PM
> To: [EMAIL PROTECTED]
> Subject: Bean access to server info
>
> How does an object (at class initialization time)
determine details of the
> EJB Server serving it up?
>
> I have an EJB that would like to register itself with,
say, an LDAP server
> so potential clients can
> use it. It needs to build and store a URL as the
"remotelocation"
> attribute
> of the LDAP entry.
> How can the bean determine this information in an
implementation
> independent
> manner?
>
> Any ideas?
>
> Thanks,
>
> Bob
>
> Bob Pecor
> Vanguard Cellular Systems, Inc.
> 336.286.1742 (Voice) 336.286.1881 (Fax)
> [EMAIL PROTECTED] <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".
===========================================================================
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".