Re: Memory management

2016-04-26 Thread Jeff Segal
pattern even under heavy load. On Tue, Apr 26, 2016 at 10:30 AM, Jeff Segal <jeffrey.se...@gmail.com> wrote: > For a particular test run, I see a peak of about 1.4 GB of char[] > instances (most of which appear to be JSON Strings), but then it settles > back down to about half that si

Re: Memory management

2016-04-26 Thread Jeff Segal
recovered? > > > > On Apr 25, 2016, at 4:01 PM, Jeff Segal <jeffrey.se...@gmail.com> wrote: > > > > I've got a set of routes that make a bunch of web service calls in quick > > succession, convert the XML to JSON and then save the results off to > > MongoDB. Th

Memory management

2016-04-25 Thread Jeff Segal
expected those all (or most) Exchanges to complete and be GC'd by that point (it holds steady for long periods of inactivity). Is there an important cleanup step that I might be missing in my routes? I'd include them but they're pretty complex and might muddy the waters here. Thanks, Jeff

Re: Need an interceptSendTo hook

2016-04-22 Thread Jeff Segal
intercept after my second split(). Jeff On Fri, Apr 22, 2016 at 3:03 PM, Jeff Segal <jeffrey.se...@gmail.com> wrote: > Awesome, thanks Claus. I switched to using weaveById and got the exact > behavior that I wanted in my actual route (weaveByType could work too but &g

Re: Need an interceptSendTo hook

2016-04-22 Thread Jeff Segal
est I'd use weaveById("weaveHere").after().to("mock:foo") to perform my validations. Jeff On Fri, Apr 22, 2016 at 2:35 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > On Fri, Apr 22, 2016 at 6:23 PM, Jeff Segal <jeffrey.se...@gmail.com> > wrote: > > Minh

Re: Need an interceptSendTo hook

2016-04-22 Thread Jeff Segal
o what I've shown above and throw a mock endpoint in there that I can use as an adviceWith interceptSendTo hook, but I'm wondering if there's a better alternative than that. Jeff On Fri, Apr 22, 2016 at 6:58 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > On Thu, Apr 21, 2016 at 8:18

Need an interceptSendTo hook

2016-04-21 Thread Jeff Segal
and only where I want to). Is there a better alternative to solving this problem than injecting arbitrary mocks into my production routes? Jeff

Using adviceWith in multiple routes

2016-04-19 Thread Jeff Segal
t actually seem to matter which route I apply adviceWith against - I get the same behavior regardless. Any thoughts? I'm using 2.17.0. Jeff

Re: camel-spring-boot + @UseAdviceWith

2016-04-15 Thread Jeff Segal
Very exciting! I'll probably still have to employ a work-around for now but look forward to using this once 2.17.1 is released. Thanks! Jeff On Fri, Apr 15, 2016 at 8:54 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > I got time to work on this today and got this

Re: camel-spring-boot + @UseAdviceWith

2016-04-15 Thread Jeff Segal
on't work, preferably with any known > workarounds. > > BTW once I ripped out Camel Spring Boot the @UseAdviceWith worked. > > From: Jeff Segal <jeffrey.se...@gmail.com> > Sent: 14 April 2016 18:18 > To: users@camel.apache.org &

Re: camel-spring-boot + @UseAdviceWith

2016-04-14 Thread Jeff Segal
if they want to apply integration tests to their routes while using camel-spring-boot. Jeff On Thu, Apr 14, 2016 at 5:16 AM, David Bennison <david.benni...@metapack.com > wrote: > Our problem looks similar to this one with @MockEndpoints raised back in > 2015 against Camel 2.16

camel-spring-boot + @UseAdviceWith

2016-04-12 Thread Jeff Segal
@Slf4j public class MyTest { @Autowired CamelContext camelContext; @Test public void test() throws InterruptedException { log.info("Starting test..."); Thread.sleep(1000 * 60); } } Thanks! Jeff

Re: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Jeff Genender
+1 Jeff On Oct 28, 2014, at 12:54 PM, Christian Müller christian.muel...@gmail.com wrote: This is a vote to release Apache Camel 2.13.3, a patch release coming with about 103 issues fixed. Release notes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311211version

Re: [VOTE] Release Apache Camel 2.12.5 - second try

2014-10-24 Thread Jeff Genender
+1 Jeff On Oct 24, 2014, at 9:17 AM, Christian Müller christian.muel...@gmail.com wrote: This is a vote to release Apache Camel 2.12.5, a patch release coming with about 74 issues fixed. Release notes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311211version

