Send to a stopped route

2024-11-01 Thread Mark Webb
I have a situation in which I may want to stop a route to prevent data from flowing through my application. Is there a way I can use the ControlBus to turn on/off a route and not have exceptions thrown when trying to send to the route if its in a stopped or suspended state?

Large Camel Open-Source project?

2024-08-20 Thread Mark Webb
Does anyone know of any decent size open-source projects that use Apache Camel? I'm always intrigued by how others use the framework. I've been using Camel in industry for over 10 years and have created my own style but I'm curious to see how others do it. Thanks, Mark

Re: Processor data persistence during route stop

2024-06-06 Thread Mark Nuttall
This is just using one of the EIPs to handle your use case. Camel is just EIPs wired together. " Otherwise we will have to include DB related jars/code to do the same what Camel already does." You have to do that if you want to persist anything, Routes should not be long running (i.e. break up the

Re: Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread Mark Nuttall
one thing that got us was, since we were using kafka with security but not using Kafka idempotency, we had to add the following flag. As usual, kafka messages were not helpful. camel.component.kafka.enable-idempotence=false On Fri, Oct 6, 2023 at 3:49 AM Claus Ibsen wrote: > Hi > > If you have

Re: Camel Kafka consumer dynamic topic

2023-10-06 Thread Mark Nuttall
(someServiceWithCamelContextInjected.class, "createRoute"); createRoute(theRestResponseStructure) { // see stackoverflow link to create the route } On Fri, Oct 6, 2023 at 9:56 AM Chirag wrote: > Mark, > > Scenario for service restart will cause any dynamic route from being > removed. > >

Re: Camel Kafka consumer dynamic topic

2023-10-04 Thread Mark Nuttall
le to get a random kafka topic at runtime and create a kafka > consumer from it. > > - Girish > > On Wed, Oct 4, 2023, 2:58 AM Mark Nuttall wrote: > > > Pretty sure I've done this kind of thing before. I think the info is here > > > > > https://stackoverf

Re: Camel Kafka consumer dynamic topic

2023-10-03 Thread Mark Nuttall
Pretty sure I've done this kind of thing before. I think the info is here https://stackoverflow.com/questions/48380456/dynamic-routing-apache-camel On Tue, Oct 3, 2023, 3:22 AM Claus Ibsen wrote: > Hi > > If you use Java RouteBuilder, then you can maybe use spring dependency > injection, to inj

Re: How to receive Server side events

2023-08-15 Thread Mark Nuttall
https://www.baeldung.com/spring-server-sent-events On Tue, Aug 15, 2023 at 4:00 PM Claus Ibsen wrote: > Hi > > There is no component that out of the box supports SSE with Camel (to my > knowledge). > > We have a JIRA about this > https://issues.apache.org/jira/browse/CAMEL-16431 > > If you run i

Re: ZeroMQ component

2023-08-01 Thread Mark Webb
the case of ZeroMQ, it seems that the license is a Mozilla Public > > License version 2.0 which is more restrictive than an Apache License > which > > is why it is not part of the Camel repository. > > > > Regards, > > Nicolas > >

ZeroMQ component

2023-08-01 Thread Mark Webb
sion. Would this be possible? - Mark

Re: Camel Kafka Consumer Node -1 disconnected error

2023-07-28 Thread Mark Nuttall
Yeah, typically most camel config is in properties. It looks like all the config is on the URI and i dont see any security settings. It is very highly likely what Claus said. Or, your service does not have the correct access. I have used Kafka with AWS MSK and Confluent and have seen this error be

ZeroMQ Support

2023-05-16 Thread Mark Webb
lar reason? I'm very interested in using Apache Camel with ZeroMQ so if someone could help to get me up to speed on what's going on, it would be much appreciated. Mark

Re: Consume Kafka messages in a batch

2023-03-22 Thread Mark Nuttall
4, > so it's pretty easy for us to miss bug reports and interesting feature > suggestions - as yours.If possible, try to provide a pseudo-code, a > reproducer or a unit test that the community can look at and work with. > > > Thanks > > On Wed, Mar 15, 2023 at 1:31 PM Mark

Consume Kafka messages in a batch

2023-03-15 Thread Mark Nuttall
I know consuming Kafka messages in a batch is not currently supported. I googled and I didn't find any real options. I looked at hacking the Camel classes to implement it and decided that it was too risky. So for now we are falling back to using a Spring Kafka Consumer. The issue with that is I s

Re: How to trigger Messages at specific times

2023-02-01 Thread Mark Nuttall
at do we need to do to > trigger Camel? > > On Tue, 31 Jan 2023 at 21:51, Mark Nuttall wrote: > > > Use quartz outside of camel and let camel do the rest. This is what we > are > > doing in a current product and I've done this before in the past. > > > &

Re: How to trigger Messages at specific times

2023-01-31 Thread Mark Nuttall
Use quartz outside of camel and let camel do the rest. This is what we are doing in a current product and I've done this before in the past. On Tue, Jan 31, 2023, 3:58 AM Yash Ganthe wrote: > Hi, > > We have a DB table where every row has a text message and a timestamp. E.g. > Mesg1 09:00 > Mesg

Apache Shiro and REST DSL routes

2023-01-17 Thread Mark Webb
Is there any documentation or examples that I can look at to understand how I can secure my Camel REST routes? Ideally I'd like to leverage Keycloak and Shiro for my AuthN/AuthZ. Let me know if there is anything out there I can leverage. Thanks

Re: How to get docker stats ?

2023-01-11 Thread Mark Webb
Enrich: > expression: > constant: > expression: docker:stats?containerId=fa05264a1bed > - to: > uri: log:logger > parameters: > period: '5000' > > Best regards, > Mikael > > ke 11. tammik. 20

Re: How to get docker stats ?

2023-01-11 Thread Mark Webb
Yes, you are correct. I had the consumer/producer backwards in my email. I'll look into writing up a PR. Thanks, Mark On Wed, Jan 11, 2023 at 9:18 AM Claus Ibsen wrote: > Hi > > I think you swap the camel consumer vs producer. > > from = consumer > to = producer >

Re: elegant error handling with temporary replyTo ?

2023-01-11 Thread Mark Webb
gging level in case the stacktrace is needed during > troubleshooting > > > > On Fri, Jan 6, 2023 at 12:22 PM Mark Webb wrote: > > > >> Sure, I could tweak the logger. I was hoping to not have the stack > trace > >> get logged, but a more user-friendly log

How to get docker stats ?

2023-01-11 Thread Mark Webb
I have a Docker instance running multiple containers. I'm trying to figure out how to get stats for each container. The problem I've run in to is that the Docker stats operation is only a producer so I can only use the "from" in a route. So if I don't know the container ID at build time, how can

Re: elegant error handling with temporary replyTo ?

2023-01-06 Thread Mark Webb
> The log is hardcoded and it can happened when using temporary reply queues. > > You can tweak the logger to set logging level to ERROR > for TemporaryQueueReplyManager etc > > > On Thu, Jan 5, 2023 at 8:51 PM Mark Webb wrote: > > > I'm starting up a project that will us

elegant error handling with temporary replyTo ?

2023-01-05 Thread Mark Webb
ion inside the DMLC for Temporary ReplyTo Queue for destination , refreshing ReplyTo destination How can I go about handling this error in the temporary response processing? Any help would be appreciated. Thanks, Mark

Re: camel-docker operation error

2022-12-22 Thread Mark Webb
I'd love to help you. Thanks !! On Thu, Dec 22, 2022 at 12:40 PM Claus Ibsen wrote: > Hi > > On Thu, Dec 22, 2022 at 6:37 PM Mark Webb wrote: > > > Thanks Claus. I started digging through the Java source code. It > appears > > that only "stats" and

Re: camel-docker operation error

2022-12-22 Thread Mark Webb
d list what > operations are valid. > > On Thu, Dec 22, 2022 at 6:14 PM Mark Webb wrote: > > > I am trying to get a Camel-Docker route working. The beginning of my > > simple route is (I have a valid IP Address listed in the route): > > > > from("docker:/

camel-docker operation error

2022-12-22 Thread Mark Webb
on* Are there any other tutorials or documentation I can look at to figure out why the "info" operation is not valid? Thanks, Mark

Re: Jdbc Aggregation and K8s

2022-03-11 Thread Mark Nuttall
Thanks Karen! We will. I will have my teammate do it since he is actually working on the issue and has the details On Fri, Mar 11, 2022 at 10:32 AM Karen Lease wrote: > Hi Mark, > This looks like a bug to me. During startup the AggregateProcessor first > queries the exchange IDs in

Re: Jdbc Aggregation and K8s

2022-03-10 Thread Mark Nuttall
FYI we tried using ClusterJDBCAggregationRepository, but we can’t use because it requires instance_id. Also, our organization does not have support for StatefulSet so we can't use that. On Thu, Mar 10, 2022 at 5:14 PM Mark Nuttall wrote: > Sorry Claus, I should have included that. I was

Re: Jdbc Aggregation and K8s

2022-03-10 Thread Mark Nuttall
2022 at 5:54 PM Mark Nuttall wrote: > > > > Has anyone successfully gotten JDBC Aggregation to work with K8s > > (Kubernetes)? We are struggling to make it work and maybe we are just > > missing something. > > > > Each instance (pod) gets a list of aggregating

Jdbc Aggregation and K8s

2022-03-10 Thread Mark Nuttall
Has anyone successfully gotten JDBC Aggregation to work with K8s (Kubernetes)? We are struggling to make it work and maybe we are just missing something. Each instance (pod) gets a list of aggregating exchanges, then populates information about the exchanges, and if an exchange completes in betw

Re: .process vs .to(bean: ?

2021-09-10 Thread Mark Nuttall
to use Camel's > error handling and retries. > > -Steve > > > -Original Message- > > From: Mark Nuttall > > Sent: Friday, September 10, 2021 3:51 PM > > To: users@camel.apache.org > > Subject: Re: .process vs .to(bean: ? > > > > You s

Re: .process vs .to(bean: ?

2021-09-10 Thread Mark Nuttall
You should use the Camel Processing to do retries. Also, look at using something like OpenFeign to reduce the boilerplate HTTP call. It can be very few lines of code. or you should use the Camel HTTP component. On Fri, Sep 10, 2021 at 2:00 AM Matthee, Elmar [elm...@sun.ac.za] < elm...@sun.ac.za

Re: Springboot creating new Kakfa components

2021-07-16 Thread Mark Nuttall
Fyi, using Spring Boot and/or Camel, you can and should specify kafka properties in property / yaml files. You dont need to create a Kafka Component. Spring/Camel will do that for you. That is what they do. That way it will be configured correctly. https://docs.spring.io/spring-boot/docs/current/r

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Mark Nuttall
For an app to expose http endpoints, it has to be a "web app". Why not just add the spring boot web dependency? On Mon, Jun 21, 2021 at 12:51 PM SRIKANT MVS wrote: > Hello, > > I am running a kafka consumer application using camel-spring-boot-starter. > The SpringBoot application implements Com

Re: Update Logging Levels of Camel routes using Spring Boot Actuator

2021-05-18 Thread Mark Nuttall
Yeah. This seems odd. I was looking at this on my phone last night so it was tough to see but see what you are doing now. Hopefully one of the Camel devs will know. On Tue, May 18, 2021 at 5:43 AM Simon Loy wrote: > Thanks for responding Mark, > > To clarify I can change the logging

Re: Update Logging Levels of Camel routes using Spring Boot Actuator

2021-05-17 Thread Mark Nuttall
It looks like your route Builder classes in the root package. That usually is not good as if that's the case. I suggest moving it to the same package as the controller. I don't know if that will make any difference but sometimes having classes in the root package causes issues. Other than that I ca

Re: kafka consumer to kafka producer parition key issue

2021-04-19 Thread Mark Nuttall
mel called "KafkaConstants.PARTITION_KEY" if you want to set it to a particular partition by number. The docs are correct in that it is the partition the message will be assigned to. There is also constant called KafkaConstants.PARTITION but it is for consumers. Thanks for helping me think through this Omar.

Re: kafka consumer to kafka producer parition key issue

2021-04-19 Thread Mark Nuttall
Setting the message key does not help. :( On Mon, Apr 19, 2021 at 11:20 AM Mark Nuttall wrote: > I've never set the message key. I might give that a shot. > > The route is pretty simple. And the only headers being set are the > partition key and another string value i need

Re: kafka consumer to kafka producer parition key issue

2021-04-19 Thread Mark Nuttall
- 2 partitions. Mark On Mon, Apr 19, 2021 at 4:14 AM Omar Al-Safi wrote: > Hi Mark, > > When you send your message to Kafka, do you as well set the message key or > you just set the partition key? Perhaps it would be great if you can post > an example for your route with the headers/bod

kafka consumer to kafka producer parition key issue

2021-04-16 Thread Mark Nuttall
and it worked. Has anyone else seen this? Any ideas? I do have a work around (i.e. use Spring's kafkaTemplate.). Mark

Re: Camel Springboot + telegraf-plugin + Grafana

2021-03-30 Thread Mark Nuttall
It directly into influxdb On Tue, Mar 30, 2021, 4:54 PM SRIKANT MVS wrote: > Thanks Mark, Let me look into the springboot metrics. > > -Regards > Srikant > > On Tue, Mar 30, 2021 at 7:07 PM Mark Nuttall wrote: > > > Also if you are using routes to call Kafka o

Re: Camel Springboot + telegraf-plugin + Grafana

2021-03-30 Thread Mark Nuttall
Also if you are using routes to call Kafka or external http or whatever then you will have metrics for that provided by camel metrics On Mon, Mar 29, 2021, 6:05 PM SRIKANT MVS wrote: > Hi Team, > I want to send metrics from my camel-springboot application to > telegraf-plugins which would furthe

Re: Camel Springboot + telegraf-plugin + Grafana

2021-03-30 Thread Mark Nuttall
You should use spring boots metrics support On Mon, Mar 29, 2021, 6:05 PM SRIKANT MVS wrote: > Hi Team, > I want to send metrics from my camel-springboot application to > telegraf-plugins which would further be visible in the Grafana dashboard. > This action should happen periodically. > > I hav

Re: Properties in java config

2021-03-18 Thread Mark Nuttall
Based on what you've said, this is a Spring Boot related (ish) issue only because it is loading the properties. I suggest doing this the Spring Boot way and letting the Spring Boot/Apache Camel integration just work. If you've not see how Spring Boot resolves properties - https://docs.spring.io/spr

Re: Azure Blob ignores LIST_BLOB_OPTIONS

2021-01-26 Thread Mark Andreev
listBlobs, please feel > free to send a PR with your proposed fix. > > Regards, > Omar > > On Tue, Jan 26, 2021 at 2:14 PM Mark Andreev > wrote: > > > I found a solution for this issue. When I use Azure Api directly and > > operate with Page all works. It is usefu

Re: Azure Blob ignores LIST_BLOB_OPTIONS

2021-01-26 Thread Mark Andreev
l that list of blobs in > the pages into one list and return that in the body and hence the reason > why you see no effects. I hope Azure will improve the API in the future to > allow alternative options as max results regardless of the pageable list. > > Regards, > Omar > > On

Azure Blob ignores LIST_BLOB_OPTIONS

2021-01-25 Thread Mark Andreev
change.getIn().getBody(List.class).size(); log.info(String.format("Items count = '%d'", itemsCount)); }); How should I use this API to fetch only 5 items? Full example: https://github.com/mrk-andreev/example-camel-azure-blob-pagination-bug/blob/master/src/main/java/name/mrkandreev/camel/MyApplication.java -- Best regards, Mark Andreev

Re: Camel-K / Kafka / Avro: something broke overnight

2021-01-15 Thread mark
k you for confirming the regression, and for preparing a fix. Regards, Mark On Fri, 15 Jan 2021 at 09:23, Omar Al-Safi wrote: > Hi Mark, > > indeed it looks like the additionalProperties option is broken in 3.7.0. I > am pushing a fix for both branches, 3.7.x and master branch. &g

Camel-K / Kafka / Avro: something broke overnight

2021-01-14 Thread mark
rg.apache.camel.quarkus/camel-quarkus-kafka:1.5.0 // camel-k: dependency=mvn:org.apache.avro/avro:1.10.1 // camel-k: dependency=mvn:org.glassfish.jersey.core/jersey-common:2.22.2 // camel-k: dependency=mvn:io.apicurio/apicurio-registry-utils-serde:1.3.2.Final Many thanks in advance, Regards, Mark

Re: Jetty/Camel-K classpath problems

2021-01-11 Thread mark
This works! Thank you very much Nicola! Regards, Mark On Mon, 11 Jan 2021 at 17:04, Nicola Ferraro wrote: > Hi, > since 1.2 Camel K has moved into using Quarkus as runtime (in 1.3 the old > runtime based on main has been removed). So now it's recommended to use the > Quar

Re: Jetty/Camel-K classpath problems

2021-01-11 Thread mark
uot;:"camel-k.builder","msg":"dependencies: [mvn:org.apache.camel.k/camel-k-quarkus-loader-java mvn:org.apache.camel.k/camel-k-runtime-quarkus mvn:org.apache.camel/camel-jetty:3.7.0]"} Please can anyone give me some advice? I really can't find a way to get this si

Jetty/Camel-K classpath problems

2021-01-11 Thread mark
uot;:"camel-k.builder","msg":"dependencies: [mvn:org.apache.camel.k/camel-k-quarkus-loader-java mvn:org.apache.camel.k/camel-k-runtime-quarkus mvn:org.apache.camel/camel-jetty:3.7.0]"} Please can anyone give me some advice? I really can't find a way to get this simple Integration running, either as Java or Groovy code. Very many thanks in advance! Regards, Mark

Re: EXTERNAL: Re: Can't get routes to Start in SpringBoot / Camel 3.5.0

2021-01-08 Thread Mark Nuttall
> Thank you very much! > > Sincerely, > > Jeremy Cox > Software Engineer > Universal Gateway at Progeny Systems > > Urgent contact: Text 859.322.3214 > Emailjeremy@progeny.net > > > -Original Message- > From: Mark Nuttall [mailto:mknutt...@

Re: EXTERNAL: Re: Can't get routes to Start in SpringBoot / Camel 3.5.0

2021-01-07 Thread Mark Nuttall
if "beans" are not in the package or child package of where teh app class is, it wont find it by default. Mark On Thu, Jan 7, 2021 at 10:02 AM Cox, Jeremy wrote: > Thank you all for the tips. These are good improvements, but the route > still doesn't start. >

Re: Maximum version of Spring Boot for Camel 2.25.2?

2020-08-31 Thread Mark Nuttall
go to start.spring.io/info. It will tell you compatible versions. On Mon, Aug 31, 2020 at 3:42 PM Mikael Andersson Wigander wrote: > I have read somewhere on the site the maximum dependency for Spring Boot > for Camel 2.x but can't find it. > What's the recommendation? > > We have an app heavily

Re: Enabling global CORS support

2020-08-07 Thread Mark Nuttall
I am pretty sure it is because the annotation is Spring and the other is Camel and Spring is in control, not Camel. For a global way with spring, see this - https://spring.io/guides/gs/rest-service-cors/ On Fri, Aug 7, 2020 at 1:57 AM Ron Cecchini wrote: > > Hi, guys. > > I have a Camel (3.4.2)

Re: Unmarshal Map to POJO with Jackson data format

2020-08-04 Thread Mark Nuttall
you could add an inline processor and specifically call the ObjectMapper method you need. Or some variant of that. While it is not an OOTB camel component, it is one less conversion. On Mon, Aug 3, 2020 at 9:49 PM Jeremy Ross wrote: > Hey Sneharghya, > > Thanks, that is my workaround. Just hopin

Re: Prometheus metrics for success/failure

2020-07-01 Thread Mark Nuttall
Failures and exceptions should be identified via logs. Camel will log those. You shouldn't have enough of them to warrant metrics. Premethius is a metrics system. JMX is just a to access things in the jvm. Micrometer will do some of what JMX will do. Camel is going to use micrometer to create the

RE: File component: RemoveOnCommit - Unknown parameter

2020-06-16 Thread Mark Harris
tentReleaseDelay=5000 &delay=10s &include= Mark From: Mark Harris Sent: 17 June 2020 08:39 To: users@camel.apache.org Subject: File component: RemoveOnCommit - Unknown parameter Hello, I'm using Camel v 2.24.2. I have a file route: file:// ?readLock=idempotent &idempote

File component: RemoveOnCommit - Unknown parameter

2020-06-16 Thread Mark Harris
.apache.org/components/latest/file-component.html, the RemoveOnCommit option should be accepted. Can anyone advise as to what I'm doing wrong, please? Thanks for any assistance, Mark

Re: Pause the processing of file

2020-06-12 Thread Mark Nuttall
> > if the route that was consuming messages from the first route is suspended. > does not that mean that there will be no demand now and the first route > will pause generating exchanges? > > > On Fri, Jun 12, 2020 at 5:15 PM Mark Nuttall wrote: > > > The reason the

Re: Pause the processing of file

2020-06-12 Thread Mark Nuttall
The reason the first does not work is because direct routes are just like one method in a class calling another. And stopping the second is like removing the method. What I do when processing the file is read whole file and write to a topic/queue and then have the second route read from the queue.

Re: Camel plugin no longer shows up in hawtio

2020-06-04 Thread Mark Nuttall
Might be a version issue. I had the same problem and that is what it was. Also, debugging is not there unless I drop back camel versions. On Thu, Jun 4, 2020, 7:38 PM Jeremy Ross wrote: > Hey camel folks, > > At some point the Camel plugin stopped showing up in hawtio. I can access > hawtio jus

Re: reactive java question

2020-05-27 Thread Mark Nuttall
Without seeing the actual code I can't say for sure but I would use producer template do you send a message to a direct route and have that direct route to be in the from to start the processing in the route On Tue, May 26, 2020, 10:31 PM Bing Lu wrote: > I have to incorporate a third party api

RE: Cannot acquire read lock within x millis

2020-03-19 Thread Mark Harris
lications. I'm currently using readLock=changed, a readLockMinAge and an inProgressRepository to ensure idempotency in my route URI. Thanks, Mark

RE: Cannot acquire read lock within x millis

2020-03-18 Thread Mark Harris
Hello, Can anyone suggest what the problem is here, please? It sounds like a pretty fundamental issue but I have not managed to find any similar reports (and potential solutions) elsewhere. Thanks, Mark From: Mark Harris Sent: 18 March 2020 14:51 To: users@camel.apache.org Subject: RE

RE: Cannot acquire read lock within x millis

2020-03-17 Thread Mark Harris
ile for several rounds of polling before one of them does. Thanks, Mark From: Mark Harris Sent: 18 March 2020 13:55 To: users@camel.apache.org Subject: Cannot acquire read lock within x millis Hello, I'm encountering the following message in my logs when two instances of a Java applicat

Cannot acquire read lock within x millis

2020-03-17 Thread Mark Harris
how I can fix it, please? I'm using Camel v 2.24.2. Thanks, Mark

RE: REST Reply: convert XML to JSON in Spring DSL

2020-02-12 Thread Mark Lumsden
-to-JSON-td5775980.html> Thanks Madhu for your feedback as well. All the best! Mark From: Michael Kay<mailto:m...@saxonica.com> Sent: 11 February 2020 20:24 To: users@camel.apache.org<mailto:users@camel.apache.org> Subject: Re: REST Reply: convert XML to JSON in Spring DSL There are

REST Reply: convert XML to JSON in Spring DSL

2020-02-11 Thread Mark Lumsden
f the data just using Spring DSL in Camel? I see quite a lot of examples on the web of using Java DSL to use marshaling to do the translation. Any help much appreciated. Mark

RE: sFTP with multiple consumers and idempotent routes: file exceptions

2020-01-12 Thread Mark Harris
:1985) ~[jsch-0.1.55.jar!/:?] at org.apache.camel.component.file.remote.SftpOperations.deleteFile(SftpOperations.java:480) ~[camel-ftp-2.24.2.jar!/:2.24.2] ... 24 more Mark -Original Message- From: Jan Bednář Sent: 13 January 2020 09:19 To: users@camel.apache.org Subjec

RE: sFTP with multiple consumers and idempotent routes: file exceptions

2020-01-12 Thread Mark Harris
located on an Oracle database. Looking at the Camel documentation: https://camel.apache.org/components/latest/sftp-component.html ... it states that readLock=idempotent is only applicable for the file component, not the sFTP one. Am I missing something? Thanks, Mark -Original Message---

sFTP with multiple consumers and idempotent routes: file exceptions

2020-01-09 Thread Mark Harris
n my setup? I've also tried adding the idempotent repository to the input URI, like this: sftp://@:/?password=&readLock=changed&readLockMinAge=&delete=true&delay=&include=&idempotent=true&idempotentKey=$simple{file:name}&idempotentRepository=#messageIdRepository ... but am getting the same kind of errors. Thanks for any assistance, Mark

Re: Communicating a value between a route and the RouteBuilder class

2019-12-13 Thread Mark Nuttall
I'm not seeing all the code of course but remember that spring beans by default are Singletons. So values set at the class level are not thread safe. On Fri, Dec 13, 2019, 1:05 AM Ron Cecchini wrote: > > On December 12, 2019 at 11:16 AM Claus Ibsen > wrote: > > > > You can also name your RouteB

Re: Spring configuring a bean

2019-08-26 Thread Mark Nuttall
if you have the bean defined in XML and also the one in Java, then what is happening is the Java one is "winning" and say is never set. On Mon, Aug 26, 2019 at 11:24 AM Ron Cecchini wrote: > I apologize ahead of time, because I feel like I've taken a few steps > backward and am now hung up on a

Re: Camel + Spring Boot as a backend?

2019-04-16 Thread Mark Nuttall
I use Spring Boot extensively with Camel. It is a perfect pair for what you are asking about. I have i running locally on servers and also in aws in EC2. Works great both ways. Start by going to start.spring.io and pick Camel and JDBC (or JPA,etc), or if you have IntelliJ or STS you can just use

spring boot http4 basic auth configuration

2018-10-10 Thread Mark Hayen
e 145 to 170. Do I need more/other properties being set? versions used: Spring Boot 2.0.4.RELEASE Camel 2.22.1 Thank you Mark

Re: Java DSL route now needs a MS SQL .to( How do I declare connection info?

2018-07-30 Thread Mark Nuttall
alect=org.hibernate.dialect.SQLServer2012Dialect run app as spring boot app On Mon, Jul 30, 2018 at 2:08 PM, John F. Berry wrote: > I desire NOT to incorporate Spring with the mix I have. I will if that > is the standard way, but not sure how you would do that. > > On Monday, July 30, 2018, 12:29:20 PM

Re: Java DSL route now needs a MS SQL .to( How do I declare connection info?

2018-07-30 Thread Mark Nuttall
Are you using Spring with the Java DSL? Just not sure if you are / aren't. On Mon, Jul 30, 2018 at 11:45 AM, John F. Berry wrote: > Thanks Quinn for the helping hand. > > I've been looking for examples of how to declare the servername/instance > name, username password to utilize a MS SQL endpoi

Re: Spring boot gives null pointer in xml based camel configutaions

2018-06-27 Thread Mark Nuttall
Can you switch to Java routes instead XML? I am deploying Spring Boot Camel Java routes as war's with no issues. On Wed, Jun 27, 2018 at 2:09 PM, David Karlsen wrote: > No - it is not wrong to create .war's: > https://docs.spring.io/spring-boot/docs/1.5.14.RELEASE/ > reference/htmlsingle/#howto-

Re: Cannot send files bigger then 256kb to service bus via amqps

2018-06-22 Thread Mark Nuttall
the following link on stackoverflow seems to indicate it is an Azure service bus limitation https://stackoverflow.com/questions/22384193/azure-service-bus-message-size-technology-limit-and-pricing On Fri, Jun 22, 2018 at 10:09 AM, Tunikov, Eugeniy wrote: > I am new to camel framework so I canno

RE: JdbcMessageIdRepository and SQL Server: schema

2018-06-18 Thread Mark Harris - ICT
. Mark -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Monday, 18 June 2018 23:12 To: users@camel.apache.org Subject: Re: JdbcMessageIdRepository and SQL Server: schema Hi You can either create the table before-hand yourself in the right schema. Or you can try

JdbcMessageIdRepository and SQL Server: schema

2018-06-17 Thread Mark Harris - ICT
do this. For other Java projects using JPA, I have used a similar approach and can add database schema configuration when I set up my javax.persistence.EntityManagerFactory. Can I do something similar for Camel's JdbcMessageIdRepository? Thanks for any assistance. Mark Harris - Software Dev

Re: Need some very lite help

2018-05-11 Thread Mark Nuttall
My suggestion is to use camel with spring boot. They are a fantastic combo. And make getting up and running easy. On Fri, May 11, 2018, 5:55 PM Michael Joyner wrote: > Hi all! I am moving from Mulesoft to Camel. I was wondering if there was > anyone that could help professionally with TalendESB

Re: Recommendation/Best Practice for shutting down Camel Spring Boot App

2018-04-04 Thread Mark Nuttall
even though your app is not a web app, adding "web" and actuator add value for things like metrics and health status and things like this. Why not just add those two items? That is what i do. And fyi, you might ask this on the spring forums as this really is a Spring Boot question. On Wed,

Re: Enabling message tracing using Jolokia

2018-04-02 Thread Mark Nuttall
this seems like a hawtio question. Maybe try this. I only just saw it so i have not tried it. https://github.com/hawtio/hawtio/tree/master/hawtio-sample-springboot On Mon, Apr 2, 2018 at 3:37 PM, Reji Mathews wrote: > Hi guys > > I am currently deploying camel routes as springboot apps. Is th

Re: Spring Boot 2

2018-03-02 Thread Mark Nuttall
I will help test. I have quite a few things using Spring Boot and Camel and would like to update as soon as i can :) On Fri, Mar 2, 2018 at 10:01 AM, Claus Ibsen wrote: > Hi > > Well when 2.21 is out the door and its 2.21.x branch is setup, then we > would likely fairly quickly get the master br

Re: Apache Camel vs Apache Storm

2018-02-15 Thread Mark Nuttall
What is it that you are trying to do? There is a plethora of projects on Apache.org. Some do sort of the same thing. Some do some of the same things. Some don't. On Thu, Feb 15, 2018 at 4:30 PM, Guillermo Castro wrote: > Apache Storm is a distributed real-time computation system whose main > pur

Camel websocket ping/pong

2017-12-08 Thread Mark
ent, so is that my only option? Thanks, Mark

Re: netty4-http increase max content length

2017-11-29 Thread Mark
Consulting > mcoch...@redhat.com > (419) 543-0531 > > On Wed, Nov 29, 2017 at 10:02 AM, Mark wrote: > > > Sorry to be a pest, I still cannot figure out how to get the netty > > component to handle more than 1 MB. I've tried all sorts of > configuration > > op

Re: netty4-http increase max content length

2017-11-29 Thread Mark
}") ; After setting all of these properties I still can't upload more than a 1 MB file. Does anyone know how I can properly configure the netty4-http component to support larger files ? Thanks, Mark On Tue, Nov 28, 2017 at 11:22 AM, Mark wrote: > I am trying to create a Camel ba

Jetty POST multipart parsing

2017-11-28 Thread Mark
I have a REST DSL route where I will be receiving binary files via HTTP POST. The data comes in to the Camel route, but the body contains the Boundary data, and content data like this: --WebKitFormBoundarynB8xvLY3l8fNLpcG Content-Disposition: form-data; name="filename"; filename="attachment"

Re: Restconfiguration using Servlet with Camel in OSGI Karaf

2017-11-28 Thread Mark
If I'm understanding your deployment correctly, you just need to make sure the proper camel bundles/features are deployed. What OSGi container are you using and what do your logs say? On Tue, Nov 28, 2017 at 12:35 PM, Claus Ibsen wrote: > Sorry for being a bit short on details, but I dont have

netty4-http increase max content length

2017-11-28 Thread Mark
I am trying to create a Camel based REST endpoint that will need to consume file uploads greater than the default 1 MB limit. I created my REST configuration using the following code: restConfiguration() .component("netty4-http") .bindingMode(RestBindingMode.off) .contextPath("whateve

Re: Problem with upgrade from camel 2.19.3 to camel 2.20.0

2017-10-24 Thread Mark Nuttall
ervices > object is empty (null). Which thereby causes and expection at line 66 > which is > >Endpoint ep = theRoute.getEndpoint(); > > I am wondering if there any specific call which adds all routes to the > camelcontext differently in 2.19.x compared to 2.20.0 ? &

Re: Problem with upgrade from camel 2.19.3 to camel 2.20.0

2017-10-24 Thread Mark Nuttall
Oh. i missed the "complex use case". Of the code you provided, what is line 66? On Tue, Oct 24, 2017 at 11:47 AM, Mark Nuttall wrote: > Is there any reason you are not using the standard Spring Boot + Camel > mechanisms to create the context and routes. I don't readily s

Re: Problem with upgrade from camel 2.19.3 to camel 2.20.0

2017-10-24 Thread Mark Nuttall
Is there any reason you are not using the standard Spring Boot + Camel mechanisms to create the context and routes. I don't readily see any in your code. Doing so might resolve the problem. Let me know if you need help with that.. Mark On Tue, Oct 24, 2017 at 9:36 AM, Dicken George

Re: camel-websocket -- how to close websocket

2017-10-18 Thread Mark
test code and find out what it does. > > > > On Tue, Oct 17, 2017 at 9:15 PM, Mark wrote: > > I'm using Camel 2.16, which is a part of Servicemix 6.1.1. I'm using the > > camel-websocket component and I'm trying to figure out how websocket > > conn

camel-websocket -- how to close websocket

2017-10-17 Thread Mark
I'm using Camel 2.16, which is a part of Servicemix 6.1.1. I'm using the camel-websocket component and I'm trying to figure out how websocket connections are closed. I'm debugging my application and I'm concerned that I'm leaking websocket connections. I don't see anything in the code that indic

Re: Camel Spring Boot: Bean initialization skipped in auto-configuration

2017-10-12 Thread Mark Nuttall
d. :( Maybe it doesn't anymore? :) I was only trying to figure out what might possible cause the issue he was seeing. And also to give him a work around. On Thu, Oct 12, 2017 at 8:27 AM, Claus Ibsen wrote: > On Thu, Oct 12, 2017 at 2:20 PM, Mark Nuttall wrote: > > well that does sound

  1   2   3   4   >