Re: Is Mina custom codec overriding text line codec

2009-02-24 Thread huntc
Now raised as a JIRA issue: https://issues.apache.org/activemq/browse/CAMEL-1379 -- View this message in context: http://www.nabble.com/Is-Mina-custom-codec-overriding-text-line-codec-tp22176938p22192241.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Re: FileConsumer ERROR,RejectedExecutionException (from file to jms)

2009-02-24 Thread jden
Can anybody help me?:) -- View this message in context: http://www.nabble.com/FileConsumer-ERROR%2CRejectedExecutionException-%28from-file-to-jms%29-tp22119097p22181066.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Gert, > What does the path to the GC root look like for the classloader object > that couldn't be unloaded in Eclipse MAT? > it may need a little to recreate the setup we had when I discovered the leak but I will do so. I will attach a jmap create

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Willem, > Which version of activemq are you using ? > We take out the activemq component from activemq-core in Activemq 5.2. > we are currently using ActiveMQ 5.1.0. Maybe we should consider an upgrade if the camel component is better separated in

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this approach does not help me, since when the ActiveMQ is created by tomcats webapplication classloader it cannot be undeployed. >>> You don't have to create the broker in the WAR (or you could put it in >>> another WAR). This approach works

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Gert Vanthienen
Markus, What does the path to the GC root look like for the classloader object that couldn't be unloaded in Eclipse MAT? Regards, Gert Markus Wolf wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 we tried this but it throws this Exception during creation of the ActiveMQConnectionF

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Gert Vanthienen
Markus, Could you verify that it is not a thread leak that is causing the PermGen memory leak? If you have threads being left behind when undeploying the WAR file (e.g. a JMS connection not closed properly), these threads will probably hang on to the classloader. Regards, Gert James Stra

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> we tried this but it throws this Exception during creation of the >> ActiveMQConnectionFactory: > > Tried what exactly? Running the camel-activemq-web war works fine for me. > I've tried to put only the activemq libraries into my tomcat common cla

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread James Strachan
2009/2/24 Markus Wolf : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >>> this approach does not help me, since when the ActiveMQ is created by >>> tomcats webapplication classloader it cannot be undeployed. >> >> You don't have to create the broker in the WAR (or you could put it in >> anoth

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> this approach does not help me, since when the ActiveMQ is created by >> tomcats webapplication classloader it cannot be undeployed. > > You don't have to create the broker in the WAR (or you could put it in > another WAR). This approach works tota

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Willem Jiang
Which version of activemq are you using ? We take out the activemq component from activemq-core in Activemq 5.2. I suggest you to use that verion so you could have this kind of setup: CATALINA_HOME /lib/ext/activemq-core.jar /lib/ext/camel-core.jar /webapp/ROOT/WEB-INF/lib/activemq-cam

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread James Strachan
2009/2/24 Markus Wolf : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Claus, > > we tried this but it throws this Exception during creation of the > ActiveMQConnectionFactory: Tried what exactly? Running the camel-activemq-web war works fine for me. > > Caused by: java.lang.NoClassDefF

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Claus, we tried this but it throws this Exception during creation of the ActiveMQConnectionFactory: Caused by: java.lang.NoClassDefFoundError: org/apache/activemq/management/JMSStatsImpl at org.apache.activemq.ActiveMQConnectionFactory.(Ac

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread James Strachan
2009/2/24 Markus Wolf : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi James, > > this approach does not help me, since when the ActiveMQ is created by > tomcats webapplication classloader it cannot be undeployed. You don't have to create the broker in the WAR (or you could put it in ano

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi James, this approach does not help me, since when the ActiveMQ is created by tomcats webapplication classloader it cannot be undeployed. There are many ThreadPools in ActiveMQ which keep strong references to ThreadPoolFactories. The ThreadPools are

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread James Strachan
BTW there is a WAR I've been using for testing that creates a camel context and uses ActiveMQ - then creating a web console to let you interact with ActiveMQ endpoints (sending messages and browsing queues etc)... https://svn.apache.org/repos/asf/camel/trunk/components/camel-activemq-web/ for more

Re: Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Claus Ibsen
Hi Have you tried NOT having camel-core.jar in /lib/ext, but putting all the camel jars in the WEB-INF/lib On Tue, Feb 24, 2009 at 2:34 PM, Markus Wolf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I try to deploy a camel context using spring inside Tomcat6 with ActiveMQ.

Camel + ActiveMQ in Tomcat6

2009-02-24 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I try to deploy a camel context using spring inside Tomcat6 with ActiveMQ. We have the following setup: CATALINA_HOME /lib/ext/activemq.jar /lib/ext/camel-core.jar /webapp/ROOT/WEB-INF/lib/camel-jms.jar /webapp/ROOT/WEB-INF/lib/

Re: Newbie Question #2: Transactional Client

2009-02-24 Thread huntc
How about creating a processor that calls upon the filter and captures the resultant exchange? Then if that goes well use a producer template to send out both the resultant exchange and the original exchange concurrently. No transaction required and you'll achieve higher throughput. -- View this

Re: Is Mina custom codec overriding text line codec

2009-02-24 Thread huntc
One more contribution, and then I'll let someone else have a turn... As a work-around, if I specify the codec parameter with no value then all is well e.g.: mina:tcp://0.0.0.0:8201?codec&textline=true&textlineDelimiter=WINDOWS&sync=false&minaLogger=true -- View this message in context: http

Re: Is Mina custom codec overriding text line codec

2009-02-24 Thread Claus Ibsen
Which version are you using? This is the code from the 1.x branch as I see it: protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception { if (LOG.isDebugEnabled()) { LOG.debug("Creating MinaEndpoint from uri: " + uri); }

Re: Interceptor

2009-02-24 Thread Claus Ibsen
Hi You should not use the interceptor tag, only the intercept. For example: http://camel.apache.org/schema/spring";> On Tue, Feb 24, 2009 at 10:33 AM, mta38 wrote: > > Hi all, > Is somebody already using its own "interceptor" in a xml spr

Re: Is Mina custom codec overriding text line codec

2009-02-24 Thread huntc
Having delved into MinaComponent.java, I see that a configuration is copied on the creation of an endpoint i.e. MinaConfiguration config = configuration.copy(); on line 81. This configuration is created on instantiating the mina component (that should be just once right?). I'm guessing that f

Interceptor

2009-02-24 Thread mta38
Hi all, Is somebody already using its own "interceptor" in a xml spring configuration file? In fact, I want to know if in the following definition of "intercept", the "stop" really stops route execution. Cause for me; all other routes are executed. Best regard