Re: The Camel Components Poster - PDF - FREE

2013-10-08 Thread James Green
I'm getting 404s from both. Has this been withdrawn? On 2 October 2013 14:27, gliesian wrote: > > The Camel Components Poster - PDF - FREE > http://gliesian.com/camel/TheCamelComponentPosterWithWatermark.pdf > > The Camel Components Poster - PRINTED - NOT SO FREE > > http://fineartamerica.com/f

Polling for file updates over http/s?

2013-10-24 Thread James Green
I'm having to write a java daemon that polls a service over http for an updated file. This effectively provides an "automatic updates" mechanism. Sounds like a job that could be a fit for Camel. Has anyone ever tried developing such a component? James

Simplest route does nothing..?

2014-08-12 Thread James Green
We're missing something fundamental here. https://gist.github.com/jmkgreen/ed271348de66646a87be I run this, I get the following in the logs: https://gist.github.com/jmkgreen/91b89c32fe03ffb93ead So we're wondering what we're doing that doesn't actually execute the route? This comes out of a re

Spring & Transactions, Camel processors doesn't see the data...

2014-09-03 Thread James Green
We have a project that includes Spring & Camel. An integration test (FooIT.java) is annotated for running with Spring and uses a camel route. The problem is that the test creates a database record (which it can read back) but the camel processor that we're written does not see it. The route includ

Camel + Spring + JpaTransactionManager = Hung on SELECT

2014-09-05 Thread James Green
We have a maven project that bundles Camel and Spring. The trouble is a processor receives a message and uses an EntityManager to perform a database query which hangs completely until a 20s timeout kicks in during routing. The hang is during an integration test against an in-memory database with a

Re: Camel + Spring + JpaTransactionManager = Hung on SELECT

2014-09-05 Thread James Green
2 millis) At this point we've waited 20 seconds and camel has given up waiting. As previously noted this is an in-memory db with a single record. On 5 September 2014 17:08, James Green wrote: > We have a maven project that bundles Camel and Spring. The trouble is a > processor

Is this route possible..?

2014-09-22 Thread James Green
We want to consume from JMS and route the message through a set of Processors which may or may not invoke database calls via DAOs. Thing is, we want the database calls to be wrapped in a transaction, but we don't have an XA transaction manager so the JMS part ought to be excluded. Is this possibl

Can unit tests be @Transactional?

2014-09-22 Thread James Green
We have a Spring project that has a unit test annotated @Transactional. This uses a DAO to save a sample Entity before invoking a Camel route that accepts a JMS message and sends it to some Processors. The problem we have is when the test itself is annotated @Transactional. The route stops having

Corrections to Wiki

2014-09-22 Thread James Green
Apparently I don't have permission to edit the following page: http://camel.apache.org/transactional-client.html Could someone correct the links to the Spring website (there are several that now 404)? Thanks, James

Re: Can unit tests be @Transactional?

2014-09-22 Thread James Green
e the same transaction manager and camel > transaction is set to PROPAGATION_REQUIRED which is the default, this > should just work. This assumes your unit test and camel execution is > running under the same thread though. If not then stick to the first method. > > On 22 Sep 2014, at 11:51 pm,

Re: Can unit tests be @Transactional?

2014-09-23 Thread James Green
an remove the jms component out using > @UseAdviceWith and replace with a direct component. This will ensure no > threading will occur due to the jms consumer when you execute the route in > your unit test. > > On 23 Sep 2014, at 1:41 am, James Green wrote: > > > OK - we hav

Application naivity about endpoints

2014-10-07 Thread James Green
I want my application to connect to ActiveMQ today, and possibly RabbitMQ tomorrow. Therefore I do not want anything in code to mention either - it should just be a matter of altering a .properties file and restarting, right? However we're having trouble working out how to do this without expressl

Re: Application naivity about endpoints

2014-10-07 Thread James Green
avoid making your route bundle depend on the jms provider. > > Christian > > > On 07.10.2014 13:18, James Green wrote: > >> I want my application to connect to ActiveMQ today, and possibly RabbitMQ >> tomorrow. Therefore I do not want anything in code to mention either - i

