Re: problem in doing start up openjms server programatically?
Tim Anderson <[email protected]> Fri, 23 Mar 2007 13:45:48 +1100
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
openjms.home is a system property, passed to the jvm by
openjms.bat/openjms.sh
and contains the value of $OPENJMS_HOME.
You can set it explicitly by invoking:
System.setProperty("openjms.home", "<insert dir here>");
Also note that you currently have alpha-3 in your classpath.
-Tim
nisus wrote:
> Hi guys,
>
> I'd like to start up the openjms server programatically.
> so I did as follows:
> -----------------------------------------------------------------------
> String configuration = "c:\\openjms-0.7.7-beta-1\\config\\openjms.xml";
> JmsServer jmsServer = new JmsServer(configuration);
> jmsServer.init();
> -----------------------------------------------------------------------
> but, I got a error mesaage as follows:
> -----------------------------------------------------------------------
> OpenJMS 0.7.7-alpha-3
> The OpenJMS Group. (C) 1999-2005. All rights reserved.
> http://openjms.sourceforge.net
>
> WARN - AttributeExpander$AttributeInterceptor .expand(197) | Cannot expand
> script as property openjms.home is not defined
> WARN - AttributeExpander$AttributeInterceptor .expand(197) | Cannot expand
> keyStore as property openjms.home is not defined
> WARN - AttributeExpander$AttributeInterceptor .expand(197) | Cannot expand
> file as property openjms.home is not defined
>
> log4j:ERROR Could not open [${openjms.home}/config/log4j.xml].
> java.io.FileNotFoundException: ${openjms.home}\config\log4j.xml
> ...
> -------------------------------------------------------------------------
>
> Because the OPENJMS_HOME is correctly defined as system environment variable,
> I don't know the reason.
>
> Can anybody tell me the reason?
>
> Thanks,
> Lee
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV