Re: Beginner problem with ActiveMQ Configuration

2007-11-11 Thread Tom Samplonius
You need to make sure "activemq.base" is defined. If you look at the startup script included in the distribution, you'll see it sets a bunch of defines, including activemq.base. - "Sam Lieber" <[EMAIL PROTECTED]> wrote: > I am new to ActiveMQ and I need help with initial configuration.

Re: ActiveMQ & NetMon

2007-11-05 Thread Tom Samplonius
If Netmon is just opening the socket, and then closing it, ActiveMQ will complain. I don't think it should dump a stack trace though. Tom - "sparky2708" <[EMAIL PROTECTED]> wrote: > I am having issues monitoring activemq with netmon (10.0.1.8 is where > netmon > is running): > > ERROR

Re: Ruby + SSL + Stomp

2007-11-02 Thread Tom Samplonius
- "Marcos Alvares" <[EMAIL PROTECTED]> wrote: > Hello, > > I trying to build a secure application with ruby using "stomp over > ssl" ( Not ssl over stomp ). > > Like a: > "Stomp::Client.open( '', '', 'localhost', 61613, false)" > > Inside the 61617 ssl connection provided by the message bro

Re: jaas security

2007-10-24 Thread Tom Samplonius
- "lancedv" <[EMAIL PROTECTED]> wrote: > Hi guys, > > Im trying to use jaas in my activemq instance and have followed the > instructions in the security page and some hints in this forum but im > getting this error when starting activemq: > > ERROR BrokerService - Failed to

Re: Start ActiveMQ with ip address

2007-10-09 Thread Tom Samplonius
- "DanielShao" <[EMAIL PROTECTED]> wrote: > > Error: Exception thrown by the agent : java.net.MalformedURLException: > Local > host name unknown: java.net.UnknownHostException: ... > > One of our issues is machine's hostName can't be resolved by DNS > server. > > Here is part of my activem

Re: Security Issue

2007-09-19 Thread Tom Samplonius
- "ttmdev" <[EMAIL PROTECTED]> wrote: > Out of the box, ActiveMQ provides a modest authentication service via > the > simpleAuthenticationPlugin. See > http://activemq.apache.org/security.html . > When enabled it will force the clients to provide a valid userid and > passwd > in order to succe

Re: useJMX="true"? but how to set the userName and Password ??

2007-08-26 Thread Tom Samplonius
- "pplive" <[EMAIL PROTECTED]> wrote: > if not set, anybody can connect through JMX and do management > > jmxDomainName="org.apache.activemq"/> > > > any sample xml code ??? The wiki has an example: http://activemq.apache.org/jmx.html It is a bit messy as the cr

Re: ActiveMQ or Qpid?

2007-08-24 Thread Tom Samplonius
- "Elliotte Harold" <[EMAIL PROTECTED]> wrote: > Has anyone tried out Apache qpid yet? > > http://incubator.apache.org/qpid/ > > Any war stories to report? > I was wondering how it stacked up against ActiveMQ. Any particular > reasons > one might choose one over the other? Well, Qpid is

Re: SAN Hardware for Master/Slave Architecture

2007-08-10 Thread Tom Samplonius
- "RobBugh" <[EMAIL PROTECTED]> wrote: > I'm going to install ActiveMQ in a shared file system Master/Slave > configuration. I see on the ActiveMQ web site that SAN is suggested as > the > shared file system. Unfortunately, I don't know much about SAN > technology > and what choices I have. Is

Re: difference between transportConnector and networkConnector

2007-08-10 Thread Tom Samplonius
Not quite. transportConnectors are for message consumers/producers (ie clients). networkConnectors are for broker-to-broker communications. If you only have a single broker, you can remove all networkConnectors (probably a good accepted practice). As you can probably imagine, brokers ha

Re: Socket Woes

2007-08-10 Thread Tom Samplonius
- "Elliotte Harold" <[EMAIL PROTECTED]> wrote: > > > > There are known bugs in Stomp in 4.1.1. And there were some > issues with > > sockets not being cleaned up properly. > > > > I would re-test with a 5.0-snapshot. > > > > Tom > > > > Could you elaborate on these? This may also apply t

Re: Socket Woes

2007-08-09 Thread Tom Samplonius
- "cronos" <[EMAIL PROTECTED]> wrote: ... > Envirnoment > == > > Activemq 4.1.1 (binary) > Stomp php > J2SE 5.0 update 8 > Cent OS 4 - version 20060930 ... There are known bugs in Stomp in 4.1.1. And there were some issues with sockets not being cleaned up properly. I would r

