ActiveMQ not detecting disconnect and notifying ActiveMQ.Advisory.Connection - help?

2007-11-23 Thread sheer-panic
I need some way to detect when a STOMP client has disconnected *without* sending the disconnect command. I looked into ActiveMQ.Advisory.Connection, and this only notifies of disconnects when the STOMP client actually sends the 'DISCONNECT' command, not when the client disconnects via a TCP shutdo

JDBC journal recovery takes a _long_ time

2007-11-23 Thread nkiesel
Hi, I'm using AQ 4.1.1 with network of 2 embedded brokers. I use Oracle in my project and so configured the persitence adapter to use Oracle as well (see below). If the priimary broker was running for a some days and then killed and restarted, recovering takes more than 1 hour: 2007-11-23 13:56

Re: Static Network of brokers

2007-11-23 Thread Rob Davies
does every broker have a different broker name? On Nov 23, 2007, at 7:57 PM, Koka wrote: Hi All, I'm trying to set up a static network of brokers. my config xml looks like this: class="org.springframework.beans.factory.config.PropertyPlaceholderCon figurer"/> http://activemq.org/conf

Static Network of brokers

2007-11-23 Thread Koka
Hi All, I'm trying to set up a static network of brokers. my config xml looks like this: http://activemq.org/config/1.0";> When I start ActiveMQ, i get something like: WARN NetworkConnector - Could not start network bridge between: vm:?n

adding a broker plugin via code

2007-11-23 Thread srasul
Hi, i am starting a broker via spring config and i would like to enable the LoggingBrokerPlugin it in. I am doing this via: ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("activemq-spring.xml"); XBeanBrokerService broker = (XBeanBrokerService)app.getBean("broker

HttpsTransport cannot be cast to HttpClientTransport

2007-11-23 Thread gwenyboy
Hello, I trie to make a standalone java client to connect to ActiveMQ in https (it works in http): My config: activemq.xml: https://localhost:8081"/> my client: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("https://localhost:8081";); Connection connection = co

Re: JMSComponent connecting to WebSphereMQ

2007-11-23 Thread James Strachan
On 23/11/2007, Viswanath Durbha <[EMAIL PROTECTED]> wrote: > > Unfortunately. MQQueueConnectionFactory doesn't have properties userName and > password. So I had to use an adapter available in spring called > UserCredentialsConnectionFactoryAdapter. This is a wrapper around any other > JMSConnection

Re: JMSComponent connecting to WebSphereMQ

2007-11-23 Thread Viswanath Durbha
Unfortunately. MQQueueConnectionFactory doesn't have properties userName and password. So I had to use an adapter available in spring called UserCredentialsConnectionFactoryAdapter. This is a wrapper around any other JMSConnectionFactory that takes the credentials. So I just defined this connectio

Re: activemq Stomp/php freezes, slow consumer, not in queue

2007-11-23 Thread Erlend Aakre
To make things more confusing, sometimes when I click update, it will say in the following order: Message: derby 12 Message: derby 12 Message: derby 14 Message: derby 16 Message: derby 12 Message: derby 12 Message: derby 12 Message: derby 12 According to bin/browse messages 12,13,14,15,16,17

Re: JMSComponent connecting to WebSphereMQ

2007-11-23 Thread James Strachan
Many JMS providers let you customize that on the ConnectionFactory. BTW the Camel sub project has its own forums/mailing lists... http://activemq.apache.org/camel/discussion-forums.html On 23/11/2007, James Strachan <[EMAIL PROTECTED]> wrote: > can you configure the user and password on the conne

Re: JMSComponent connecting to WebSphereMQ

2007-11-23 Thread James Strachan
can you configure the user and password on the connection factory? On 23/11/2007, Viswanath Durbha <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using ActiveMQ 5.0 snapshot version. I am trying to configure a > JMSComponent to connect to Websphere MQ in my activemq.xml file as follows: > > > >

Re: Turning off creating of embedded Active MQ broker by ConnectionFactory

2007-11-23 Thread Rob Davies
There's a create property to do this for the VMTransport (default is true) e.g. ConnectionFactory fac = ActiveMQConnectionFactory("vm//localhost? create=false); cheers, Rob http://open.iona.com/ -Enterprise Open Integration http://rajdavies.blogspot.com/ On Nov 23, 2007, at 10:26 AM,

Re: activemq Stomp/php freezes, slow consumer, not in queue

2007-11-23 Thread Erlend Aakre
Additional info: I now found out it was caused by: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Too many connections which I got when running bin/browse I changed to derby and added 10'000 messages. all adds up fine, and bin/browse | wc -l confirms the number o

JMSComponent connecting to WebSphereMQ

2007-11-23 Thread Viswanath Durbha
Hi, I'm using ActiveMQ 5.0 snapshot version. I am trying to configure a JMSComponent to connect to Websphere MQ in my activemq.xml file as follows: When I try to use this to create a camel route, then I get an exception a

activemq Stomp/php freezes, slow consumer, not in queue

2007-11-23 Thread Erlend Aakre
I have a installation of activemq using mysql and journaling, everything is working ok. There are like 150 simple messages in journal and around 250 in database. All added by simple stomp example: require_once 'Stomp.php'; $c = new StompConnection("localhost"); $c->connect("user", "pass"); $c->s

Re: Turning off creating of embedded Active MQ broker by ConnectionFactory

2007-11-23 Thread Romantique
Thanks Joe, as I understand from your response there is no way to turn this feature off; So, if someone specify "vm://localbroker" in connection string then broker will be always created and started as new instance of JMS Server if it is not started yet, won't it? Actually, I am looking for the w

Re: Failed to read schema document 'http://activemq.apache.org/schema/activemq-core.xsd'

2007-11-23 Thread Ali Ozan CIL
Please help!:confused: i am so sad about noting to do :,( What can i try ?:working: Ali Ozan CIL wrote: > > i have done as you said. I mean this is application context.xml ; > >xmlns="http://www.springframework.org/schema/beans"; > xmlns:amq="http://activemq.org/config/1.0"; > xml