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:[EMAIL PROTECTED]] >>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: '[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: >>> >><mailto:[EMAIL PROTECTED]> >> >>>For additional commands, e-mail: >>> >><mailto:[EMAIL PROTECTED]> >> >>> >>> >> >> >> >>-- >>To unsubscribe, e-mail: >><mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: >><mailto:[EMAIL PROTECTED]> >> >> > > > >------------------------------------------------------------------------ > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