Re: Messages getting "stuck" in network of brokers configuration, Kaha.

2007-08-09 Thread Tom Samplonius
- "eta" <[EMAIL PROTECTED]> wrote: ... > I decided to start restart both brokers & all clients. After doing > so, I'm > now looking at my QueueSize in broker #1 and it's showing -1000 > messages! ... This sounds like a known bug in ActiveMQ: ActiveMQ is unable to determine the number of

Re: Client Disconnection Bug?

2007-07-27 Thread Tom Samplonius
- "cronos" <[EMAIL PROTECTED]> wrote: ... > It is expected AMQ 4.1.1 behaviour that the client MUST wait until a > message > arrives in the queue > before disconnecting? Any help appreciated. The behavior you are seeing is expected. You should not try to read another Stomp frame if you

Re: ActiveMQ vs ?

2007-07-24 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: ... > You don't loose them; the destinations don't appear by default until > you produce/consume from them. ... Though it would be cool if ActiveMQ didn't forget the messages were there, like it does know. Right now, the counters go negative

Re: kaha store corrupted ? 100% CPU on ActiveMQ restart

2007-07-19 Thread Tom Samplonius
- "smo" <[EMAIL PROTECTED]> wrote: > Hi! > I am facing a problem on restarting ActiveMQ. > The CPU is at 100% and ActiveMQ is not available. The console hangs on > this > line : > INFO KahaStore - Kaha Store using data > directory > c:\ActiveMQ\activemq-data\kaha.db > Her

Re: Apache 2.2 and file-descriptors

