james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <Paul_Hamm...@yahoo.com>
Subject Re: Starting James
Date Wed, 20 Feb 2002 23:11:13 GMT
Chris,

Avalon-Phoenix has an FtpServer too.  It can run in the same VM as 
JAMES.  There was talk some time back about morging of "user" orientated 
comps.  JAMES, as it happens, is a couple of releases behind the current 
Phoenix, but is catching up.

I think it is fatal as an excercise to coerce Phoenix to run something 
in theway you want.  JAMES_HOME as a concept does not exist for JAMES as 
a Phoenic app.  The James blocks can work out their "unpack" dir via 
BlockContext but not anything that exists at environment var level.... 
Phoenix has moved away from that.

You say the hard coded paths are a poblem in the way Phonix impls them. 
 Not so, Phoenix is the platform on which server apps should run.

I am lead to believe in summary that what you are trying to do is 
un-Phoenix.  Phoenix takes SAR files (multiple) and is always laucnhed 
by its supplied run.bat or run.sh.  Sorry dude.

I think you have answered Silvios questions well enough for me to ignore.

- Paul

>Paul, Thanks for the reply.
>
>Unfortunately, starting my application as a Phoenix block is not feasible.
>I start a number of other services (an FTP server, for instance), some of
>which are out of my control and have their own special start-up constraints.
>
>
>The hard coded paths that org.apache.avalon.loader.Main uses (directly or
>indirectly) represent a potential problem in any application or framework.
>For distribution purposes alone, there should be a way of specifying paths
>for the lib and blocks directories; environment, config file, whatever. For
>instance, is there a JAMES_HOME variable I can set?
>
>Silvio, org.apache.avalon.loader.Main is in the file, Loader.jar, which is
>located in the James/bin directory.  This applies for 1.2.1 but may be true
>for 2.02a as well. The source code is another subject.  I can't find it.  If
>it is available for general consumption, and anyone knows where it is,
>please let me know.
>
>Chris
>
>-----Original Message-----
>From: Paul Hammant [mailto:Paul_Hammant@yahoo.com]
>Sent: Wednesday, February 20, 2002 9:05 AM
>To: James Developers List
>Subject: Re: Starting James
>
>
>Silvio,
>
>The context of your question is not well defined. Put it another way, I 
>do not know really what you are asking.
>
>- Paul
>
>>Hi Chris and Paul,
>>
>>is this only working with 1.2.1, because I tried to find the
>>org.apache.avalon.loader.Main class but I didn't succeeded.
>>I'm trying to start james 2.02a, but I have the problem I described above.
>>
>>Can you help me?
>>Thanks a lot,
>>
>>Silvio
>>
>>>-----Original Message-----
>>>From: Paul Hammant [mailto:Paul_Hammant@yahoo.com]
>>>Sent: 20 February 2002 08:18
>>>To: James Developers List
>>>Subject: Re: FW: Starting James in same jvm
>>>
>>>
>>>Chris,
>>>
>>>Make you application a Phoenix block.  <depend> 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:	'james-dev-help@jakarta.apache.org'
>>>>>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:   
>>>>
>>><mailto:james-dev-unsubscribe@jakarta.apache.org>
>>>
>>>>For additional commands, e-mail: 
>>>>
>>><mailto:james-dev-help@jakarta.apache.org>
>>>
>>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   
>>><mailto:james-dev-unsubscribe@jakarta.apache.org>
>>>For additional commands, e-mail: 
>>><mailto:james-dev-help@jakarta.apache.org>
>>>
>>>
>>
>>
>>------------------------------------------------------------------------
>>
>>--
>>To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>
>>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>
>
>
>




--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message