Camel 2.14 breaks our test

2014-10-31 Thread James Green
We just upgraded from 2.13.2 to 2.14.0 and our test now hangs using the producerTemplate to send to an ActiveMQ (5.10.0) endpoint. The route accepts the message, sends it through JAXB and into a Processor which doesn't seem to be executed. We set debug logging on, and ActiveMQ seems to increment

Re: [ANNOUNCE] Apache Camel 2.13.3 Released

2014-11-05 Thread James Green
The [4] link below does not exist. The download page shows 2.13.3 but is linked to 2.13.2. On 1 November 2014 07:53, Christian Mueller wrote: > The Apache Camel project [1] is a powerful open source integration > framework based on known Enterprise Integration Patterns [2]. > > The Camel commun

SMTP receiver

2014-11-07 Thread James Green
The components page lists camel-mail as the SMTP component (twice in fact) but that it can only send emails. Is there something that can listen for inbound SMTP connections? James

Cryptography - real world use

2014-12-24 Thread James Green
I'm looking at Camel's CryptoDataFormat and am wondering to what extent we might employ it. In our use-case we want multiple Camel-powered JARs to send each other messages via a message broker. Some of message needs to remain private so cryptography needs to be used. Right now we have routes that

Re: Cryptography - real world use

2014-12-24 Thread James Green
lsen wrote: > Sure! The crypto is agnostic of transport and payload - stick it in between > the marshalling and the endpoint - and inbetween endpoint and unmarshalling > and you should be fit for fight. > Good luck! > > 2014-12-24 11:17 GMT+01:00 James Green : > > > &

Re: Cryptography - real world use

2014-12-24 Thread James Green
gt; Scott and Jakubs book has an excellent chapter about security where > they cover this > > https://www.packtpub.com/application-development/apache-camel-developers-cookbook > > On Wed, Dec 24, 2014 at 11:29 AM, James Green > wrote: > > So something like: > &

Re: Cryptography - real world use

2014-12-24 Thread James Green
ake the dataformat a property of the > endpoint/transport. > > 2014-12-24 11:29 GMT+01:00 James Green : > > > > So something like: > > > > > > > from("the.input.queue").unmarshal(cryptoDataFormat).unmarshal(jaxbMapper).process(byBusinessProcessor).mar

Re: Cryptography - real world use

2014-12-24 Thread James Green
Incidentally what you expect to see if I have a POJO and sent it to MongoDB via an encrypting marshaller? A document full of binary or a hash where the values are binary? On 24 December 2014 at 11:39, James Green wrote: > OK do we need to wrap the process() with both un-marshal to a P

Recording events

2015-01-06 Thread James Green
We're about to build a number of jars which will use Camel to route messages from sources to destinations via business logic processors. One of things we're looking for is the ability to record business events as they happen. Sounds a bit like Wire Tap? We're unsure. Ultimately the events will fo

Are getters/setters required for simple?

2015-01-07 Thread James Green
http://camel.apache.org/simple.html talks about using getters/setters of a POJO. If the POJO has no business logic, can it not merely hold a set of public fields? Is this intended for work? No real point in the getters/setters existing. James

Spring auto-registration of Components?

2015-01-08 Thread James Green
If CamelConfiguration.routes() registers RouteBuilders found in the application content, is there a reason why CamelConfiguration does not register Components in the same way? I'm just learning about this stuff so I may be mentally missing some steps :) Really looking to let our ops people config

RecipientList to queue?

2015-01-08 Thread James Green
This errors: from(source()) .transacted() .unmarshal(jacksonUnmarshall) .process(router) .recipientList(simple("${body.media}")) .marshal(jacksonMarshall); The router sets the In of the Exchange to an object t

Re: RecipientList to queue?

2015-01-08 Thread James Green
mapping, and what you can do > http://camel.apache.org/jms > > On Thu, Jan 8, 2015 at 4:36 PM, James Green > wrote: > > This errors: > > > > from(source()) > > .transacted() > > .unmarshal(jacksonUnmarshall)