Re: [VOTE] Release Apache Camel 2.12.5

2014-10-23 Thread Jeff Genender
+1 Jeff On Oct 22, 2014, at 11:14 PM, Christian Müller christian.muel...@gmail.com wrote: This is a vote to release Apache Camel 2.12.5, a patch release coming with about 74 issues fixed. Release notes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311211version

Re: Linking multiple routes

2014-07-14 Thread Jeff Bischoff
Use the direct endpoint. On 7/14/14 1:02 PM, srinivas_vsk srinivas_...@yahoo.com wrote: I was looking to link multiple routes together for a complex scenario, something like from(route1).to(route2).to(route3).to(routend) Any ideas? Thanks -- View this message in context:

Re: Using non-standard JMS correlation ID

2014-07-10 Thread Jeff Bischoff
some trouble with this problem myself. Hopefully it helps you! Jeff On 7/10/14 5:51 AM, kev kbo...@redhat.com wrote: Hi all I'm trying to create a Camel route that will post a message to a legacy system with a JMS interface, and wait for a reply on a specific JMS queue. This seems to be a pretty

Re: Using non-standard JMS correlation ID

2014-07-10 Thread Jeff Bischoff
Hmm I meant to link you to the *exclusive* fixed reply queue, not the shared one. Correct link: http://camel.apache.org/jms.html#JMS-Request-replyoverJMSandusinganexclusiv efixedreplyqueue Jeff On 7/10/14 10:24 AM, Jeff Bischoff jbisch...@wdtablesystems.com wrote: Hi Kev, I believe you can

Re: How to control when Spring initializes the XML Camel routes?

2014-06-27 Thread Jeff Bischoff
); getContext().start(); Okay, so it looks like my workaround will work if I call this code instead of directly calling context.start(). However, how do I get a handle on the Factory instance in Spring? Is there a way to get it from the context itself? Thank you, Jeff On 6

How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
bean is initialized)? Thanks, Jeff Please take note: This email, including attachments, contains information which may be confidential or legally privileged and is only for the use of the individual or entity to whom it is properly addressed. Any

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
trigger that earlier? Thank you, Jeff On 6/26/14 10:59 AM, Claus Ibsen claus.ib...@gmail.com wrote: You set the others beans to have depends-on Camel. bean id=foo depends-on=myCamel ... ... camelContext id=myCamel ... On Thu, Jun 26, 2014 at 4:52 PM, Jeff Bischoff jbisch

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
Thanks so much for clarifying that; now I understand why the startup is happening when it does. Out of curiosity, what would happen if I called the start() method on the CamelContext bean from one of my beans? Would that muck things up? I'd be happy to log a ticket for startEager. Thanks, Jeff

Re: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
the context with the desired timing, but it came up with zero routes. Doh! Any further ideas on the workaround, or will I need that eagerStart feature? Thank you, Jeff On 6/26/14 3:58 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Thu, Jun 26, 2014 at 9:55 PM, Jeff Bischoff jbisch

RE: How to control when Spring initializes the XML Camel routes?

2014-06-26 Thread Jeff Bischoff
with the Spring dependency model. Ideally, the answer that Claus originally gave me would work. I will open a ticket when I have time (hopefully tomorrow). Best, Jeff Please note my email address has changed to: jbisch...@wdtablesystems.com From: Willem Jiang

Failed to register topic

2014-06-24 Thread Jeff Bischoff
) jvm 1| at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196) jvm 1| at java.lang.Thread.run(Thread.java:695) Regards, Jeff Please take note: This email, including attachments, contains information which may be confidential

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-06-19 Thread Jeff Bischoff
. Thanks, Jeff On 6/19/14 9:06 AM, Minh Tran darth.minhs...@gmail.com wrote: Somewhere along the line, you¹ll need a clientId for topic subscriptions. I see one set for your camel connection factory and I suspect you have a client id for your non-camel subscriber on your Spring

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-06-18 Thread Jeff Bischoff
=jmsConnectionFactory / property name=sessionCacheSize value=10/ /bean alias name=jmsPooledConnectionFactory alias=topicConnectionFactory/ Thanks, Jeff On 6/17/14 7:33 PM, Minh Tran darth.minhs...@gmail.com wrote: Is your non-camel subscriber running in the same JVM and using the same

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-06-17 Thread Jeff Bischoff
like the non-Camel consumer can only process the message if I do a rollback in Camel. I'm building JUnit tests to try to figure out what I'm doing wrong, but any further insight would be greatly appreciated. Best, Jeff On 6/17/14 9:16 AM, kraythe . kray...@gmail.com wrote: Good suggestions

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-06-17 Thread Jeff Bischoff
]) Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - org.apache.camel.RollbackExchangeException: Intended rollback. Exchange[JmsMessage[JmsMessageID: ID:TS-0007-jbischoff-2.local-50312-1403019963746-1:2:3:1:1]]] Best, Jeff On 6/17/14 10:59 AM, kraythe . kray

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-06-16 Thread Jeff Bischoff
Does nobody use Topics with Camel? They don't seem to work as expected. JB On 5/30/14 10:48 AM, Jeff Bischoff jbisch...@wdtablesystems.com wrote: Correction: 1) Why would *CACHE_CONSUMER* on the ActiveMQComponent cause endless external redeliveries of a (filtered out) topic message, when

