<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>486</bug_id>
          
          <creation_ts>2004-06-07 02:22:50 +0000</creation_ts>
          <short_desc>Can&apos;t specify jacorb.properties location</short_desc>
          <delta_ts>2004-06-07 15:59:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>ORB</component>
          <version>2.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin McCarthy">king_ramen</reporter>
          <assigned_to name="Simon McQueen">sm</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1071</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin McCarthy">king_ramen</who>
    <bug_when>2004-06-07 02:22:50 +0000</bug_when>
    <thetext>The &quot;cascading search&quot; for jacorb.properties has always been problematic. 
Recent circumstances make it even worse.

I am doing cluster development, and to simplify my environment, I am using the 
same JAR files, classpath, etc. for all members.

I would like to have a separate jacorb.properties file for each cluster member, 
but the &quot;detection&quot; algoritm would force me to either:

1. Create a separate user account for each cluster member
2. Create separate launch directories for each member
3. Create separate directories for jacorb.properties and use different 
CLASSPATHS.

None of those solutions is as nice as simply passing:

-Djacorb.properties=/path/to/some/file/called/anything

to the JVM. Such a behavior should take precedence over the &quot;automatic&quot; 
detection algorithm as a way to allow people to specify unambiguously the 
location of the file.

The changes to code are minimal. Thank you for the great software and for 
considering this request!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1072</commentid>
    <comment_count>1</comment_count>
    <who name="Simon McQueen">sm</who>
    <bug_when>2004-06-07 11:17:42 +0000</bug_when>
    <thetext>Hi Kevin,

Just to clarify - have you tried using -Dcustom.props=/path/to/some/file ?

If so in what way does it not meet your requirements ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1073</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin McCarthy">king_ramen</who>
    <bug_when>2004-06-07 15:41:00 +0000</bug_when>
    <thetext>No, I did not try that, since it is not an advertised feature. :)

According to the JacORB 2.2 documentation on page 16, properties are searched 
for:

1. in the lib directory of the JDK installation. (The JDK’s home directory 
denoted by the
system property ”java.home”).

2. in the user home directory. (This is denoted by the system 
property ”user.home”. On
Windows, this is c:\documents\username, on Unixes it’s ˜user. If in doubt where
your home directory is, write a small Java programm that prints out this 
property.

3. on the class path.

There is no referece to a &quot;custom.props&quot; system property.

I tried using such a property and it loaded IN ADDITION to jacorb.properties, 
and not instead of.

[configuration loaded from classpath resource 
file:/home/kevin/development/ucp/conf/jacorb.properties]

[configuration loaded from /home/kevin/development/ucp/conf/jacorb.properties.2]

This presented issues (obviously) but I can work around it if such behaviour is 
desired.

Thanks,
Kevin

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074</commentid>
    <comment_count>3</comment_count>
    <who name="Gerald Brose">gerald.brose</who>
    <bug_when>2004-06-07 15:52:35 +0000</bug_when>
    <thetext>Custom properties are perhaps not advertised, but they are documented
in the Programming Guide :-). (beginning p. 17)

Cheers, Gerald.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075</commentid>
    <comment_count>4</comment_count>
    <who name="Simon McQueen">sm</who>
    <bug_when>2004-06-07 15:59:28 +0000</bug_when>
    <thetext>As Gerald points out custom.props are documented in the next two parts of
section 3.1.1.

I will close this as invalid unless you have any objection ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>