camel examples main yaml doesn't work for me

2023-05-11 Thread Fyodor Kravchenko
I have cloned the repository and tried to run the camel-examples/examples/main-yaml executable as stated in the readme (mvn compile, mvn capel:run), but it didn't seem to work. I just didn't print anything. I've also tried to downgrade Camel in the project to the latest Camel 3 which compiled b

Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-14 Thread Fyodor Kravchenko
Hello, in my little test I'm trying the following, public class CamelMainTry {     public static void main(String[] args) throws Exception {     Main main = new Main(); //    this works but I need to catch more // main.configure().withRoutesIncludePattern("deploy/customer/PRIVATE/EXCHA

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
, May 14, 2023 at 5:39 PM Fyodor Kravchenko wrote: Hello, in my little test I'm trying the following, public class CamelMainTry { public static void main(String[] args) throws Exception { Main main = new Main(); //this works but I need to catch more // main.config

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
s! --fedd On 17.05.2023 20:15, Claus Ibsen wrote: Hi Okay for file system, you should favour prefixing with file: main.configure().withRoutesIncludePattern("file:deploy/customer/PRIVATE/EXCHANGE/*.yaml"); On Wed, May 17, 2023 at 3:53 PM Fyodor Kravchenko wrote: Hi, I'm trying to lo

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
load any .yaml file under the "deploy" directory, event those that wasn't loaded at startup, when I touch any of the yamls. Any tips on reloading patterns? Thank you! On 17.05.2023 21:06, Fyodor Kravchenko wrote: Hi, thanks but this . Netbeans

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
nd this does not support an ANT style way and whatnot. On Wed, May 17, 2023 at 8:45 PM Fyodor Kravchenko wrote: I'm sorry please disregard my previous ramblings, moving the "deploy" directory to the working directory of the java app did the "include" trick. It worked withou

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Fyodor Kravchenko
ly used development feature and is likely to be  marked as "will not implement" so let's leave it as it is. On 18.05.2023 09:06, Claus Ibsen wrote: On Wed, May 17, 2023 at 10:59 PM Fyodor Kravchenko wrote: Hi, I'm integrating Camel into my application, or better say,

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Fyodor Kravchenko
} And then create an instance of FileWatcherResourceReloadStrategy which you can configure with folder / pattern etc, and then add this as a bean to camel context. On Thu, May 18, 2023 at 9:39 AM Fyodor Kravchenko wrote: Hi, Thank you! I'm new to the Camel 3 API, can you please

Jetty session handler stopped working when migrating from Camel 2 to Camel 3.20.4

2023-06-06 Thread Fyodor Kravchenko
Hello, this used to work previously but not anymore, lease point on what I'm missing... Java 19 from GraalVM. Below are the code snippets, but the test project in on github, https://github.com/fedd/cameljettyssl (it also tests the SSL which also seized working. Run and try access http://local

HttpMessage.getBody(Map.class) stopped working when migrated from Camel 2 to 3.20.4

2023-06-09 Thread Fyodor Kravchenko
Hello, I've used to rely on this function in older Camel, when I was able to deserialize a regular web form POST stream into a generic java.util.Map, I mean, this used to parse the form data (not multipart, just regular) and convert into a Map: Map map = http.getBody(Map.class); This is my

Re: HttpMessage.getBody(Map.class) stopped working when migrated from Camel 2 to 3.20.4

2023-06-12 Thread Fyodor Kravchenko
Hello people, any ideas how to fix the issue below? -- fedd On 09.06.2023 18:15, Fyodor Kravchenko wrote: Hello, I've used to rely on this function in older Camel, when I was able to deserialize a regular web form POST stream into a generic java.util.Map, I mean, this used to pars

Re: HttpMessage.getBody(Map.class) stopped working when migrated from Camel 2 to 3.20.4

2023-06-14 Thread Fyodor Kravchenko
Account On Mon, Jun 12, 2023 at 7:35 AM Fyodor Kravchenko wrote: Hello people, any ideas how to fix the issue below? -- fedd On 09.06.2023 18:15, Fyodor Kravchenko wrote: Hello, I've used to rely on this function in older Camel, when I was able to deserialize a regular web form POST stream

Re: HttpMessage.getBody(Map.class) stopped working when migrated from Camel 2 to 3.20.4

2023-06-14 Thread Fyodor Kravchenko
StreamCache=true; but that did not seem to change other parts. I did try changing it to a multi-part form and then it showed up as multiple parts attached - but that would mean changing your approach completely. ચિરાગ/चिराग/Chirag ------ Sent from My Gmai

Re: HttpMessage.getBody(Map.class) stopped working when migrated from Camel 2 to 3.20.4

2023-06-22 Thread Fyodor Kravchenko
I added disableStreamCache=true; but that did not seem to change other parts. I did try changing it to a multi-part form and then it showed up as multiple parts attached - but that would mean changing your approach completely. ચિરાગ/चिराग/Chirag ------ Sent from

Jetty HttpServletResponse sendRedirect

