You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by darrickc <da...@gmail.com> on 2008/11/25 19:15:09 UTC
Web console not working with embedded broker setup via java with no
xml configuration.
I have an embedded broker completely configured through java code (no
deployable xml files). When I point my browser to the web console I just get
a 404, and an lsof shows that nothing is listening on 8161. Is it possible
to use the web console with a broker setup only with java code? I'm fine
with using the webserver that comes with ActiveMQ, and I'm fine with the
8161 port. I've seen both:
http://www.nighttale.net/onjava/integrating-activemq-web-console.html
and
http://activemq.apache.org/web-console.html
My goal is to be able to access the web console without adding any
additional configuration outside of our java server; any help would be
greatly appreciated.
--
View this message in context: http://www.nabble.com/Web-console-not-working-with-embedded-broker-setup-via-java-with-no-xml-configuration.-tp20686813p20686813.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Web console not working with embedded broker setup via java with no xml configuration.
Posted by James Strachan <ja...@gmail.com>.
2008/11/26 darrickc <da...@gmail.com>:
>
> Ahh, ok. Thank you for your help I'll work with your suggestions!
BTW here's how we boot up the admin console in the source code using
Java and no spring/XML...
http://svn.apache.org/viewvc/activemq/trunk/activemq-web-console/src/test/java/org/apache/activemq/web/tool/Main.java?view=markup
I posted this to the question you asked at stackoverflow.com
http://stackoverflow.com/questions/318193/activemq-web-console-doesnt-work-with-embedded-broker#320168
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/
Re: Web console not working with embedded broker setup via java
with no xml configuration.
Posted by darrickc <da...@gmail.com>.
Ahh, ok. Thank you for your help I'll work with your suggestions!
James.Strachan wrote:
>
> 2008/11/26 darrickc <da...@gmail.com>:
>>
>> I'm confused. It seems that the WebConsole-README.txt that comes with
>> ActiveMQ 5.1 contradicts what you say... The first sentence in the file
>> states:
>> In the default configuration ActiveMQ automatically starts the web
>> console
>> in the
>> same VM as the broker. The console is accessibly under
>> http://localhost:8161/admin/.
>>
>>
>> It seems like it should work right out of the box without any extra work.
>> Or
>> is an embedded broker not a "default configuration"?
>
> That documentation is referring to when you boot up the broker using
> the activemq shell script that comes with the binary distro of
> ActiveMQ
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>
>
--
View this message in context: http://www.nabble.com/Web-console-not-working-with-embedded-broker-setup-via-java-with-no-xml-configuration.-tp20686813p20704582.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Web console not working with embedded broker setup via java with no xml configuration.
Posted by James Strachan <ja...@gmail.com>.
2008/11/26 darrickc <da...@gmail.com>:
>
> I'm confused. It seems that the WebConsole-README.txt that comes with
> ActiveMQ 5.1 contradicts what you say... The first sentence in the file
> states:
> In the default configuration ActiveMQ automatically starts the web console
> in the
> same VM as the broker. The console is accessibly under
> http://localhost:8161/admin/.
>
>
> It seems like it should work right out of the box without any extra work. Or
> is an embedded broker not a "default configuration"?
That documentation is referring to when you boot up the broker using
the activemq shell script that comes with the binary distro of
ActiveMQ
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/
Re: Web console not working with embedded broker setup via java
with no xml configuration.
Posted by darrickc <da...@gmail.com>.
I'm confused. It seems that the WebConsole-README.txt that comes with
ActiveMQ 5.1 contradicts what you say... The first sentence in the file
states:
In the default configuration ActiveMQ automatically starts the web console
in the
same VM as the broker. The console is accessibly under
http://localhost:8161/admin/.
It seems like it should work right out of the box without any extra work. Or
is an embedded broker not a "default configuration"?
Dejan Bosanac-3 wrote:
>
> Hi,
>
> in order to use web console you have to start web server (Jetty) and
> deploy web console application to it.
>
> You can find application war at the following url:
> http://repo2.maven.org/maven2/org/apache/activemq/activemq-web-console/5.2.0/activemq-web-console-5.2.0.war
>
> and consult Jetty documentation (http://www.mortbay.org/jetty/) on how
> to configure it from Java
>
> Cheers
>
> --
> Dejan Bosanac
>
>
> http://www.ttmsolutions.com - get a free ActiveMQ user guide
>
> ActiveMQ in Action - http://www.manning.com/snyder/
> Scripting in Java - http://www.scriptinginjava.net
>
>
>
> darrickc wrote:
>> I have an embedded broker completely configured through java code (no
>> deployable xml files). When I point my browser to the web console I just
>> get
>> a 404, and an lsof shows that nothing is listening on 8161. Is it
>> possible
>> to use the web console with a broker setup only with java code? I'm fine
>> with using the webserver that comes with ActiveMQ, and I'm fine with the
>> 8161 port. I've seen both:
>> http://www.nighttale.net/onjava/integrating-activemq-web-console.html
>>
>> and
>>
>> http://activemq.apache.org/web-console.html
>>
>> My goal is to be able to access the web console without adding any
>> additional configuration outside of our java server; any help would be
>> greatly appreciated.
>>
>
>
>
--
View this message in context: http://www.nabble.com/Web-console-not-working-with-embedded-broker-setup-via-java-with-no-xml-configuration.-tp20686813p20703911.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Web console not working with embedded broker setup via java with
no xml configuration.
Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi,
in order to use web console you have to start web server (Jetty) and
deploy web console application to it.
You can find application war at the following url:
http://repo2.maven.org/maven2/org/apache/activemq/activemq-web-console/5.2.0/activemq-web-console-5.2.0.war
and consult Jetty documentation (http://www.mortbay.org/jetty/) on how
to configure it from Java
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com - get a free ActiveMQ user guide
ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net
darrickc wrote:
> I have an embedded broker completely configured through java code (no
> deployable xml files). When I point my browser to the web console I just get
> a 404, and an lsof shows that nothing is listening on 8161. Is it possible
> to use the web console with a broker setup only with java code? I'm fine
> with using the webserver that comes with ActiveMQ, and I'm fine with the
> 8161 port. I've seen both:
> http://www.nighttale.net/onjava/integrating-activemq-web-console.html
>
> and
>
> http://activemq.apache.org/web-console.html
>
> My goal is to be able to access the web console without adding any
> additional configuration outside of our java server; any help would be
> greatly appreciated.
>