Re: Spring auto-registration of Components?

2015-01-08 Thread James Green
code would be a good thing but I don't see how without using a strategy similar to the routes method. On 8 January 2015 at 17:51, Claus Ibsen wrote: > Hi > > Are you talking about spring-boot or spring javaconfig? > > > > On Thu, Jan 8, 2015 at 11:58 A

Irrecoverable faults

2015-01-09 Thread James Green
Should we avoid issuing these? We are implementing some checks that ask, for example, "Is the customer allowed to do this?" And if the answer is no we're treating this as irrecoverable. Map this to irrecoverable according to Camel in Action Ch 5, Error Handling. Yet this chapter barely touches ir

onException is ignored

2015-01-09 Thread James Green
Project is Spring based with Camel 2.14 and the following configuration: onException(AccountNotFoundException.class) .log("Account Not Found. Message discarded.").to("jms:queue:RouterAccountNotFound").stop(); errorHandler(transactionErrorHandler().maximumRedeliveri

Re: onException is ignored

2015-01-12 Thread James Green
Blog: http://willemjiang.blogspot.com (English) > http://jnn.iteye.com (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > On January 10, 2015 at 1:38:52 AM, James Green (james.mk.gr...@gmail.com) > wrote: > > Project is Spring based with Camel 2.14 and th

Re: onException is ignored

2015-01-12 Thread James Green
ar in there and as you can see I have removed the sending to the queue after logging (just in case)... Thanks, James On 12 January 2015 at 10:10, Claus Ibsen wrote: > Hi > > No the onException should be triggered even for TX. > > You may try to configure onException after error

Re: onException is ignored

2015-01-12 Thread James Green
tes the line: 14:22:03,993 ERROR org.slf4j.helpers.MarkerIgnoringBase:145 error() - Account Not Found. Message discarded. So what was the point of supplying a logName? On 12 January 2015 at 12:05, James Green wrote: > As suggested: > > errorHandler(transactionErrorHa

Where is logName used?

2015-01-13 Thread James Green
The following code: .log(LoggingLevel.ERROR, "com.foo.server.ngw.router", "Account Not Found. Message discarded.").stop(); Results in the following in the log: 10:12:11,690 ERROR org.slf4j.helpers.MarkerIgnoringBase:145 error() - Account Not Found. Message discarded. I was expec

Re: Where is logName used?

2015-01-15 Thread James Green
log configuration to make sure you setup the log rightly? > > -- > Willem Jiang > > Red Hat, Inc. > Web: http://www.redhat.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.iteye.com (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > &

Re: Irrecoverable faults

2015-01-15 Thread James Green
; Red Hat, Inc. > Web: http://www.redhat.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.iteye.com (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > On January 9, 2015 at 5:53:32 PM, James Green (james.mk.gr...@gmail.com) > wrote: > &g

Re: Where is logName used?

2015-01-16 Thread James Green
b.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/component/log/LogComponent.java#L55 > > > On Tue, Jan 13, 2015 at 11:17 AM, James Green > wrote: > > The following code: > > > > .log(LoggingLevel.ERROR, "com.foo.server.ngw

simple recipientlist expansion

2015-01-19 Thread James Green
.recipientList(simple("direct:${body.media}")) So media is a List property where each entry has a media value: "sms", "email", etc. What I get out of this is an exception (where "sms" is the only media): org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers availabl

Re: simple recipientlist expansion

2015-01-19 Thread James Green
list. I think I have seen that done in fabric8 v1. > > > On Mon, Jan 19, 2015 at 6:32 PM, James Green > wrote: > > .recipientList(simple("direct:${body.media}")) > > > > So media is a List property where each entry has a media value: > > "sms", &

Modifying a shipped TypeConverter

2015-01-20 Thread James Green
The mongodb component uses Jackson to marshal Object to DBObject. The trouble is that Date becomes long due to the default configuration of Jackson. Is it possible to change this by obtaining that Jackson instance and reconfiguring it? Or must be add a TypeConvertor for our specify type to the re

Re: Modifying a shipped TypeConverter

2015-01-20 Thread James Green
va.lang.Class,%20java.lang.Class%29 > > Jakub > > On 20/01/15 14:50, James Green wrote: > > The mongodb component uses Jackson to marshal Object to DBObject. The > > trouble is that Date becomes long due to the default configuration of > > Jackson. > > >

Re: simple recipientlist expansion

2015-01-20 Thread James Green
log statement before the recipientList. > You could also use bean binding instead of a processor: > > .setHeader(method(new MyRouter(), "route(${body.media})")) > > with a class like: > > public class MyRouter { > public String route(List media) {...} // returns >

Re: simple recipientlist expansion

2015-01-20 Thread James Green
Map? I meant a List on the header, of course. On 20 January 2015 at 16:00, James Green wrote: > I ended up with a Processor that built a new Map on a header iterating > over the media and prefixing each in the header variant. > > I may in-line this in the camel route (as per your

Re: Messages sitting on ActiveMq for x period of time

2015-01-21 Thread James Green
May be worth connecting to ActiveMQ to inspect it at the JMX level (hawt.io is an excellent interface). Check why ActiveMQ thinks it should not be delivering it. On 21 January 2015 at 04:29, mvandersteen < mark.vanderst...@servicestream.com.au> wrote: > Hi Guys, > > I have 1 queue created through

Rest DSL Exception mapping

2015-01-21 Thread James Green
If Camel can accept and map both JSON and XML inputs to POJOs, is there a way of reversing this for onException handling purposes? The only example of onException sets the content-type and formatted content on the Exchange. But I may not know this. Within Spring MVC there is @ResponseStatus allow

Re: Rest DSL Exception mapping

2015-01-21 Thread James Green
Handler to be formatted to JSON/XML according to the HTTP client's choice? On 21 January 2015 at 11:51, James Green wrote: > If Camel can accept and map both JSON and XML inputs to POJOs, is there a > way of reversing this for onException handling purposes? > > The only exam

Re: Modifying a shipped TypeConverter

2015-01-28 Thread James Green
t; Integration specialist > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk > > On Tue, Jan 20, 2015 at 3:58 PM, James Green > wrote: > > > Given MongoDB has an ISODate type natively, should the default &g

Periodic queue consumer

2015-01-30 Thread James Green
We have a need to route message to a temporary location and to re-submit them every n seconds. We're thinking of sending the message to a queue if a later re-try is needed. A separate process would then be required to read from the queue and re-submit. This is fine but clearly listening on a queu

Re: Periodic queue consumer

2015-02-02 Thread James Green
ow + 10 sec. > > > > On Fri, Jan 30, 2015 at 4:28 PM, James Green > wrote: > > We have a need to route message to a temporary location and to re-submit > > them every n seconds. > > > > We're thinking of sending the message to a queue if a later re-try is

REST InOut with JMS InOnly

2015-02-03 Thread James Green
I have two routes: 1. A rest dsl accepting data from HTTP clients and sending it to the route below before replying to the client 2. A "backend" route that receives an Exchange and sends it to a JMS queue By default, although the JMS queue gets the message, a stack trace occurs because the queue

Re: REST InOut with JMS InOnly

2015-02-03 Thread James Green
gt; > On 3/02/2015 13:14, Claus Ibsen wrote: > >> Hi >> >> You can send the message to the JMS as InOnly or use WireTap >> >> On Tue, Feb 3, 2015 at 12:27 PM, James Green >> wrote: >> >>> I have two routes: >>> >>> 1. A rest ds

Re: REST InOut with JMS InOnly

2015-02-03 Thread James Green
waits a response, so whether that is just a OK or to >> respond with some new data, then that needs to happen, and occurs when >> the exchange is done being routed, and the control is back at the >> consumer. >> >> On 3/02/2015 13:14, Claus Ibsen wrote: >>> >>>&g

MailProducer not documented

2015-02-05 Thread James Green
http://camel.apache.org/mail.html mentions MailProducer but I can't find an example and the JavaDoc does not show it being used. Can anyone provide an update to the documentation as I'm not aware of whether we should be using it instead of an smtp: endpoint. Thanks, James

Re: REST InOut with JMS InOnly

2015-02-05 Thread James Green
rude surprise. Under these circumstances I presume the onPrepare to clone the Exchange is required? It's not overly well documented on the wiretap page. James On 4 February 2015 at 06:11, Claus Ibsen wrote: > On Tue, Feb 3, 2015 at 2:30 PM, James Green > wrote: > > Nope :) &g

Re: REST InOut with JMS InOnly

2015-02-05 Thread James Green
m/apache/camel/blob/master/camel-core/ > src/test/java/org/apache/camel/processor/AnimalDeepClonePrepare.java > > Regards, > Morgan > > > On 5/02/2015 10:38, James Green wrote: > >> Yes this is the simple bit. >> >> The not so simple bit is appreciating what

MongoDB, insert, and _id

2015-02-05 Thread James Green
I have a route: from("direct:input") .wiretap("direct:sendToTopic") .to("mongodb:deliveredEventMongoDB?database=ngw&collection=deliveredevents&operation=insert"); direct:input provably receives a brand new BasicDBObject filled with a document and lacks a _id. direct:sendToTopic provably receives

Route with JMS down

2015-02-09 Thread James Green
We have a route from a REST endpoint into a JMS (InOnly) endpoint. We took down the broker to see what would happen. Turns out HTTP clients hang waiting for a response (for several minutes) while a load of stack traces are logged by Camel: 09/Feb/2015 15:07:52,677- DefaultErrorHandler: Failed del

Re: Route with JMS down

2015-02-09 Thread James Green
s can you see? Thanks, James On 9 February 2015 at 15:39, Claus Ibsen wrote: > Hi > > If you use ActiveMQ you may need to turn off asyncSend > http://activemq.apache.org/async-sends.html > > On Mon, Feb 9, 2015 at 4:20 PM, James Green > wrote: > > We have a route from

Cross RouteBuilder exceptions

2015-02-09 Thread James Green
Our application contains a few RouteBuilders. I understand I can use onException across these but only by having them chained together through OO inheritance. Is there an alternative means? Ideally the RouteBuilder that constructs our public interface ought to be catching and mapping exceptions t

Re: request-reply with ActiveMQ and Camel

2015-02-12 Thread James Green
I'm guessing you need the reply to include a reference to one or more "files" that can be picked up independently? I can't see a multi-message reply working. Prepared to be corrected of course. On 12 February 2015 at 16:58, Marco Crivellaro wrote: > Hi, > I have managed to get a simple request-r

java-dsl.html error

2015-02-16 Thread James Green
At the bottom it talks about intercept() but doesn't use it. Confusing at least! And the link to InterceptorProcessor is a 404. James

http4.html Possible error

2015-02-19 Thread James Green
Halfway down the page under "Configuring the URI to call" the example is given: from("direct:start") .setHeader(Exchange.HTTP_URI, constant("http://newhost";)) .to("http4://oldhost"); Under it states: "*Where Constants is the class, org.apache.camel.component.http4.Constants."* Is this corr

http4 - socket timeout configured per-message?

2015-02-19 Thread James Green
I have a route that sends to a uri provided in the message. Also in the message is the socket timeout value. The first part is easy, but I can't see a way of specifying the socket timeout at runtime. Any ideas? Thanks, James

Re: How to trap most specific exceptions?

2015-02-26 Thread James Green
Doesn't it have something to do with the order in which onException is given in the DSL? I.e. reverse the lines of code and it should work? I could be wrong... On 25 February 2015 at 14:29, Claus Ibsen wrote: > Hi > > If you have a copy of Camel in Action its explained in much detail in > chapte

Test body mutation

2015-03-02 Thread James Green
I need to check that an object is mutated by a route properly. The testing.html page does not show this - only that the message passed through routes as expected. I'm downloading the camel sources now - is there a good test class that demonstrates this? Thanks, James

Re: Test body mutation

2015-03-02 Thread James Green
Or am I being silly - is it really as simple as asserting that the endpoint got the message,then doing simple JUnit assertions on the body sent in to check it is now as expected? (Brain somewhat stuck in asynchronous routes at the moment.) On 2 March 2015 at 10:27, James Green wrote: > I n

Re: can i get discount for camel in action book

2015-03-05 Thread James Green
The Camel in Action is worth every penny. A light bulb came on in my mind when reading the early chapter on how Spring Application Contexts get wired together - I was pretty early in my Spring experience back then. The rest of the book is about Camel itself and really the only thing it lacks is a

Re: can i get discount for camel in action book

2015-03-05 Thread James Green
Ah ServiceMix. Another on my list of "just why does this software exist?" I guess I need to read a paragraph entitled "Practical ServiceMix" to know... On 6 March 2015 at 06:42, Cristiano Costantini < cristiano.costant...@gmail.com> wrote: > I cannot avoid to say too that reading the book of Clau

Are transactions useful in these use-cases?

2015-03-10 Thread James Green
We have a number of routes: from(HTTP POST).to(JMS) from(JMS).to(SOAP Endpoint).to(JMS) from(JMS).to(MongoDB) from(MongoDB).to(JMS) Hugely simplified and these are across various JAR services. Are transactions actually useful in the above? Actually understanding the behaviour of code routes is o

Re: Sending email - possible bug?

2015-04-13 Thread James Green
onnection refused exception and > stack traces. > > Cheers > Reji > On 10 Apr 2015 16:51, "James Green" wrote: > > > We just saw this in the log: > > > > 10/Apr/2015 10:56:04,683- DefaultJavaMailSender: Connecting to > localhost:25 > > 10/

Re: Sending email - possible bug?

2015-04-13 Thread James Green
s/route/root/ that's habit creaking in for you. On 13 April 2015 at 16:12, James Green wrote: > An update: the email is sent just fine (I received it eventually). The > trouble is later on - the deadLetterChannel does not appear to log a stack > trace. > > An engine

Re: Sending email - possible bug?

2015-04-13 Thread James Green
ge > as-is. If you want to include stacktraces / exception message or > whatever you need to enrich the message before sending to the DLQ to > include that. > > On Mon, Apr 13, 2015 at 5:12 PM, James Green > wrote: > > An update: the email is sent just fine (I received it

DLQ, cause:null

2015-04-17 Thread James Green
We have a camel route consuming from ActiveMQ and occasionally get a DLQ entry without anything logged through our deadLetterChannel. The only thing we have to go on is a dlqFailureCause header which says: java.lang.Throwable: Exceeded redelivery policy limit:RedeliveryPolicy {destination = null,

Application halts for 30 minutes or until restart

2017-07-27 Thread James Green
This is a Spring Boot 1.3 application that was recently re-imaged (Docker) and rebooted after several months of loyal service. We are unaware of any major changes beyond going from java:8 to openjdk:8. It receives payloads from ActiveMQ, works against Mongo, and spits out payloads to HTTP and SMTP

Re: Application halts for 30 minutes or until restart

2017-07-27 Thread James Green
ny > locking issues. And perhaps increasing the verbosity of the logs can give > you more clues, > > zoran > > On Thu, Jul 27, 2017 at 9:58 AM, James Green > wrote: > > > This is a Spring Boot 1.3 application that was recently re-imaged > (Docker) > > and rebo

Re: Application halts for 30 minutes or until restart

2017-07-31 Thread James Green
We deployed changes Thursday evening that fixed the HTTP endpoint the wiretap sends payloads to, and it's been running without incident since. Feels like something may be wrong with error handling there. On 27 July 2017 at 10:34, James Green wrote: > I have a thread dump with

Spring Boot 2

2018-03-02 Thread James Green
I'm guessing that the current Camel release just won't do... Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedPropertyResolver at org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration$Condition.getMatchOutcome(CamelSSLAutoConfiguration.java:51) at org.sprin

Re: Spring Boot 2

2018-03-02 Thread James Green
Spring Boot 2 is 2.22.0 > > -- > Andrea Cosentino > -- > Apache Camel PMC Member > Apache Karaf Committer > Apache Servicemix PMC Member > Email: ancosen1...@yahoo.com > Twitter: @oscerd2 > Github: oscerd > > > > &g

Re: Spring Boot 2

2018-03-02 Thread James Green
Bah, 2.22, YKWIM! On 2 March 2018 at 14:43, James Green wrote: > Thanks for the quick replies - we'll hold fire for 2.21. > > On 2 March 2018 at 14:33, Andrea Cosentino wrote: > >> Actually there is a branch boot2 in apache camel repo, based on >> camel-2.21.0-S

Spring Boot Testing & @DirtiesContext

2018-08-09 Thread James Green
I have an itch to scratch. Why does my test class require @DirtiesContext to avoid a stack trace telling me that ActiveMQ was never started and so it cannot be stopped after my test completes? Context: @RunWith(CamelSpringBootRunner.class) @SpringBootTest @MockEndpoints @DirtiesContext(classMode

SQS - possible thread handling confusion with transactions

2020-03-30 Thread James Green
Hi, I am looking at Spring Boot app that has been extended to include an @SqsListener that uses ProducerTemplate to forward messages into a Camel route. An integration test was hooked up with ElasticMQ and all _appears_ correct except assertions that the database records are correct - they in fac

Links to empty pages on website?

2013-03-25 Thread James Green
Here I am suggesting to my boss that if he wants event broadcast and monitoring systems he should seriously check out camel, and each of the news items on the home page links to a page with empty content. Not good! Can someone fix the content to look at least moderately professional? Thanks, Ja

OT: Aggregation of billable data?

2013-04-25 Thread James Green
This isn't to do with Camel per se but I'm hopeful I'm asking this question of the the right audience! Basically we're going to be routing event messages into some storage component where some of those messages may be billable to customers. We have an existing service that charges customers based

Re: OT: Aggregation of billable data?

2013-04-26 Thread James Green
ource is now part of Red Hat >> Web: http://www.fusesource.com | http://www.redhat.com >> Blog: http://willemjiang.blogspot.**com <http://willemjiang.blogspot.com>( >> http://willemjiang.blogspot.**com/ <http://willemjiang.blogspot.com/>) >> (English) >>

Re: How to poll Google mail inbox for mails

2013-08-29 Thread James Green
http://stackoverflow.com/questions/9619030/resolving-javax-net-ssl-sslhandshakeexception-sun-security-validator-validatore A more interesting question is why your Java installation does not recognise the Google CA certificate. Either your installation is old or Oracle isn't updating the shipped ce

Simple example

2011-07-11 Thread James Green
Hi, Is it expected that a Netbeans Java (Maven) app can copy/paste the simple example source code and run when configured to connect against an existing ActiveMQ instance? I must be doing something blindingly stupid, as it fails without any exception for me! I am connecting against my developmen

Re: Simple example

2011-07-11 Thread James Green
; to display more info in the log > file > > > Regards, > > Charles Moulliard > > Apache Committer > > Blog : http://cmoulliard.blogspot.com > Twitter : http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard > Skype: cmoulliard > >

Re: Simple example

2011-07-11 Thread James Green
also Trace option of Camel = "true" to display more info in the log >> file >> >> > >> Regards, >> >> Charles Moulliard >> >> Apache Committer >> >> Blog : http://cmoulliard.blogspot.com >> Twitter : http://twitter.com

XMPP says org.apache.activemq.command.ActiveMQQueue not found

2011-07-12 Thread James Green
This may not be Camel's fault but the problem is in front of us and we're puzzelled! Essentially we have a route from an ActimeMQ queue into XMPP. At the XMPP end we have a client that receives a message and it's underlying library throws the following: java.lang. ClassNotFoundException: org.apac

Re: XMPP says org.apache.activemq.command.ActiveMQQueue not found

2011-07-12 Thread James Green
serialize it on XMPP side but can't find the org.apache.activemq.command. > **ActiveMQQueue class from the XMPP side classloader. > > Freeman > > On 2011-7-12, at 下午9:11, James Green wrote: > > This may not be Camel's fault but the problem is in front of us and we'

Re: XMPP says org.apache.activemq.command.ActiveMQQueue not found

2011-07-12 Thread James Green
July 2011 14:50, Claus Ibsen wrote: > Can you post the Camel route, and what versions of Camel and AMQ are you > using? > > On Tue, Jul 12, 2011 at 3:11 PM, James Green > wrote: > > This may not be Camel's fault but the problem is in front of us and we're > > pu

Re: XMPP says org.apache.activemq.command.ActiveMQQueue not found

2011-07-12 Thread James Green
;@ > jabber.myhost.com/j...@jabber.myhost.com?password=" + xmppPassword); > > > On Tue, Jul 12, 2011 at 4:51 PM, James Green > wrote: > > It's the ActiveMQ 5.5.0 distribution with camel 2.7.0. I added > > camel-xmpp-2.7.0.jar to lib. > > > > As

Re: XMPP says org.apache.activemq.command.ActiveMQQueue not found

2011-07-12 Thread James Green
OK It seems that unsetting JMSDestination resolves the matter. Still unclear why the client library should take one look at that and try to create an object... James On 12 July 2011 16:24, Claus Ibsen wrote: > On Tue, Jul 12, 2011 at 5:22 PM, James Green > wrote: > > We have

errors require jetty?

2011-07-13 Thread James Green
I just added the following to my route: errorHandler(deadLetterChannel("activemq:queue:Outbound.Errored")); All I want is to prove that if my route target fails, the message is directed to the above JMS queue. On restarting ActiveMQ however I see this: 2011-07-13 11:40:59,226 | DEBUG | Loading

Re: errors require jetty?

2011-07-13 Thread James Green
ing this process. And hence why you see some DEBUG logging of > that. > > There is no problem. > > On Wed, Jul 13, 2011 at 1:47 PM, James Green > wrote: > > I just added the following to my route: > > > > errorHandler(deadLetterChannel("activemq:queue:Outbou

Lazily connecting to an endpoint

2011-07-13 Thread James Green
Hi, I have a route to an xmpp:// endpoint. Trouble is, if that XMPP server is not "up", I cannot start ActiveMQ. It throws a FailedToCreateProducerException and promptly shuts itself down again. Is there an option to the URL to only connect on demand? I have added some code to handle errors which

Re: Lazily connecting to an endpoint

2011-07-13 Thread James Green
2011 15:00, Claus Ibsen wrote: > On Wed, Jul 13, 2011 at 3:47 PM, James Green > wrote: > > Hi, > > > > I have a route to an xmpp:// endpoint. Trouble is, if that XMPP server is > > not "up", I cannot start ActiveMQ. It throws a > > FailedToCreatePro

ActiveMQ Consumer stalled?

2016-04-27 Thread James Green
Got a Message Driven Consumer which the broker shows as connected but after a while it seems to stop accepting new messages. Nothing amiss in the logs, the whole process just appears stalled. I have just obtained a thread dump (see https://gist.github.com/jmkgreen/8c4e399520f731c9175ee1bad969261f

Re: interceptSendToEndpoint

2016-05-12 Thread James Green
You could do it that way and add a second interceptSendToEndpoint intercepting the next hop I guess. You may wish to consider what you are trying to achieve - if you do not require the full payload to be audited it may be that using an HTTP proxy satisfies your requirements and requires very littl

Re: ClassNotFoundException ObjectFactory

2016-05-13 Thread James Green
Interestingly we get something similar: 10/May/2016 16:36:54,356 [DEBUG] ObjectHelper: Cannot find class: java.lang.ObjectFactory 10/May/2016 16:36:54,357 [DEBUG] ObjectHelper: Cannot find class: java.lang.ObjectFactory 10/May/2016 16:36:54,357 [DEBUG] ObjectHelper: Cannot find class: org.apache.a

description vs routeDescription

2016-05-17 Thread James Green
Hi, Not clear on the difference. It seems at runtime I only get the last one set. Am I expected to use both to serve different purposes? James

  1   2   >