2007-07-19 Thread Tom Samplonius
- [EMAIL PROTECTED] wrote: > Hi, > > We are running a SunOS 5.9 box, with apache 2.2.4... and we have run > out > of inodes, is any possible way for increasing file descriptors > without > having stdio issues or other like issues? it's a production machine > and > I'm playing with my job :(..

Re: How to ensure reliability of publish/subscribe against occassional network hiccup?

2007-07-15 Thread Tom Samplonius
- "Naresh Bhatia" <[EMAIL PROTECTED]> wrote: > I would like to use ActiveMQ in an application where subcribers must > receive > EVERY message published to their topic. If a subscriber looses a > message, > its state would be out-of-sync with the publisher - and that would be > a bad > thing! N

Being serious about "secure by design" (was Re: About releases and bugs)

2007-06-28 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: ... > > Authentication and security should be mandatory, but the > ActiveMQ.Agent feature doesn't work if auth is enabled. > > I'm not aware of any any MOM where authentication and security are > mandatory out of the box; its usually always some

Re: About releases and bugs

2007-06-27 Thread Tom Samplonius
I have to agree with most of this. ActiveMQ is a buggy as hell. In my testing, I'd have to say ActiveMQ 4.1.1 is completely unusable in production. I'm told that it is used in production somewhere, but I suspect the usage is extremely narrow. I'd like to know what usage actually works.

Re: KAHA messages not consumed

2007-06-27 Thread Tom Samplonius
- "smo" <[EMAIL PROTECTED]> wrote: > Hi! > I have a persistent file "data-queue-data-1" that seems to contain > messages > (serialized JavaBean). May I assume these messages haven't been > consumed > yet. In that case, how to force ActiveMQ to warn clients that messages > are > waiting for bei

Re: Secure messaging?

2007-06-27 Thread Tom Samplonius
- "pascals" <[EMAIL PROTECTED]> wrote: > > - The one at codehaus, which uses deprecated "socket" functions. The sockets extension is still available, though not installed by default. > - A patched one that solves the "socket" issue. I've seen it posted here. I assume it used the more

Re: Java stomp subscriber, StompConnect?

2007-06-26 Thread Tom Samplonius
What you are doing is fairly unclear. It seems like you are trying to use the StompConnect JMS to Stomp bridge as a JMS client. It is not a JMS client though. StompConnect is messaging middle-ware. It presents a Stomp protocol front-end, and translate to some other vendors JMS API. Its m

Re: Firewall and tcp connection

2007-06-26 Thread Tom Samplonius
- "Jon" <[EMAIL PROTECTED]> wrote: > Hi! > I wonder what the status is on the following post: > http://www.nabble.com/Firewall-tf2258067s2354.html#a6263450 > > In a firewall situation only one connection initiated by the broker > behind > the firewall would work if messages would flow two-way

Is ActiveMQ.Agent auth possible?

2007-06-24 Thread Tom Samplonius
I've encountered a strange problem with the ActiveMQ.Agent and auth. If auth for destinations is defined, ActiveMQ fails on startup as it can't create the ActiveMQ.Agent queue. This is with a recent 5.0 snaphost. This is the error: java.lang.Exception: org.springframework.beans.factory.B

Re: Defining queue in activemq.xml

2007-06-22 Thread Tom Samplonius
- "Jonas Lim" <[EMAIL PROTECTED]> wrote: > Hi Tom, > > Here's the link on startup destinations > > http://activemq.apache.org/configure-startup-destinations.html > > Regards, > Jonas Tahnks, I eventually found that page, and I linked the configuring queues page to that page. The Wiki

Re: UDP buffer problem

2007-06-21 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: > So we need a working reliable layer on top of UDP which is capable of > handling re-requests of missing packets etc. The current code is work ... I think that is called TCP. Why UDP at all? Is this for multicasting? Otherwise, I can't see

Defining queue in activemq.xml

2007-06-21 Thread Tom Samplonius
How do you define a queue in activemq.xml? I looked at the XSD and the best that I could come up with is: But this causes a null pointer exception. It is very hard to find documentation on this type of thing. I've seen an example on the web page, but I can't find it now. T

Actually getting Stomp support to a usable state...

2007-06-20 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: ... > Just use the JAAS plugin in ActiveMQ and you're good to go; the Stomp > code uses whatever security plugin you're using As has been discussed, this is broken, and has been since 4.1.1 or earlier. Is there any sort of roadmap to the Act

Re: Pythin and MapMessage

2007-06-18 Thread Tom Samplonius
- "Albert Strasheim" <[EMAIL PROTECTED]> wrote: ... > P.S. My previous suggestion still stands: if you want to use > PyActiveMQ > with MapMessage, you need to use the Openwire wire format. Good suggestion. Especially, since Stomp has some bugs in ActiveMQ, not just just in the C++ librar

Re: Getting Stomp support to a usable state...

2007-06-13 Thread Tom Samplonius
- "PieterN" <[EMAIL PROTECTED]> wrote: > Patch: > --- > ../../../activemq-snapshot/src/activemq-core/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java > ... I've tried this patch, and it doesn't change anything. Stomp clients can still connect with any userna

Re: setDeleteAllMessagesOnStartup(true) and MySql

2007-06-11 Thread Tom Samplonius
- "Raffaele" <[EMAIL PROTECTED]> wrote: ... > To accomplish this can I use setDeleteAllMessagesOnStartup(true) on > startup > or have I to use specific SQL delete statement on activemq DB? ... You should look into the URI configuration. You can set certain Xbean config options on the com

Re: Unrecognized xbean element mapping: in namespace http://activemq.org/config/1.0

2007-06-08 Thread Tom Samplonius
- "mogan" <[EMAIL PROTECTED]> wrote: > I am trying to add Authentication Plugin to ActiveMQ, and I am getting > the > following exception. I also looked at this posting. > http://mail-archives.apache.org/mod_mbox/activemq-dev/200704.mbox/[EMAIL > PROTECTED] > > and [activemq.xml] > > > xm

XBean Jetty config for ActiveMQ?

2007-06-07 Thread Tom Samplonius
I found this page describing the XBean config for Jetty that ActiveMQ uses: http://docs.codehaus.org/display/JETTY/XBean+Support However, all of the reference links are broken. I've searched the Jetty site, but can't find anything. Does anyone know where I can find this? Has anyone confi

Re: MySQL datastore

2007-06-07 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: > On 6/1/07, Doug Steigerwald <[EMAIL PROTECTED]> > wrote: > > I'm currently trying to set up ActiveMQ to use MySQL as the data > store. ActiveMQ connects to the > > database and creates some tables if it needs to, but nothing is > stored in the A

Re: Getting Stomp support to a usable state...

2007-06-07 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: > On 6/2/07, Tom Samplonius <[EMAIL PROTECTED]> wrote: > > > > How much more work needs to occur to get Stomp protocol support to > a usable state? > > Huh? :) Its very useable right now James,

Re: ActiveMQ + PHP + Stomp = ActiveStack ??

2007-06-07 Thread Tom Samplonius
- "Hiram Chirino" <[EMAIL PROTECTED]> wrote: > That's awesome.. Has anybody put stuff up on http://pecl.php.net > before?? I think that would be the best place to host the PHP Stomp > impl. What do you guys think? > > Regards, > Hiram If you do that, make sure to include a note to use

Re: Has anyone experienced major kaha failure?

2007-06-07 Thread Tom Samplonius
I have. Just "kill -9" the java process to simulate a power failure. Try various producer and consumer combinations. In certain circumstances ActiveMQ will not be able to auto-recover, because it tries to access a file that should not be there (ie data--2). There is a bug in the code, w