2023-06-27 Thread Fyodor Kravchenko
Hello, one of my producers runs a custom script that is allowed to get access to the HttpServletRequest and to invoke sendRedirect method on it. It used to work on Camel 2 but with Camel 3.20.4 Jetty tells this: 16:19:38.178 [qtp987805552-43] ERROR o.a.camel.component.jetty.CamelContinuation

Load route from a yaml in an embedded Camel

2023-08-18 Thread Fyodor Kravchenko
Hello, coudn't find it in the docs... what is the official/semi-official API to load a route definition in a yaml format into the embedded Camel Context? I tried to use camel-main to load them from files but I wanted to have more flexibility as camel-main adds a seemingly unneeded extra layer

Re: Load route from a yaml in an embedded Camel

2023-08-19 Thread Fyodor Kravchenko
how free am I to invent what a getScheme() method returns? /fedd On 18.08.2023 14:15, Claus Ibsen wrote: Hi Yes you can use RoutesLoader to load routes from whatever resource, and whatever DSL. See PluginHelper to get hold of RoutesLoader. On Fri, Aug 18, 2023 at 9:06 AM Fyodor Kravchenko wrot

Parse xml or yaml snippet into a Processor

2023-09-07 Thread Fyodor Kravchenko
Hello, what is the reliable way in a Java program to create a Processor from a String containing a definition of a processor that usually are parts of the route? Camel 4. Like     ${body[0]} or - unmarshal:     csv:   delimiter: ";"   useMaps: "true" Thank you!

Re: Parse xml or yaml snippet into a Processor

2023-09-07 Thread Fyodor Kravchenko
Hello, sorry for duplicating this, somehow it didn't make it through the first time... the question is below On 07.09.2023 11:29, Fyodor Kravchenko wrote: Hello, what is the reliable way in a Java program to create a Processor from a String containing a definition of a processor that us

Re: Parse xml or yaml snippet into a Processor

2023-09-17 Thread Fyodor Kravchenko
tion(e);     }     } On 17.09.2023 12:36, Claus Ibsen wrote: Hi I dont think we understand your question. Can you try to explain this in more detail? On Thu, Sep 7, 2023 at 10:31 AM Fyodor Kravchenko wrote: Hello, what is the reliable way in a Java program to create a Processor from

Jetty and the Invalid SNI

2023-09-18 Thread Fyodor Kravchenko
Hello, I'm missing how do I set up the new Jetty in Camel 4 to let me access the localhost via SSL while developing or when needed for other purposes. I'm getting the "org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI" error. I'm configuring the SSL as the following:     Jett

Re: Jetty and the Invalid SNI

2023-09-21 Thread Fyodor Kravchenko
bsen wrote: Hi Do you really need to use Jetty? If you use Spring Boot or Quarkus they come with HTTP server which you can configure for TLS/SSL more easier than Jetty. On Mon, Sep 18, 2023 at 12:30 PM Fyodor Kravchenko wrote: Hello, I'm missing how do I set up the new Jetty in Camel 4 to

Re: Jetty and the Invalid SNI

2023-09-21 Thread Fyodor Kravchenko
entries in the keystore. -- Alex -Original Message- From: Fyodor Kravchenko Sent: Thursday, September 21, 2023 9:35 AM To: users@camel.apache.org Subject: [EXTERNAL SENDER:] Re: Jetty and the Invalid SNI Hello, I don't really want to use Jetty, but I'm currently migrating my project

HttpServletRequest and Platform HTTP

2023-10-15 Thread Fyodor Kravchenko
Hello, in Camel 2 and Jetty I used to get my hands on HttpServletRequest by     HttpMessage http = exchange.getIn(HttpMessage.class);     HttpServletRequest request = http.getRequest(); , but now I'm migrating to 4.0.1 and platform-http (currently camel-platform-http-main), and

Re: HttpServletRequest and Platform HTTP

2023-10-16 Thread Fyodor Kravchenko
r we don't store the "raw vertx object" that makes this easy with Camel. This needs to be enhanced in camel-platform-http-vertx. On Sun, Oct 15, 2023 at 9:17 PM Fyodor Kravchenko wrote: Hello, in Camel 2 and Jetty I used to get my hands on HttpServletRequest by

Re: HttpServletRequest and Platform HTTP

2023-10-16 Thread Fyodor Kravchenko
a ticket https://issues.apache.org/jira/browse/CAMEL-19994 Yeah check vertx-http docs what it offers https://vertx.io/docs/vertx-web/java/ On Mon, Oct 16, 2023 at 10:12 AM Fyodor Kravchenko wrote: Hi, thanks, I get that. And without the Vertx object, what would be a correct way to obtain

Re: HttpServletRequest and Platform HTTP

2023-10-18 Thread Fyodor Kravchenko
n", "http url of the redirect location"); On Mon, Oct 16, 2023 at 1:17 PM Fyodor Kravchenko wrote: Thank you, Claus, I'll get familiarized myself with the Vert.X internals! In the meantime, there must be some way to "send redirect" (respond with the 302 header) by