Not sure if I got your requirements right.
How about going a plain XSL way (no java mapping)? Doing everything in XSL and
using a generic template for address mapping. You could import it as needed and
overide as needed.
Cheers, Thomas.
Am 21.11.2013 um 03:13 schrieb Andrew Thorburn
In D10B CNI Segment I Need to control the decimal format while encode and
decode.
i.e. For some segments i don't need any Decimal Points and for some segments
i need Decimal Points.
e.g. For D10B IFTDGN SEGMENT7/CNI i don't need any decimal precision but the
D10B CUSEXP SEGMENT7/CNI i need
Our Apache Camel route
route
from uri=file:/from1
to uri=bean:messagePersistProcess?method=persistToDatabase/
to uri=activemq:queue:edi.dest1 /
/route
route
from uri=file:/from2
to uri=bean:messagePersistProcess?method=persistToDatabase/
Thanks Claus for quick response.
Claus Ibsen-2 wrote
Very often the component creates the endpoint using an uri, and therefore
you have the uri already.
Can you point me to some sample components that create the endpoint using an
uri
--
View this message in context:
Every component we ship does that, as they have a xxxComponent doing that.
For example LogComponent from camel-core etc.
On Thu, Nov 21, 2013 at 10:12 AM, manchandap manchan...@yahoo.com wrote:
Thanks Claus for quick response.
Claus Ibsen-2 wrote
Very often the component creates the
Respected Camel Experts,
We are exploring the use of camel as an integration framework for our web
application that runs on the JBoss. We plan to keep the interface between web
app and camel clean, so web app-camel interaction would primarily happen over
JMS (queues and topics).
As far as
Logged ticket to include this in Camel 2.13
https://issues.apache.org/jira/browse/CAMEL-6989
For current Camel versions you can add a custom
org.apache.camel.spi.LifecycleStrategy and use its callbacks for when
routes is added. Then you can likely do some init logic there as well.
On Sat, Nov
Thanks for your continued support on this Claus,
I think a better way to create an Endpoint is to use the following
constructor rather then overriding the createEndpointUri() method. This
would help to keep the same info at one place.
DefaultEndpoint(String endpointUri, Component component)
I was planing to submit a patch but deadlines have been insane. Its on my
to-do list. :) probably next week or week after.
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn:
Figured it out only a few minutes ago. Basically the classes are not in the
WAR since they are from the actual JBoss libraries so it doesn't bind them.
Rather than chase dependencies, I can just use the actual JNDI name in
JBoss for this. Apparently when the ServletContextListener comes up, the
If you want to create a custom Camel component, then it can be a good
idea to use the Maven archetype tooling for that, which creates a
sample component all setup and ready to use as base for developing the
component.
http://camel.apache.org/camel-maven-archetypes.html
On Thu, Nov 21, 2013 at
Can you try switching the order of onException and transaction
On Thu, Nov 14, 2013 at 1:11 PM, jguerra jg.gue...@gmail.com wrote:
Hi,
It was just to check on this thread to see whether this is an issue.
Does anybody know a workaround for this problem?, Is this a Camel issue?
Thanks
Hi
Yeah we love when other projects integrate with Camel. And not always
Camel having to integrate with you.
So good luck with the integration of these two ASF projects.
And let us know how it goes.
We have a list of external components at the bottom of this page
When I am running my routes in jboss and tracer is logging I get to a point
where I generate an Excel file for the customer and then the tracer vomits
blood as it tries to write the unprintable body to the screen. See the log
below my sig.
I think about how this could be solved and I think the
I also found an infinite loop if a component loads an XSL stylesheet
which has an invalid XPath function (e.g. xsl:value-of
select=ext:format($a 'b') / - there should be a comma between $a
and b: ($a, 'b')), which didn't seem to stop when I shutdown the
route (I don't recall seeing anything in the
Hi All,
I'm newbie for camel and now in the middle of developing application that
will do some processes as below :
1. There are 2 apps : 1st is java web apps and 2nd is camel apps
2. So, in this java web apps, actually will display on UI some datas. This
datas are taken from file. So, let
Hello all!
In this specific application of Camel, we have the requirement of writing as
much as possible message processing code in Python/Jython.
This took me to transform and python. The solution would look like (we
are using Camel 2.12.1 and Jython 2.5.3):
...
tranform
Claus, thank you very much. Let me know if you need more details.
Cheers,
AP
--
View this message in context:
http://camel.465427.n5.nabble.com/Transform-Camel-and-null-message-bodies-tp5743617p5743640.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I am working on a project where I have to invoke a SOAP service every 30
seconds and retrieve some information. As of now I have been using Camel
timer component to poll and then invoking a bean where I am performing my
SOAP call. I was wondering if there is a better way possible within Apache
Camel version = 2.12.1
I'm using camel to implement an http proxy. streamcache is enabled but when
a client submits a http file upload request the following exception occurs.
The proxy is working great for all other requests. Does streamcache support
binary file upload? Is there any other
You can write a POJO with a method that extracts the prefix. And use
the method on the POJO as the correlation expression.
Though if you do not want to write java code, you may try your luck
with a regular expression and use the simple language with the regexp.
Or try any of the other scripting
Hi
Ah yeah sounds like contentCache also caches the created expression
from the jython script.
And depending how that is implemented in jython it may leave data from
last evaluation.
Not sure if there is a reset method.
Otherwise we cannot really optimize this in Camel and would need to
create
You can configure the move option to change its name as well.
You can find examples at the file component doc
http://camel.apache.org/file2
On Thu, Nov 21, 2013 at 1:40 PM, Ali, Mohammad
mohammad.a...@genpact.com wrote:
Hi,
Is there an option in camel file component to rename a file before
My scenario is the following: I got responses from several processes. Each
response has contains an ID and Result. For example:
ID=1, Result=42
ID=2, Result=77
ID=1, Result=11
I would like to merge responses with the same ID and print the results.
There should be a timeout, e.g., 5
What do you need to do in the jython code? It seems you are not doing
a message transformation, but want to execute some script or use it as
a predicate?
request.headers['MyHeader']='Something'
seems like a predicate?
If you want to run a script you can use the language component and set
A simplified problem would be: How to aggregate messages with the same
prefix?
I could simply pass strings such as 0001:52, 0001:11, 0002:44. Is there a
way to take a substring of the stream:in and use it as the header
(correlationExpression)?
Many thanks,
CS
--
View this message in context:
Hello Claus, thank you!
For the time being, we only need to inject new message headers, read
existing ones, etc.. But in the future we might have requirements to change
the body, for example.
Reading the language component documentation, it seems to do exactly what we
need! I also tried it and
Logged a JIRA ticket
https://issues.apache.org/jira/browse/CAMEL-6995
On Thu, Nov 21, 2013 at 5:22 PM, Claus Ibsen claus.ib...@gmail.com wrote:
Hi
Ah yeah sounds like contentCache also caches the created expression
from the jython script.
And depending how that is implemented in jython it
Thanks a lot Claus.
I followed the approach given by you and it works fine.
Cool.
Thanks,
Amit
--
View this message in context:
http://camel.465427.n5.nabble.com/Facing-issues-in-using-Camel-Loop-tp5743589p5743651.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
Is there an option in camel file component to rename a file before moving to
.camel folder.
I am using camel 2.9.0.
Thanks Regards,
Shadab
This e-mail (and any attachments), is confidential and may be privileged. It
may be read, copied and used only
by intended recipients. Unauthorized
I have found that onException must always be first other than perhaps
routeId
On Thursday, November 21, 2013, Claus Ibsen wrote:
Can you try switching the order of onException and transaction
On Thu, Nov 14, 2013 at 1:11 PM, jguerra jg.gue...@gmail.comjavascript:;
wrote:
Hi,
It was
Possibly, though I may have to go back to A for some strange cases, which
would rule that out. I also wasn't aware that you could override XSL
templates / imports / etc, so that does make a case for doing it in pure
XSL. That said, how do I reference a template that's in another OSGi
bundle? Do I
32 matches
Mail list logo