activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Classpath within application
Date Thu, 06 Apr 2006 06:39:22 GMT
Note that run.jar is a bootstrap executable jar to start the broker -
which auto-discovers the binary install and builds a classpath to load
the other jars; if you want to embed the broker in your application
I"d not use run.jar but use the activemq.jar instead.

James

On 4/5/06, rbrush <roger.w.brush@boeing.com> wrote:
>
> I've been tasked to incorporate an application to work with activemq.  Using:
>
> <bean id="myApp" class="my.package.MyApp" init-method="start"/>
>
> starts the application, but the application uses
> class.getResource("/MyFile.xml") and fails.
> The application does not appear to be getting the same classpath used to
> start activemq.
>
> System.out.println("Classpath = " + System.getProperty ("java.class.path"));
>
> returns just --> Classpath = C:\activemq-4.0-M4\bin\../bin/run.jar
>
> Is there any way to ensure that the bean gets the classpath used to start
> the activemq server?
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/Classpath-within-application-t1401888.html#a3772382
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message