Re: FW: Starting James in same jvm

2002-02-20 Thread Paul Hammant

Chris,

Make you application a Phoenix block.   on the interfaces 
offered by James for true interaction.

Be in the same VM as Jo!, JabberServer, AvalonDB, Jesktop, etc etc too.

- Paul

>
>> -Original Message-
>>From: Forbes, Chris  
>>Sent: Tuesday, February 19, 2002 9:02 PM
>>To:   '[EMAIL PROTECTED]'
>>Subject:  Starting James in same jvm
>>
>>I am trying out James, version 1.2.1, on NT4.0, patch 6. 
>>
>>I wish to start James from my own Java application and to this end have
>>written a small test java class, StartJames, that instanciates an instance
>>of org.apache.avalon.loader.Main and then calls the main routine with an
>>args vector that has: {"-c", "config path", "-p",
>>"org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
>>
>>Of course, the arguments in args are valid paths.  When I run this test
>>program, I get the following output:
>>parser: org.apache.xerces.parsers.SAXParser
>>configurationPath : d:/Program Files/MailServer/James/conf/
>>logFile   : d:/Program Files/MailServer/James/logs/avalon.log
>>libPath   : ../lib/
>>blockPath : ./blocks/
>>
>>The first three items are fine, just as I specified in the args vector.
>>
>>My problem is that the last two items seem to be hard coded, "../lib" and
>>"./blocks".  If I actually put those directories relative to the place
>>where I run my test program, then it works fine.  But that is not very
>>configurable and won't work for the purpose I have in mind.
>>
>>My question is: Is there a way to make org.apache.avalon.loader.Main aware
>>of libPath and blockPath? For instance, via a call to
>>System.setProperty("libPath","path").
>>
>>If not, is there another way to start James programatically?
>>
>>Thanks,
>>
>>Chris Forbes
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: Starting James in same jvm

2002-02-19 Thread Forbes, Chris



>  -Original Message-
> From: Forbes, Chris  
> Sent: Tuesday, February 19, 2002 9:02 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  Starting James in same jvm
> 
> I am trying out James, version 1.2.1, on NT4.0, patch 6. 
> 
> I wish to start James from my own Java application and to this end have
> written a small test java class, StartJames, that instanciates an instance
> of org.apache.avalon.loader.Main and then calls the main routine with an
> args vector that has: {"-c", "config path", "-p",
> "org.apache.xerces.parsers.SAXParser", "-l" "path to avalon.log"}.
> 
> Of course, the arguments in args are valid paths.  When I run this test
> program, I get the following output:
> parser: org.apache.xerces.parsers.SAXParser
> configurationPath : d:/Program Files/MailServer/James/conf/
> logFile   : d:/Program Files/MailServer/James/logs/avalon.log
> libPath   : ../lib/
> blockPath : ./blocks/
> 
> The first three items are fine, just as I specified in the args vector.
> 
> My problem is that the last two items seem to be hard coded, "../lib" and
> "./blocks".  If I actually put those directories relative to the place
> where I run my test program, then it works fine.  But that is not very
> configurable and won't work for the purpose I have in mind.
> 
> My question is: Is there a way to make org.apache.avalon.loader.Main aware
> of libPath and blockPath? For instance, via a call to
> System.setProperty("libPath","path").
> 
> If not, is there another way to start James programatically?
> 
> Thanks,
> 
> Chris Forbes
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: