Hi
> Failed to build body from bytes. Reason: java.io.IOException: No
> ClassLoaders found for: com.corpus.biemedia.servlet.MailEx
I'd say you don't have the MailEx class on the same path as ActiveMQ.
I suspect it's not good enough to have it inside the webapp because
the activemq listener probab
We successfully use ActiveMQ on the Unix partition of the z/9. We only
run the client part there (the broker runs on a x86-linux box), but
I'd think that the server has any issues running.
You cannot use the MQ queues directly in ActiveMQ, but you can setup a
bridge to transfer the messages. Of cou
I consider the 100gb memory limits a bit excessive.. I don't know your
production system, but if you get 100gb memory per queue I absolutely
want to own it :) This values refer to available RAM, I think
something like 20mb should be enough for most purposes.
Depending on the environment you're depl
Hi Vadim
The "sender will block until resumed" means that if your broker dies
(or when your broker is down) while your application calls send (or
commit) then that call will just wait until your broker is back up or
the slave broker has taken over. This is normally desired behavior.
However it can
I'd say you run out of memory on the broker due to a memory leak in
the connection handling, every closed connection leaves a thread open
and still hogs some memory. You can check that with jConsole.
Can you try reusing or pooling the connections? There's a
PooledConnectionFactory that does this. I
I've seen the same behaviour today with an ActiveMQ 5.1.0 (JDBC-only
storage) and Java consumers (transactional).
The cause in my case was the AMQ-1838 bug which resulted in a huge
number of messages being paged in and the fetcher from the queue had
it's AtomicLong-lastMessageId set to a number sli
Hi
You can do that via JMX, it's pretty easy to do. The relation is
Queue<-Subscription<-Connection, just check it out in jconsole or any
other JMX-tool. I once submitted a patch that adds a page to the
webconsole that allows you to do that (it also adds a link to each
queue/topic with "show consum
If you really want to create and list queues you could use the
JMX-interface to the broker and call the addQueue method on the
Broker-MBean. That does create an empty queue.
Mario
On Wed, Jun 25, 2008 at 3:20 PM, James Strachan
<[EMAIL PROTECTED]> wrote:
> 2008/5/8 shaf <[EMAIL PROTECTED]>:
>>
>>
The correct MBean name is:
org.apache.activemq:BrokerName=,Type=Broker
The jconsole (at least with Java 6) displays the object name of any MBean.
Also it might be worth to look at the activemq_web project which
provides a layer to access the broker over jmx (query queues etc).
This is then used
I'd guess that the topics with 0 received don't have any consumer, the
ones with x have a single consumer and the ones with 2x have two
consumers registered. The two consumers both receive the message, so
two messages are received.
Mario
On Tue, Jun 24, 2008 at 11:28 PM, Badri
<[EMAIL PROTECTED]>
I think the problem might be the default Subscription Recovery Policy
in ActiveMQ 4.1.1 (support for retroactive consumers).
See https://issues.apache.org/activemq/browse/AMQ-1321 for the problem
and http://activemq.apache.org/subscription-recovery-policy.html for
more information. I'd probably set
are still seeing this issue i.e Broker
> not automatically reconnecting to the database
>
> Will I need fixes to both the issues below
>
> http://issues.apache.org/activemq/browse/AMQ-1591
> https://issues.apache.org/activemq/browse/AMQ-1350
>
>
> in order for the reconne
Hi
Depending on the JDBC driver you can have the driver to auto-reconnect
(I think jTDS supports that). However there's a catch in that: The
broker looses the lock on the master/slave table, so you'll end up
with both being the master (if you use jdbc-master/slave). I didn't
check that with the new
Can you connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
using jconsole? It looks like the port is not open:
java.net.ConnectException: Connection refused: connect
Mario
On Mon, Jun 2, 2008 at 1:02 PM, Xuyang <[EMAIL PROTECTED]> wrote:
>
> I have modified the catalina.bat,and ad
Your problem might be that the two brokers are in a network of brokers
due to this line
in the configuration (discovery via multicast).
However your config for broker B shouldn't do multicast discovery, but still..
Else you'll need to use jms/QueueConnectionFactory for all operations
related t
Did you close the session associated with the consumer?
Mario
On 3/6/08, sparky2708 <[EMAIL PROTECTED]> wrote:
>
> Periodically I have the following error. (I don't close the producer anywhere
> in my code) Any ideas why?
> javax.jms.IllegalStateException: The producer is closed
I don't know if it applies to your problem but you could setup a Camel
routing on the broker so that the 10'000 queues are forwarded into a
few, so that each client would only have to listen to 10 or so queues
(like one per broker).
Mario
On 2/19/08, Ben Chobot <[EMAIL PROTECTED]> wrote:
> Hey ev
I'd say your problem is due to the session running in auto-ack mode
(so after the onMessage method completes) and your manual ack. I think
ActiveMQ might just ignore your call to acknowledge() and wait for the
method to complete. Since the 5 second sleep is inside the
onMessage-method it'll assume
Hi
We once had the same issue (also with 4.1.1) and then discovered that
the messages were assigned to some consumer that basically crashed but
was still connected to the broker. Since 1000 messages is the default
prefetch size for a queue this might also be your problem. In JMX you
can see the con
We're running an ActiveMQ-based messaging infrastructure with multiple
applications communicating over it. Everything is running fine, but we
want to implement an 'alert'-system in case something goes wrong. I'm
not talking about a broker failure here (that is already monitored),
but of application
I'd say it's a problem related to connection pooling (or the lack
thereof). To do a simple test try replacing your
ActiveMQConnectionFactory with the PooledActiveMQConnectionFactory
(not sure about the name, but something along this line)
Mario
On 12/10/07, andriy_heikal <[EMAIL PROTECTED]> wrote
Hi
You don't really need a jndi.properties. Just place the activemq jar
in the common/lib (or lib if you're using tomcat 6) of your tomcat and
follow the configuration at
http://activemq.apache.org/setting-up-activemq-with-tomcat-559.html
Mario
On 11/8/07, Dave Carlson <[EMAIL PROTECTED]> wrote:
Just use the userName (uppercase N) and password property. This
applies to JNDI as well as spring.
Example tomcat config:
Mario
On 11/2/07, sudip <[EMAIL PROTECTED]> wrote:
>
> The activemq server I am using requires username and password for connection.
> I have setup jndi resource in tom
>From my experience with security in ActiveMQ you need to explicitly
allow everybody to create Advisory topics. This also matches with your
error message:
java.lang.SecurityException: User guest is not authorized to
create: topic://ActiveMQ.Advisory.Connection
so I'd try adding
to your confi
I think that's a reasonable scenario, Oracle will actually have
trouble detecting them fast enough. I don't know if there's a setting
in Oracle that would speed up the checks. MySQL and MS SQL Server
detect the disconnect almost instantaneous.
However this should not happen on a clean shutdown. Whi
I don't know about how Oracle exactly handles that, but all of the DBs
I've seen so far remove the locks as soon as the connection holding
them is disconnected or closed or the transaction is rollbacked.
Since the 'old' broker isn't running anymore the connection is
disconnected. And the locker ro
Since Version 5 isn't released yet the downloads are found under
"Latest SNAPSHOTS".
http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/apache-activemq/5.0-SNAPSHOT/
and then the newest tar.gz or zip.
Mario
On 10/9/07, Epiphany <[EMAIL PROTECTED]> wrote:
> However, when I "
Hi
You can use the webconsole with 4.1.1. I think your issue is a bug in
the trunk version that requires that you specify a jmx-username and
password. There's a posting by me on the dev list that contains, among
other, a path for this issue. If you can't find that posting just
write me an email and
I think you're issue is the prefetching of messages that is done by
ActiveMQ. Set the prefetchSize to 1 and it should work as you expect
it. See http://activemq.apache.org/what-is-the-prefetch-limit-for.html
Mario
On 10/2/07, Ned Wolpert <[EMAIL PROTECTED]> wrote:
> Folks-
>
> I'm trying to see
Hi
If you're using ActiveMQs master-slave then a slave will never have
it's transport connector up. This is archived by a database lock or
file lock or by having the slave checking the master (pure master
slave). See http://activemq.apache.org/masterslave.html
So you can just use the failover proto
This works for me. As soon as the database detects the loss of the
connection it frees the lock. Tested with MySQL and SQL-Server. I
didn't plug the power but instead did a kill -9 or unplugged the
network cable on the master.
I think this is supposed to be a feature of any database or else you'd
e
Hi
We had the same problem with NFS, I think it's an NFS/Java issue since
there also seem to be problems with other applications.
But someone told me they've it running successful with NFS, so I
suppose it's NFS-implementation/version specific whether locking works
or not (he ran a JVM 1.5.0_08 and
You can specify your own jdbc adapter class (see
http://activemq.apache.org/jdbc-support.html).
What I'd do is write a mysql adapter (extend the mysql one) and
override the locking statements. You can also rename the mysql adapter
for AMQ 5 (or svn revision 518161/518164) into
MySqlPropertLockingAd
AFAIK the expired message will be moved into the DeadLetterQueue.
Since you're able to configure the DLQ it should be possible to do
what you want (using AMQ5).
There's an open issue with expired message not being processed until
someone tries to consume them (The bug was AMQ-1112 I think). So sinc
he webconsole war in tomcat (after restating tomcat)
>
> the result is that the web app doesn't start cause it is trying to launch an
> activemq but one is already launch and the port taken. Perhaps the
> properties I put in the Tomcat monitor aren't at the right place. But t
nsole (f.e. webconsole-properties.xml) and the system
property tells it which one to use.
Else your settings are looking good to me.
Mario
On 8/28/07, den!s <[EMAIL PROTECTED]> wrote:
>
>
> Mario Siegenthaler-2 wrote:
> >
> > Only if the two are a master/slave
On 8/24/07, JohnFish <[EMAIL PROTECTED]> wrote:
> The question now is can I have a message producer in openjms and use the
> ajax functionality of ActiveMQ to consume these messages? Thanks in advance.
I think you'll have to setup a JMS bridge with active-mq to get the
messages from openjms into a
Only if the two are a master/slave pair (only one running at a time).
Else I'd recommend you to just deploy the activemq twice on a tomcat
and use jndi to configure it. You'd then have myhost/amqc1 and
myhost/amqc2 as urls to the webconsole.
Mario
On 8/23/07, den!s <[EMAIL PROTECTED]> wrote:
>
>
hi guys
What's the expected behavior with messages that are not ack'ed (for
example because the MessageListener throws an exception or the
transaction is rolled back) and have a JMSXGroupID set?
Say we've two messages A and B that belong to the same message group.
1) Processing of A fails. The co
Yes, this is very annoying in some situations where you depend onto
this numbers. How hard / expensive (performance wise) would it be to
add an configuration flag so the numbers are actually fetched from the
message store instead of 'just' being the difference of (messages
sent)-(messages consumed)
The default JDBCPersistenceAdapter has access to the BrokerService.
The broker service exposes the ManagementContext that contains a
getMBeanServer-method. So you get easy access to the MBean-Server.
Just register your JMX-Bean there. Example:
// just to illustrate..
MyPersistenceA
On 8/9/07, keneida <[EMAIL PROTECTED]> wrote:
> is it possible to set persistance to oracle in web console's emedded broker?
> when i try to do it i get:
Yes it's possible, you can change the activemq.xml in the WEB-INF of
the war to whatever configuration you like.
> Exception processing TLD ME
hat i
> mentionned.
> After, if it's possible i will try to embedded the activeMQ to Tomcat.
> But for the moment, the session never be created but i have a connection.
> I can't understand what happend because there is no exception throw !!
> Could you help me again ?
>
&g
I think you're supposed to call connection.start() as soon as you're
application thinks it fitting, connections don't come started (and I'd
hate it if they did). By documentation you can create session on
stopped connections you just won't receive any messages (not even sure
if you could send some
Hm, that's supposed to work, although I would create a
webconsole-custom.xml instead of changing the
webconsole-properties.xml, but that's minor.
We're running a configuration that's almost the same as yours and its
running just fine. Can you provide some more details about how you
start it? Do you
Just a thought, but why don't you use a topic for this? I think a
queue will cause problems because the message will be stored. So the
"I'm here" thing would possibly refer to an older question and would
no longer be relevant.
Hm, just reread your question, and realized that you directly want to
pr
Yes it's possible, we use it in a production environment with ActiveMQ 4.1.1
Just follow the description on
http://activemq.apache.org/web-console.html under "Starting the Web
Console in a seperate VM/in a Web-Container"
Mario
On 7/25/07, kpetrov <[EMAIL PROTECTED]> wrote:
Since 5.0 is not rel
That's actually a good question. The path I submitted that contains
the WebConsole README
(https://bugzilla.spamassassin.org/activemq/browse/AMQ-1281) also
included a change to the assemblies (windows-bin.xml and unix-bin.xml)
that copied over the war. However this part of the patch apparently
has
his version ?
Any idea as to why the factory is becoming null ?
Thank you,
Suchitha.
-Original Message-
From: Mario Siegenthaler [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 28, 2007 2:57 PM
To: users@activemq.apache.org
Subject: Re: access to embedded broker
Did you check the "
I think you need to name the two brokers differently. It seems like
you named both of them "localhost".
Mario
On 6/30/07, nkiesel <[EMAIL PROTECTED]> wrote:
Hi,
I'm using 4.1.1 and try to set up a network of 2 brokers:
aqprimary.xml has
and aqsecondary.xml has
Did you check the "Sharing embedded broker across webapp
contexts"-thread (last week)? This was the exact same problem and
serveral possible solutions (at least one of them I tested
personally).
Easy way: put the activemq in the common/lib and just let the to
webapps connect to vm://localhost. Way
f I specify xbean configuration in JNDI,
> would Tomcat automatically create the broker and issue broker.start()?
>
> Thanks,
>
> /U
>
> -- Original message --
> From: "Mario Siegenthaler" <[EMAIL PROTECTED]>
> > I thin
I think the easiest way would be to use a broker that is started by
tomcat. This can be done using JNDI-configurations in the tomcats
server.xml (see http://activemq.apache.org/tomcat.html).
To connect to the broker you can either get the connection-factory via
JNDI (standard way) or just make a n
Somebody proposed in a different thread to use a MessageSelector to
only select the messages that are at least an hour old. You could set
a message-property to System.currentTimeMillis() and then create a
selector with "SendTime < "+(System.currentTimeMillis()-360).
You'd have to recreate your
I've added some documentation about the webconsole and I included a
section about how to password protect it (although only on jetty, but
I hope the folks will figure out how to 'translate'' that to tomcat by
themself :).
And for the JMX-password issue there is a patch by Andrew Deason
(https://is
We've tried it on NFS on linux and it didn't work (some locking issue
with java and nfs). However it worked with windows shares, but we're
not using it because we run linux boxes.
Mario
On 5/31/07, Michael Slattery <[EMAIL PROTECTED]> wrote:
Hello List!
I'm interested in putting together the S
Yes, you can do that. The ajax-part is a servlet you can use in your
webapp and it can connect to any broker-url. F.e. you can add the
following to your web.xml
org.apache.activemq.brokerURL
tcp://my-server:61616
Mario
On 5/30/07, jefetech <[EMAIL PROTECTED]> wrote:
Can
Yes that might work. If I understand it correctly you could specify on
the maven command line which war to build resp. which 'version' of it
to run?
As you may have realized I had quite some trouble in finding a way to
let the user/deployer specify which 'version' to run. The best thing I
could co
Many thanks James, I realize this patch is quite bitchy to apply :)
I'll try it out as soon as I'm back home.
Mario
On 5/24/07, James Strachan <[EMAIL PROTECTED]> wrote:
Sorry for the delay getting back to you. Its taken me a while to get
the time to apply the patch and then get everything work
The current subversion head does not support this, however I've
written a patch allowing this. Check AMQ-1241
https://issues.apache.org/activemq/browse/AMQ-1241 for the attached
patch against the current head.
Greetings
Mario
PS: has anybody reviewed the patch?
On 5/15/07, liuxiaoming <[EMAIL P
to.
It seems that I should just copy and rename that sqlserver file.
Now for the stupid question.
Does that mean I will need to recompile ActiveMQ?
and build a new activemq.jar.
kd
Mario Siegenthaler wrote:
>
> You can tell ActiveMQ to use a specific database type by the followi
You can tell ActiveMQ to use a specific database type by the following
configuration:
Just lookup the correct adapter for SQL-Server. If you get a database
locking issue use the modified adapter by Daniel Mueller: JIRA-Issue
AMQ-1210 (http://issues.apache.org/activemq/browse/AMQ-1210)
Hope to
The default value of networkTTL is 1 (per the documentation); does this
mean
that messages will not cross more than one broker? Could that be causing
the
problem above?
I'd say it's the TTL that causes your problem (it actually does what you
said). Try setting it at least to 2.
I'd also config
Newbie question: I just downloaded the binarry install for activemp 4-1-1.
When I go through the 'getting started' steps, I can't access the web
console. the trace doesn't show any reference to a web server (shoud it be
jetty ?)
the http://localhost:8161/admin doesn't seem to be responding.
As
[.. broker 'losing' every 2nd message.. ]
Oh I just thought of another possible cause (related to the first one): You
might also startup a second broker named localhost (vm://localhost) if you
have renamed you actual broker to something else and use the WebClient.
There's some (IMO weird) code wi
I am running the web-demo example with the REST interface,
and it seems I can only receive every other posted messages. Here are
the simple scripts I used to do the test:
Do you use a single broker are have you (maybe accidentally due to
auto-discovery) configured a network of brokers? We've had
66 matches
Mail list logo