Re: Recommended version of ActiveMQ?

2007-06-07 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: > On 5/30/07, Tom Samplonius <[EMAIL PROTECTED]> wrote: > > > > Ok, but Stomp is buggy in 4.1.1. ActiveMQ 4.1.1 loses > un-acknowledged messages if your consumer crashes without sending a > DISCONNE

Re: Getting Stomp support to a usable state...

2007-06-06 Thread Tom Samplonius
- "James Strachan" <[EMAIL PROTECTED]> wrote: > On 6/2/07, Tom Samplonius <[EMAIL PROTECTED]> wrote: > > > > How much more work needs to occur to get Stomp protocol support to > a usable state? > > Huh? :) Its very useable right now > >

Re: Getting Stomp support to a usable state...

2007-06-03 Thread Tom Samplonius
- "Tom Samplonius" <[EMAIL PROTECTED]> wrote: > The Web Console has similar issues. There is no easy way to > password protect it. But if you password protect JMX access, it will > break the Web Console. ... I was wrong here. I based my comment

Getting Stomp support to a usable state...

2007-06-02 Thread Tom Samplonius
How much more work needs to occur to get Stomp protocol support to a usable state? The biggest issue is lack of any authentication support for Stomp, so anyone with access to the Stomp port can get and send anything. I can't imagine that anyone is using Stomp in production yet. But is an

Does JAAS work for Stomp access?

2007-05-31 Thread Tom Samplonius
I'm trying to implement some security on queues for Stomp clients. I have this config: and user.properties system=manager user=password guest=password a

Re: Kind of "consumer faliover"

2007-05-30 Thread Tom Samplonius
- "ego" <[EMAIL PROTECTED]> wrote: > You're probably true. So here is my 'real' problem. > > I need a producer that publish let's say an event E1. I have 3 > different > consumers, each doing a specific task with the event E1. For each > consumer, > I need to find a "backup" solution if the c

How to password protect Web Console?

2007-05-30 Thread Tom Samplonius
I searched around a bit, and I can't find any examples of how to password protect the Web Console. I assume this is possible with JAAS, but what do I put in the section to make this happen? Also, does authorization Jetty automatically extended to queues? I saw this bug report: http://

Re: Recommended version of ActiveMQ?

2007-05-29 Thread Tom Samplonius
many messages are in persistent storage on startup. But that bug is just annoying. - "Bruce Snyder" <[EMAIL PROTECTED]> wrote: > On 5/29/07, Tom Samplonius <[EMAIL PROTECTED]> wrote: > > > > What version of ActiveMQ do people recommend? I pla

Recommended version of ActiveMQ?

2007-05-29 Thread Tom Samplonius
What version of ActiveMQ do people recommend? I plan to use Stomp with a single broker. Tom

"Number Of Pending Messages" is wrong in Web Console (4.2-20070526)

2007-05-29 Thread Tom Samplonius
I notice that if ActiveMQ is stopped and started, when messages are in a queue, the "Number Of Pending Messages" count in the web console upon start. If I then consume five messages, the "Number Of Pending Messages" count is now "-5". This is with the Derby JDBC journaled persistence adapto

Re: Kind of "consumer faliover"

2007-05-29 Thread Tom Samplonius
- "ego" <[EMAIL PROTECTED]> wrote: > ok for the queue so it's not possible for Topic consumers ? > I guess, the real question is why? If you only want your message to go to a single consumer, why even use topics? You requirements is for queue behavior, so I think you should use a que

Re: Kind of "consumer faliover"

2007-05-28 Thread Tom Samplonius
- "ego" <[EMAIL PROTECTED]> wrote: > Hey, > > I'm not sure that my problem stands for "consumer failover". I would > like to > know if it's possible to have a group of consumers, listening the > same > Topic. Only one of the consumers is allowed to process the same > message. The > idea is th

Re: 4.1.1 and Stomp; lost unacked messages

2007-05-27 Thread Tom Samplonius
- "Tom Samplonius" <[EMAIL PROTECTED]> wrote: > I noticed some strange behavior with ActiveMQ 4.1.1 and the Stomp > protocol. When I connect, I set the ack mode to "client". I read a > message, and exit. Since I did not ack the message, I should expec

4.1.1 and Stomp; lost unacked messages

2007-05-26 Thread Tom Samplonius
I noticed some strange behavior with ActiveMQ 4.1.1 and the Stomp protocol. When I connect, I set the ack mode to "client". I read a message, and exit. Since I did not ack the message, I should expect to get the same message on next execution, and I do, as long as I do an explicit disconne