Re: activemq-camel client only feature

2011-05-23 Thread Jim Talbut
On 23/05/2011 10:44, Dejan Bosanac wrote: Hi James, that's not possible at the moment. One problem is that you can start embedded broker by using vm:// urls and if go that route you need to have all server-side functionality ready. That's something we'll address for ActiveMQ Apollo Regards De

Re: Problem with NIO protocol

2011-05-23 Thread hodgesz
Hi Gary, Changing the client broker URL to use tcp protocol fixed the issue. This looks like the following. tcp://1.2.3.4:61618 Thanks again for your help! -Jonathan -- View this message in context: http://activemq.2283324.n4.nabble.com/Problem-with-NIO-protocol-tp3540710p3545810.html Sent f

Re: Scheduler Broken?

2011-05-23 Thread rmadden
The message is sent and goes through, but it is dequeued immediately, it does not wait the time specified in the header. -- View this message in context: http://activemq.2283324.n4.nabble.com/Scheduler-Broken-tp3545460p3545468.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Scheduler Broken?

2011-05-23 Thread rmadden
I have tried both 5.4.2 and 5.5 and have been unable to get the scheduler to work. I have set schedulerSupport=true in the activemq-specjms.xml file. My code looks as follows: public void scheduleMessage() throws JMSException { Destination destination = new ActiveMQQueue("OutboxTwitterU

The resource is allready being used in transaction context

2011-05-23 Thread lexsoto
Hi, Anybody seen this before? Caused by: javax.jms.JMSException: The resource is allready being used in transaction context. at org.apache.activemq.ra.ManagedTransactionContext.setUseSharedTxContext(ManagedTransactionContext.java:47) at org.apache.activemq.ra.ManagedSessionPro

Re: Are there any situations where I shouldn't use the NIO transport?

2011-05-23 Thread Gary Tully
The only bit that is missing at the moment is SSL support. see: https://issues.apache.org/jira/browse/AMQ-2583 On 23 May 2011 16:36, Brendan Long wrote: > I asked this on StackOverflow too but didn't many responses, so I > figured I'd try it here: > > http://stackoverflow.com/questions/6062807/ni

ActiveMQ timout on stomp+nio connector

2011-05-23 Thread Laures
Hi, I'm randomly getting the problem that my ActiveMQ doesn't accept connections on the configured stomp+nio port. There is no log or anything. The admin panel still works i can still send messages with it, openwire still works... The problem is resolved after a restart but on shutdown i get: Ca

Are there any situations where I shouldn't use the NIO transport?

2011-05-23 Thread Brendan Long
I asked this on StackOverflow too but didn't many responses, so I figured I'd try it here: http://stackoverflow.com/questions/6062807/nio-disadvantages-in-activemq I've seen several optimization guides saying that one step is to enable NIO because it uses fewer threads, and that seems like good a

Re: Execution of JMS message listener failed, and no ErrorHandler has been set.

2011-05-23 Thread Gary Tully
hmm, this may need an enhancement, have a read through this thread: http://camel.465427.n5.nabble.com/error-handling-on-Http-POST-from-ActiveMQ-to-PHP-application-td4347185.html you may get some more info on the camel user list. On 23 May 2011 15:43, Brendan Long wrote: > I tried setting the exc

Re: Problem with NIO protocol

2011-05-23 Thread hodgesz
Ah I see. I will give the new client broker URL later today. In terms of the transportConnector we are using a specific IP address. I just replaced it with Xs in this post for security reasons. Thanks again! -- View this message in context: http://activemq.2283324.n4.nabble.com/Problem-with-N

Re: Problem with NIO protocol

2011-05-23 Thread Gary Tully
no, that is my point, there is nothing nio specific on the client. The nio implementation is server side only in activemq 5.x so clients should still use the tcp scheme for the brokerURL. The nio scheme is just for the the transportConnector in the broker xml configuration. One other thought is th

Re: Problem with NIO protocol

2011-05-23 Thread hodgesz
Hi Gary, Thanks for your response. Don't you mean the client should use nio://ec2-x-x-x-x.us-west-1.compute.amazonaws.com:61618 which is what I have tested that causes the error? Your client example uses tcp as the protocol. -Jonathan -- View this message in context: http://activemq.2283324.n

Re: Execution of JMS message listener failed, and no ErrorHandler has been set.

2011-05-23 Thread Brendan Long
I tried setting the exception listener on the JmsConfiguration bean but I still get "Execution of JMS message listener failed, and no ErrorHandler has been set." On 5/23/2011 5:48 AM, Gary Tully wrote: > I wonder about the execution order of the property setters: > > > > > the exceptionListener

RE: Feasibility of Shared File System Master Slave using NFSv4

2011-05-23 Thread lexsoto
It surely works; we are using it with no problems. Good luck! -- View this message in context: http://activemq.2283324.n4.nabble.com/Feasibility-of-Shared-File-System-Master-Slave-using-NFSv4-tp3536513p3544235.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Problem creating tables for SQL Server 2008

2011-05-23 Thread Gary Tully
yes, that is all that is needed. The drop is there for the upgrade path where the tables already exist. On 23 May 2011 13:05, janne postilista wrote: > If there's no separate DDL except for the java code, it is difficult > to create the tables manually, first I would need to decipher plenty > of

Re: Problem creating tables for SQL Server 2008

2011-05-23 Thread janne postilista
If there's no separate DDL except for the java code, it is difficult to create the tables manually, first I would need to decipher plenty of stuff like: 83 "CREATE TABLE " + getFullMessageTableName() + "(" + "ID " + sequenceDataType + " NOT NULL" 84 +

Re: Execution of JMS message listener failed, and no ErrorHandler has been set.

2011-05-23 Thread Gary Tully
I wonder about the execution order of the property setters: the exceptionListener accessor delegates to getConfiguration().set... so if "configuration" is set after the exceptionListener it will override. One way to eliminate this possibility is to set the exceptionListener on your jmsMediaTr

Re: Problem with NIO protocol

2011-05-23 Thread Gary Tully
It looks correct, only change would be to just change the port on the client broker url, so use tcp://ec2-x-x-x-x.us-west-1.compute.amazonaws.com:61618 There is nothing particular to nio on the client, by default it picks up the tcp impl, but there may be an issue here. On 21 May 2011 15:48, h

Re: activemq-camel client only feature

2011-05-23 Thread Dejan Bosanac
Hi James, that's not possible at the moment. One problem is that you can start embedded broker by using vm:// urls and if go that route you need to have all server-side functionality ready. That's something we'll address for ActiveMQ Apollo Regards -- Dejan Bosanac - http://twitter.com/dejanb -

Re: Problem creating tables for SQL Server 2008

2011-05-23 Thread Gary Tully
There is a createTablesOnStartup attribute on the jdbcPersistenceAdapter that you can set to false to disable creation. The DDL is in the the source: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/Statements.java?view=markup But the problem

Re: How to catch javax.jms.InvalidClientIDException from AMQ

2011-05-23 Thread Gary Tully
Have a peek at http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/DiscardingDLQBrokerPlugin.java?view=markup or at some of the plugins in http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/ On 20

activemq-camel client only feature

2011-05-23 Thread James Talbut
Hi, I have a karaf installation in which I want to have some camel routes that use activemq hosted on a different machine. Installing the activemq-camel feature seems to drag in all the bundles necessary for running brokers within the JVM. Is it possible to using activemq from camel without havi