Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / December 2004

Tip: Looking for answers? Try searching our database.

Many provider URLs in jndi.properties?

Thread view: 
Martin Froment - 11 Dec 2004 23:12 GMT
Hi,

I am deploying a J2EE application on Oracle IAS.
I need the same EAR file to be deployed on many environments (client
requirement for deployment automation).

I thought about passing the "environment" parameter to the JVM, for
retrieving a custom PROVIDER_URL value from my jndi.properties file, which
is containing all needed provider URLs.

For example :
java.naming.provider.unit.url=iiop://myserv1:27001
java.naming.provider.fonc.url=iiop://myserv2:27002
java.naming.provider.acce.url=iiop://myserv3:27003
java.naming.provider.prod.url=iiop://myserv4:27004

I don't know how and when retrieving that custom PROVIDER_URL key associated
value... is the retrieving operation of standard "java.naming.provider.url"
immutable and implicit to the J2EE container?

Any help would be appreciated...

Martin.
Juha Laiho - 12 Dec 2004 16:24 GMT
"Martin Froment" <martin_froment@sympatico.ca> said:
>I am deploying a J2EE application on Oracle IAS.
>I need the same EAR file to be deployed on many environments (client
[quoted text clipped - 3 lines]
>retrieving a custom PROVIDER_URL value from my jndi.properties file, which
>is containing all needed provider URLs.

My? So, is this jndi.properties file included in the application?

My opinion lately has been that the less information applications have
about their environment (such as supporting servers, port numbers, ...),
the better. Environment information is then provided to the application
at installation/deployment time.
Signature

Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
        PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)

Martin Froment - 12 Dec 2004 20:25 GMT
Not my jndi.properties file, but the one in the services library, which is
part of the EAR to deploy.

I agree with you about the applications and their environment infos, but it
is a requirement...

Still searching a solution, if you have any suggestion... Thanx.

> "Martin Froment" <martin_froment@sympatico.ca> said:
>>I am deploying a J2EE application on Oracle IAS.
[quoted text clipped - 11 lines]
> the better. Environment information is then provided to the application
> at installation/deployment time.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.