Re: Best Efforts 1 PC pattern - from MQ to DB

2014-06-06 Thread Jeff Bischoff
Someone once told me to avoid using Spring's connection factories with Camel. Not sure of the why though. JB On 6/6/14 10:14 AM, dancsi andras_dancs...@epam.com wrote: Anyone having experience with IBM/WebSphere MQ? Shall I rely on WMQ Connection Factory caching or shall I rather configure

Re: Best Efforts 1 PC pattern - from MQ to DB

2014-06-04 Thread Jeff Bischoff
I'm trying to figure out the same thing (although I'm working with AMQ, not IBM). Queues seem pretty straightforward, but the topics seem very sensitive to the caching/transaction settings. Don't know the right answer, but interested to know. JB On 6/4/14 10:24 AM, dancsi

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-05-30 Thread Jeff Bischoff
them? Did I provide enough info below to answer these questions? Topics just aren't working in Camel the way that I would expect! Thanks, Jeff Bischoff WDTS On 5/29/14 4:25 PM, Jeff Bischoff jbisch...@wdtablesystems.com wrote: Hi all, Please forgive me if this is a basic question. Working

Re: Why do I get so many external redeliveries when using Camel with JMS topics?

2014-05-30 Thread Jeff Bischoff
Correction: 1) Why would *CACHE_CONSUMER* on the ActiveMQComponent cause endless external redeliveries of a (filtered out) topic message, when with other cache settings (like CACHE_SESSION) this does not occur? On 5/30/14 10:39 AM, Jeff Bischoff jbisch...@wdtablesystems.com wrote: Maybe I

Re: Still waiting for shutdown of 1 message listener invokers

2014-05-30 Thread Jeff Bischoff
Have you tried stopping the Consumer on the jms endpoint? I'm no Camel expert, but I've had more luck stopping consumers than stopping routes. JB On 5/30/14 4:09 PM, rkjoshi2 rkjos...@gmail.com wrote: I have an apache-camel JMS route. form(jms:queue:sourceQueue).to(messageProcessor) My

Re: Still waiting for shutdown of 1 message listener invokers

2014-05-30 Thread Jeff Bischoff
() is a method of org.apache.camel.impl.RoutePolicySupport Hope this helps! JB On 5/30/14 4:28 PM, rkjoshi2 rkjos...@gmail.com wrote: Hi Jeff, Thank you for the reply, I am new to camel world. So could you please help me with code. Do you suggest something like this : route.getConsumer

Why do I get so many external redeliveries when using Camel with JMS topics?

2014-05-29 Thread Jeff Bischoff
that's caused by the Camel polling frequency. It seems a little disturbing to me; is that normal? Thanks so much for taking the time to help! Jeff Bischoff WDTS

Re: interceptSendToEndpoint with dynamic endpoint

