I conducted a series of experiments.
Normal JUnit, without OSGI. Creates 2 Camel Context.
The first contains
The second contains not a single RouteBuilder. Create only ProducerTemplate
and send body.
JUnit shows stable performance.
Go to the Apache Karaf.
The first component can be built on
I did not see the problem. It is clear the list "direct-vm".
How to use camel-scr affects the "direct-vm"?
--
View this message in context:
http://camel.465427.n5.nabble.com/Stop-component-direct-vm-from-another-OSGI-camelContext-tp5794194p5794330.html
Sent from the Camel - Users mailing list a
Thanks Claus.
I looked implementation camel-scr. I found there
Here the problem lies elsewhere. DirectVmComponent erases data endpoints
list
For this purpose, it uses the counter
First CamelContext adds new endpoint (consumer) "direct-vm". Create new
component (DirectVmComponent). The counter
Opened error on this topic https://issues.apache.org/jira/browse/CAMEL-10880
--
View this message in context:
http://camel.465427.n5.nabble.com/Stop-component-direct-vm-from-another-OSGI-camelContext-tp5794194p5794280.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Got a call stack is a list of all the cleaning system "dicect-vm"
In the mode "debug" error caught a third call karaf shell command.
--
View this message in context:
http://camel.465427.n5.nabble.com/Stop-component-direct-vm-from-another-OSGI-camelContext-tp5794194p5794273.html
Sent from th
I added to the code
Camel Karaf commands work.
First time doing team
No errors.
For the second time running the command. An error.
Routing code
The second time I launch the command
Indicates that all works.
Why error occurs DirectVmConsumerNotAvailableException?
--
View this message in c
Command context-list extend class CamelControllerImpl.
This class find OSGi services
Used OsgiDefaultCamelContext class is not a service. Why do his service?
Where is it written that it is necessary to register it as a service?
Where can I see an example of how this is done?
http://camel.apache.o
I use Apache Karaf 4.0.7.
Camel karf commands do not work.
Or when I did not think to stop running components.
First OSGI bundle use dynamic OSGi components.
The class is an analogue of the standard Bundle activator.
Second OSGI bundle use Karaf Shell annotation.
First OSGI bundle defines sever
In the first OSGI bundle is multiple camel routes.
Camel karaf command do not work
camel:context-list
camel:component-list
camel:route-list
I stop and will start component (OSGI bundle stop and start).
Fires once. After 5-6 seconds, I repeat. Again, it does not work.
The first way should not af
There are two OSGI bundle.
First OSGI bundle
from("direct-vm:makeDoc")
.bean(loacalBean, "make");
Second OSGI bundle
void execute(String entityGuid) {
SimpleRegistry registry = new SimpleRegistry();
BundleContext bundleContext =
FrameworkUtil.getBundle(ImportDoc.class).getBundl
Excuse me. Maybe I did not quite understand spoken. Or someone does not quite
understand.
On page http://camel.apache.org/file-language.html
file:modified - Refers to the file last modified returned as a Date type.
Writing
idempotentKey=${file:name}-${file:size}-${file:modified}
"file:modified
Do you think that a complete rejection of the parameters "idempotent"
corrects errors?
https://issues.apache.org/jira/browse/CAMEL-6574
https://issues.apache.org/jira/browse/CAMEL-6936
Enjoying http://camel.apache.org/file2.html
idempotentKey=${file:name}-${file:size}
Good. Enjoying http://camel.
Please help to understand the work with thread pools.
System Log
The first 2 lines are clear. I do not understand the last line. The process
is not performed in the thread pool, while the main stream.
Regards, Alexey.
--
View this message in context:
http://camel.465427.n5.nabble.com/under
In the file camel-core-2.17.1.jar, internal file META-INF/MANIFEST.MF have
row
Ignore-Package: com.googlecode.concurrentlinkedhashmap
but this package use in class org.apache.camel.util.LRUCache.
It's errror for OSGi.
Add this package to parameter Import-Package, or change usage classes
Concurr
Explain why the assembly 2.17.1 by May August 2016, the class
org.apache.camel.util.LRUCache differs from
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
?
Last Update 1f48a57 on 31 Mar @davsclaus davsclaus CAMEL-8602: Java 8:
ConcurrentLin
Clause, did not help the registration system component "servlet 2".
The system still will take a component called "servlet".
I think it is necessary to replace
In this case bothers me a little higher in the condition statement "if".
I found a solution:
Call method endpointProperty.
You're corr
Thank you, Claus Ibsen-2.
I will try to register the component Servlet Component with the new name
"servlet2".
The fact that I use only one servlet in one CamelRoute.
I think it will be interesting. Make several restConfiguration for different
servlet.
The idea is that you can make a few RouteBuil
>From route builder
component("servlet") use ServletComponent.
How to specify the correct servletName?
--
View this message in context:
http://camel.465427.n5.nabble.com/OSGi-CamelHttpTransportServlet-error-tp5774062p5774094.html
Sent from the Camel - Users mailing list archive at Nabble.com.
One OSGi bundle can be regarded as a WAR or EAR module in the JavaEE server.
I'm talking about the fact that in different modules can not use servlets
with the same name.
The fact that the component camel-servlet comprises a static cache
And he's one for all the modules.
Something similar can be c
I use two different OSGi component.
Each writing
I see an error
It turns out that the two OSGi components must not only be different version
of the component, but also the name of the servlet.
This is clearly a mistake.
The second error
I give unique names to each servlet.
I see an error
I use a bunch of Apache Karaf and Apache Camel.
At the beginning of the road I used OSGi Blueprint.
Over time, the Blueprint gave up and switched to Dynamic Services.
Spring DS - a type of OSGi Blueprint. It was quite a compelling reason
authors
abandon basic Spring DS in OSGi. This is the main re
I tried to implement a mechanism to limit the list of files.
If the system is switched to the third depth of the file system, it is
necessary to process all the files and subdirectories.
For this purpose, it is necessary to register the new component.
An example implementation is shown below
Why
I propose to extend the value eagerMaxMessagesPerPoll in file/ftp consumers.
eagerMaxMessagesPerPoll = true
eagerMaxMessagesPerPoll = false
eagerMaxMessagesPerPoll = reach
eagerMaxMessagesPerPoll = overcome
The values of "reach" and "overcome" give a chance to correct sorting of
files in a sing
Try replacing the Multicast on the Recipient List with
parallelProcessing=true.
Multicast:
The Multicast allows to route the same message to a number of endpoints and
process them in a different way.
Recipient List:
The recipients will receive a copy of the same Exchange.
--
View this message
We had to repeat the feat, as described in the file
https://github.com/apache/camel/blob/master/examples/camel-example-servlet-rest-blueprint/src/main/resources/OSGI-INF/blueprint/camel.xml
And this is called "then Camel will lookup if there is a Camel component
that integrates with the Rest DSL".
I had a problem similar to
http://camel.465427.n5.nabble.com/Problem-with-Camel-rest-in-OSGi-td5758649.html
Read Wiki https://cwiki.apache.org/confluence/display/CAMEL/Rest+DSL
The Camel Rest component to use for the REST transport, such as restlet,
spark-rest. If no component has been explicit c
An exemplary work plan Ftp consumer.
As we can see, at the beginning of a connection to the server.
FTPClient establishes a new connection for a list of files in each
directory.
At the end of the first connection is switched off.
Why hold the first connection?
Another question.
Some directorie
Yes, I tried to find an answer to the question why the process ceases to take
files from ftp server.
The most simple - revert to the old assembly Camel. Lo and behold, the files
were taken.
But just a couple of days. Server file number increased by several hundred.
The system stops to pick up the f
It looks like quite a different matter.
On the server, there is a restriction session. After 10 minutes, the server
connection tearing.
No problem in download speed of large files. Disconnection is the fault of
the strategy routePolicyStopTime. But it's not scary.
The main problem is to read a lar
File etc/org.apache.karaf.features.cfg
Note line
--
View this message in context:
http://camel.465427.n5.nabble.com/Karaf-with-Camel-2-15-1-CXF-3-0-4-which-Spring-versions-can-be-used-tp5765283p5765369.html
Sent from the Camel - Users mailing list archive at Nabble.com.
A short excerpt from karaf.log.xxx file
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-ftp-2-15-1-return-ftp-error-code-421-tp5765272p5765368.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Honestly. 2.15.0 On this effect is much less than 2.15.1.
I used to
CronScheduledRoutePolicy ftpDocReadRoutePolicy = new
CronScheduledRoutePolicy();
ftpDocReadRoutePolicy.setRouteStartTime(routePolicyStartTime);
ftpDocReadRoutePolicy.setRouteStopTime(routePolicyStopTime);
ftpDocReadRoutePol
Imagine that your FTP directory shows the "C:\Program Files" on Windows or
"/usr/lib" on Linux. There is a very large number of files. Files can not be
deleted.
Process periodically scans all files in all folders, filters, and sorts.
Uses a database table to store the names of files previously trea
On the new version of Apache Camel 2.15.1 started to happen strange errors.
On this version 2.15.0 there is no error.
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-ftp-2-15-1-return-ftp-error-code-421-tp5765272.html
Sent from the Camel - Users mailing list archive a
An incident that is necessary to call a method .end()
from("...")
.filter()
.to("myprocess")
.to("mock.out")
.end();
Your account is perceived as
from("...")
.filter()
.to("myprocess")
.end()
.to("mock.out");
--
View this message in context:
http
Specifically decided to test it out.
Below shows a working example.
CamelContext camelContext;
LocalRouteBuilder builder = new LocalRouteBuilder();
new
DefaultCamelBeanPostProcessor(camelContext).postProcessBeforeInitialization(builder,
"builder");
camelContext.addRoutes(builder);
Why could not p
Part http://camel.apache.org/bean-integration.html
"Spring component scanning mechanism and a is used or a
CamelBeanPostProcessor then we process a number of Camel annotations to do
various things such as injecting resources or producing, consuming or
routing messages."
CamelContext contains a me
Hi
Strange error.
How to test BlueprintPropertyInjectRoute use @PropertyInject.
If you are using OSGi Blueprint, annotations work.
Write
SimpleRegistry registry = new SimpleRegistry();
registry.put("serviceProperties", properties);
CamelContext camelContext = new OsgiDefaultCamelContext(bundleC
I'll wait for the new assembly 2.15.1.
Still hawtio and correct. The new Camel shows no counter calls in Route
Diagram.
Version 2.14.0 show counter calls and changed.
Aleksey
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-catalog-2-15-0-and-karaf-2-4-1-tp5764038p57
Hi
camel-catalog not work
This bundle without package org.apache.camel.catalog.archetypes
I'm get all source Camel from GitHub. No find classes with this package.
Aleksey
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-catalog-2-15-0-and-karaf-2-4-1-tp5764038.htm
You are not faced with the problem of access to GitHUB. Recently, in Russia,
this resource was not available for several days.
This multi-million developers have lost access to their projects.
Well, that someone wrote for GitHUB system blocking parts of sections for
whole regions (countries).
God f
Hi
Please read my opinion on account of Aries Transaction.
See
http://camel.465427.n5.nabble.com/OSGI-Apache-Aries-Transaction-td5760310.html
https://issues.apache.org/jira/browse/ARIES-1279
Another author: https://issues.jboss.org/browse/ENTESB-2244
On the topic of the question. In ARIES-12
I changed the error message.
I think that this is a very serious mistake.
Added test.
When the database returns an error, distributed transaction falls during the
rollback.
Do you think that this behavior is transaction management system correct?
I wondered whether I should leave in OSGI project O
Hi
Working on the project, encountered an error emergency closing the
connection.
The database connection is closed to rollback the entire transaction.
I registered an error
https://issues.apache.org/jira/browse/ARIES-1279
Description contains many quotations from the trace log.
In the comments
Help to understand the following information
karaf@root> camel:route-list
ContextRoute Status
---- --
camel-exchange-oos-dict-read route-exchangeDictRead
Hi Willem.
I would like to delete files whose modification date was more than one
month.
Apache Camel 2.13.0.
FileConsumer skip path '.camel'
How to make FileConsumer read files in these directories?
Parameter "noop = true" does not affect.
Parameter "move = other" are not affected.
--
The process works on a schedule. Recursively searches the directory. Found
files are processed and fall into a subdirectory named '.camel'.
path_a
path_b
path_b_a
.camel
path_b_b
.camel
path_c
path_c_a
.camel
path_c_b
.camel
Camel route:
from(
Look http://camel.apache.org/http4.html
Section: Message Headers.
Aleksey
--
View this message in context:
http://camel.465427.n5.nabble.com/Http4-Set-Header-Content-Type-not-passing-through-to-the-HTTP-Request-tp5746414p5746464.html
Sent from the Camel - Users mailing list archive at Nabble
I never used to separate files in zip archive.
I use a component splitter to read nested XML files.
Example use in spring DSL:
http://stackoverflow.com/questions/20294005/using-zipsplitter-in-apache-camel-spring-dsl
Copy/paste and add comments
...
zipSplitter