2013-09-28 Thread Jeff Eltgroth
Hi, I am using camel-core 2.10.0.fuse-71-047 and I am getting similar problems using interceptSendToEndpoint. My uri has a pound sign (#) which is getting encoded to %23. This is the kind of uri I am using: aws-sqs://myQueue?amazonSQSClient=#myClient where myClient is in the registry. Jeff

RE: From bind to bind

2013-05-08 Thread jeff
Oh ! Great ! Thanks -- View this message in context: http://camel.465427.n5.nabble.com/From-bind-to-bind-tp5732109p5732195.html Sent from the Camel - Users mailing list archive at Nabble.com.

Log in file

2013-04-11 Thread jeff
Hey ! I think that it is not possible, but is it possible to send log message : from(activemq:orders).to(log:com.mycompany.order?level=DEBUG).to(bean:processOrder); in a file ? Something like : from(activemq:orders).to(log:com.mycompany.order?level=DEBUGfile=log/${file:name}.log

Re: File Zip compression route

2013-04-08 Thread jeff
Hi, I dig this old thread, is there a solution since 2011 to zip directly from a route ? Thanks ! -- View this message in context: http://camel.465427.n5.nabble.com/File-Zip-compression-route-tp3412721p5730481.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Write enriched data after a split in a file

2013-03-08 Thread jeff
the more performante way looks to do : from(file://C:/Temp/camel/input_test/?noop=true) .split() .tokenize(\n) // Business lock with possible reject / enrich etc ... .streaming()

Re: Opposite of split

2013-03-04 Thread jeff
Thks Claus for the answer, but I have not found the simplest way to do a simple: from(file://input) .split() .tokenize(\n) .unmarshal

Re: A little problem with annotation @CsvRecord

2013-02-27 Thread jeff
of the viventi class thus you should not have any other bindy-annotated class in the same root package. On Monday, February 25, 2013, jeff wrote: Thanks @Claus for the help, but it don't works too... I have found a solution which consist to retrieve the bean from the context from

A little problem with annotation @CsvRecord

2013-02-25 Thread jeff
Hey ! I am a newbie with this framework. I am designing a little MAVEN/SPRING/CAMEL P.O.C. ( I hope I don't spam, I have already post by mail, put I am not really used to nabble :) ) By the way, I don't understand why spring tell me : The separator has not been defined in the annotation

Re: A little problem with annotation @CsvRecord

2013-02-25 Thread jeff
Thanks @Claus for the help, but it don't works too... I have found a solution which consist to retrieve the bean from the context from the routebuilder : spring bean xml : bean id=cSVLineFormatAED class=com.myapp...package.CSVLineFormatAED @CsvRecord(separator = ; , crlf = UNIX) public class

Re: ScheduledPollConsumer leaving threads around during removal

2012-04-20 Thread Jeff Segal
been fixed in 2.9.2. On Fri, Apr 20, 2012 at 6:42 PM, Jeff Segal jeffrey.se...@gmail.com wrote: I created a custom Component which extends ScheduledPollConsumer. I've found that when I stop and remove its Routes at runtime, the Routes are removed but two threads outlive the Route - one

Re: ScheduledPollConsumer leaving threads around during removal

2012-04-20 Thread Jeff Segal
Success! My threads are now being cleaned up properly after Route removal upon upgrading to 2.9.2. Thanks again. On Fri, Apr 20, 2012 at 1:41 PM, Jeff Segal jeffrey.se...@gmail.com wrote: Oops. I'm using 2.9.1. I'm guessing this is the issue: https://issues.apache.org/jira/browse/CAMEL-5072

Re: http4 Component not exposing HttpContext

2012-04-06 Thread Jeff Segal
. If a HttpContext is specified in the URI, HttpProducer will use it when executing the request; otherwise it will not. I also added HttpContext to HttpReferenceParameterTest. Perhaps there are other tests that should be added/modified for this feature but I wasn't sure. Thanks, Jeff On Fri, Nov 18

Add property to Route (not Exchange)

2012-04-04 Thread Jeff Segal
a RouteBuilder. Thanks, Jeff

Re: Add property to Route (not Exchange)

2012-04-04 Thread Jeff Segal
sense? On Wed, Apr 4, 2012 at 3:15 PM, Raul Kripalani r...@fusesource.com wrote: Hi Jeff, Could you explain your use case a bit further? It is not clear what you ultimately want to achieve. Regards, Raúl. On 4 April 2012 18:35, Jeff Segal jeffrey.se...@gmail.com wrote: Is there any

Re: ).Re: Add property to Route (not Exchange)

2012-04-04 Thread Jeff Segal
and have the color in the route id (e.g. id=red.something and if id.startsWith(red.) then garbage collect. Also keep in mind that the RouteBuilder creates just a model, not the route themselves. Hadrian On 04/04/2012 03:53 PM, Jeff Segal wrote: Sure. I have a system which manages Routes

Re: ).Re: Add property to Route (not Exchange)

2012-04-04 Thread Jeff Segal
. Hadrian On 04/04/2012 03:53 PM, Jeff Segal wrote: Sure. I have a system which manages Routes dynamically, which requires some garbage collection to iterate through all Routes in the CamelContext and remove any which are deemed no longer necessary. For the sake of discussion, let's say

Re: http4 Component not exposing HttpContext

2011-11-18 Thread Jeff Segal
. We love contributions http://camel.apache.org/contributing.html So feel free to create a JIRA and if possible attach a patch as well. On Thu, Nov 17, 2011 at 6:54 PM, Jeff Segal jeffrey.se...@gmail.com wrote: Hi all, I have a technical problem as well as a related documentation issue

http4 Component not exposing HttpContext

2011-11-17 Thread Jeff Segal
the http4 Component should be updated to support setting a HttpContext for requests and the documentation should also be updated to reflect this change between HttpClient 3.x and 4.x. Thanks, Jeff

Re: jid-malformed error in XMPP component

2011-10-18 Thread Jeff Segal
Just to add to this, I receive the same error when pointing at a local instance of Openfire rather than jabber.org. On Mon, Oct 17, 2011 at 8:17 AM, Jeff Segal jeffrey.se...@gmail.com wrote: Hi Claus, I'm using 2.8.1. Jeff On Mon, Oct 17, 2011 at 8:09 AM, Claus Ibsen claus.ib

Re: jid-malformed error in XMPP component

2011-10-17 Thread Jeff Segal
Hi Claus, I'm using 2.8.1. Jeff On Mon, Oct 17, 2011 at 8:09 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi What version of Camel are you using? On Fri, Oct 14, 2011 at 8:42 PM, Jeff Segal jeffrey.se...@gmail.com wrote: I'm testing the XMPP component against the public jabber.org

jid-malformed error in XMPP component

2011-10-14 Thread Jeff Segal
type=MODIFYjid-malformed xmlns=urn:ietf:params:xml:ns:xmpp-stanzas//error/message I have no problem using Pidgin to log into this account, connect to the same MUC and send messages to it. Any thoughts on why I'm seeing this problem? Thanks, Jeff

Custom behavior on route shutdown

2011-10-04 Thread Jeff Segal
solution there. Ideally I'd define a Runnable and configure it like this: from(foo:bar).to(abc:123).onShutdown(myRunnable); Is there some alternative that I missed or is this more of a feature request? Thanks, Jeff

Re: Custom behavior on route shutdown

2011-10-04 Thread Jeff Segal
, Oct 4, 2011 at 5:11 PM, Jeff Segal jeffrey.se...@gmail.com wrote: I have an application which dynamically creates and removes routes in a camel context. I'd like to be able to invoke an onShutdown method when routes are removed so that I can perform some cleanup tasks. I've read http

Adding properties to an Exchange

2011-07-14 Thread Jeff Segal
(), then access it in MyBean via exchange.getProperty(). However, I'm curious if there is an easier/more preferred way of doing this. Thanks, Jeff

Re: Adding properties to an Exchange

2011-07-14 Thread Jeff Segal
solution by following Ben and Donald's advice. Cheers, Jeff On Thu, Jul 14, 2011 at 2:01 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Thu, Jul 14, 2011 at 7:41 PM, Jeff Segal jeffrey.se...@gmail.com wrote: I'd like to know the best way to add domain-specific context information to Exchanges

Camel - Jetty integration

2011-05-04 Thread Jeff Segal
on the same port in the same app because only one Component would be able to successfully bind to the port. Thanks, Jeff

Adding Routes dynamically

2011-04-26 Thread Jeff Segal
(). to(mock:result); } } Thanks! Jeff

Re: Adding Routes dynamically

2011-04-26 Thread Jeff Segal
). marshal().rss(). to(mock:result).routeId(routeId); Then when you remove the route you use the same routeId string. I hope this helps. -josh. On 26/04/2011 15:13, Jeff Segal jeffrey.se...@gmail.com wrote: Hi all, I have written a service bean which can add and remove

RE: DSL Parser

2011-03-25 Thread Lansing, William Jeff
dynamically. You may take a look at it. [1]http://camel.apache.org/web-console.html Willem On 3/25/11 6:37 AM, Lansing, William Jeff wrote: A while ago I read a suggestion to the effect that it would be nice if routes could be declared as strings, e.g., in a file like: from(ds

DSL Parser

2011-03-24 Thread Lansing, William Jeff
A while ago I read a suggestion to the effect that it would be nice if routes could be declared as strings, e.g., in a file like: from(ds-service:events) .filter().simple(${body.provider} not contains 'side-effect-of-delete') .to(ds-soap://update?url=http://localhost/xyz/UpdateService;) ;