Hi Willem,
Can you help out in finding the version of camel in servicemix.
Is there any command for it ?
Regards
Guru
--
View this message in context:
http://camel.465427.n5.nabble.com/META-INF-cxf-tp4974554p4993764.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Williem. I failed to notice. I can see the version when i do features
list.
Thanks again.
Regards
Guru
--
View this message in context:
http://camel.465427.n5.nabble.com/META-INF-cxf-tp4974554p4993775.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Ok guys, thank you for your answers. I'm going to try to use error handling.
@Gnanaguru S, you will probably find what you are looking for at this adress
: http://camel.apache.org/cxf.html , especially the chapter "Configure the
CXF endpoints with Spring"
I'm not using service mix, i use Camel em
Hi
Check your Camel routes as somewhere you are consuming from a HTTP
endpoint, which cannot connect
org.apache.camel.RuntimeCamelException: java.net.SocketException:
Network is unreachable: connect
at
org.apache.camel.component.http.HttpPollingConsumer.doReceive(HttpPollingConsumer
Hi
Can you be more specific. Which version of Camel are you using?
And what Camel components are you using?
The getFromRouteId() is from when the Exchange was *created*, so if
you use some internal in-jvm components
such as seda, direct, vm etc. then the from route id, will still be
from the very
On Thu, Nov 10, 2011 at 2:06 PM, Kai Wähner wrote:
> Hello,
>
> I use Scala 2.9, Camel 2.8.2 and IntelliJ IDEA 10.5. All libraries are
> imported via Maven. Other Scala stuff works well, thus Scala in IDEA seems
> not to be the problem. I also can run a CamelStarter class which starts the
> CamelC
Could you please check our camel route. I have attached the code below. Any
further help would be appreciated as we are not able to move forward.
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:camel="http://camel.apache.org
Hi
The JPA consumer is a bit special as its consuming messages from a
database, as they were from a JMS queue.
So its basically a queue based solution on a database table.
So I frankly think we should alter the concept of transaction, as IMHO
it does not make sense to consume X number of rows fro
+1
That sounds good
Christian
Am 15.11.2011 10:26, schrieb Claus Ibsen:
Hi
The JPA consumer is a bit special as its consuming messages from a
database, as they were from a JMS queue.
So its basically a queue based solution on a database table.
So I frankly think we should alter the concept o
Hi Clause,
even though I'm fully with you that this sounds reasonable I would like to
see this
feature/improvement optional or at least being able to be disabled since
right now
I'm actually using this feature of a complete rollback of all changes done,
because one of the
incoming messages is "cor
On Tue, Nov 15, 2011 at 11:02 AM, Achim Nierbeck
wrote:
> Hi Clause,
>
> even though I'm fully with you that this sounds reasonable I would like to
> see this
> feature/improvement optional or at least being able to be disabled since
> right now
> I'm actually using this feature of a complete roll
Hi Claus,
just saw your proposal and would like to share my idea as well but please
let me get back to you today afternoon (UTC/GMT +1 hour)
in the meanwhile in the case you would have some spare time (which I doubt
:-)) I would really appreciate if you would take a look at [1] to see if I
advise
Hi folks,
Has anyone experiences with configuring camel-snmp-component
for SNMPv3-authentication? I set up a trap-receiver (based on camel) and it
works great with traps send by version 2c of SNMP, but I don't now how to
handle the authentication that comes with version 3.
best,
christoph
Hi All,
Is there a way to stop processing some messages, but not stopping the route?
Regards,
Shadab
***The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged material.
it's like using a content based routing but instead of routing one part of
the content into another route just add a stop to it.
regards, Achim
2011/11/15 Mohammad Shadab Ali
> Hi All,
>
> Is there a way to stop processing some messages, but not stopping the
> route?
>
>
> Regards,
> Shadab
>
>
Please past the java file of com.wipro.camel.StockRouteBuilder.
It is helpful for us to have a full picture of the camel route.
On Tue Nov 15 17:22:48 2011, farha wrote:
Could you please check our camel route. I have attached the code below. Any
further help would be appreciated as we are not ab
It looks your are using the camel internal API to create the route.
Can you show use how the route looks like ?
BTW why do you use the RouteDefintion instead of RouteBuilder to define
the route.
On 11/15/11 10:04 AM, xiangqiuzhao wrote:
i had create two RouteDefinitions, like
RouteDefinition
Hi Claus,
Please clarify.
I created a new project from scratch.
In src i added a wsdl. In pom.xml i specified a cxf wsdl2java codegen plugin
. Then i bundled it and deployed to servicemix successfully. but i was not
able to point the wsdl file through browser. Is there anything else i need
to
On Tue, Nov 15, 2011 at 12:42 PM, Mohammad Shadab Ali
wrote:
> Hi All,
>
> Is there a way to stop processing some messages, but not stopping the route?
>
You can use the .stop() in the DSL, or mark the exchange to stop from Java code.
// mark the exchange to stop continue routing
Thanks Claus.
But would that not stop the route itself? I just need to stop processing few
messages, not stopping the route though?
Regards,
Shadab
-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com]
Sent: Tuesday, November 15, 2011 5:40 PM
To: users@camel.apache.org
Hi,
In response to the above mail my StockRouteBuilder java code is:
public class StockRouteBuilder extends RouteBuilder{
@Override
public void configure() throws Exception {
//StockEndPointService ses = StockEndPointService();
StockEndPointServi
On Tue, Nov 15, 2011 at 1:26 PM, Mohammad Shadab Ali
wrote:
> Thanks Claus.
> But would that not stop the route itself? I just need to stop processing few
> messages, not stopping the route though?
>
The stop() in the DSL will stop further processing the current message.
Likewise if you do that
This is the StockRouteBuilder code:
public class StockRouteBuilder extends RouteBuilder{
@Override
public void configure() throws Exception {
from("cxf:bean:pleaseRoute")
.convertBodyTo(StockBean.class)
.wireTap("file://target/inbox/")
.to("xslt:file:D:
Hmmm.
From: Mohammad Shadab Ali
Sent: Tuesday, November 15, 2011 5:56 PM
To: users@camel.apache.org
Subject: RE: Camel: How to make camel stop processing some messages without
stopping the route.
Thanks Claus.
But would that not stop the route itself?
I am developing a router that it will read data from integration table and
after that it will update a column in integration table. my router is :
from("timer://foo?period=6").setBody(constant("select * from
AIRPORT")).to("jdbc:dataSource").to("jms:queue:airport");
I can see to sql resultse
it is ok but i dont like this solution :(. Beacuse I dont wan to use
JDBCTEMPLATE for update column. Please show me a way for proper solution.
public class RouteDatabaseToJms extends RouteBuilder {
@Override
public void configure() throws Exception {
Take a look at JPA, then you can insert/update by just changing the
details on the JPA entity class.
http://camel.apache.org/jpa
On Tue, Nov 15, 2011 at 2:13 PM, focaldi wrote:
> it is ok but i dont like this solution :(. Beacuse I dont wan to use
> JDBCTEMPLATE for update column. Please show me
Thank you for answer Claus Ibsen, if I would not solve by using jdbc, I will
use JPA. Can I solve this problem with camel jdbc component?
--
View this message in context:
http://camel.465427.n5.nabble.com/How-can-I-update-database-table-by-using-camel-routing-tp4994243p4994400.html
Sent from the
On Tue, Nov 15, 2011 at 3:23 PM, focaldi wrote:
> Thank you for answer Claus Ibsen, if I would not solve by using jdbc, I will
> use JPA. Can I solve this problem with camel jdbc component?
>
You need to use the camel-jpa component instead, if you want to use JPA.
> --
> View this message in co
Thank you for the response.
Below are some more clarifications and my questions:
"Good, dynamic addresses are ok, DNS is ok. However, you need to know the
host names then, right? How do you know those? "
In the digi Connect ware manager we have both IP address and the host name.
We'll send the
On Tue, Nov 15, 2011 at 11:05 AM, Claus Ibsen wrote:
> On Tue, Nov 15, 2011 at 11:02 AM, Achim Nierbeck
> wrote:
>> Hi Clause,
>>
>> even though I'm fully with you that this sounds reasonable I would like to
>> see this
>> feature/improvement optional or at least being able to be disabled since
>
That is what I had originally tried, but then I read that when there is only
one service declared in a WSDL it will resolve to that one and those
attributes are not needed. Regardless I get the same issue when I declare
them explicitly
https://test.salesforce.com/services/Soap/c/22.0";
Can you double check the WSDL file ?
I guess the wsdl is invalided.
On Tue Nov 15 22:58:27 2011, Castyn wrote:
That is what I had originally tried, but then I read that when there is only
one service declared in a WSDL it will resolve to that one and those
attributes are not needed. Regardles
Claus,
cool thanx :)
regards, Achim
2011/11/15 Claus Ibsen
> On Tue, Nov 15, 2011 at 11:05 AM, Claus Ibsen
> wrote:
> > On Tue, Nov 15, 2011 at 11:02 AM, Achim Nierbeck
> > wrote:
> >> Hi Clause,
> >>
> >> even though I'm fully with you that this sounds reasonable I would like
> to
> >> see
Hello,
I've got a very simple question.
I want to copy files from the outbox to an ftp.
So I have the route and it works fine.
But when do I need to close the camelContext?
When I close it too early the ftp might not be finished.
What is the best approach? I dont want to do thread.sleep.
from("f
File Component: how to sort files as WindowsExplorer? 1M Thanks.
Using java, I do:
To get a list of file sorted/ordered as Window Explorer:
1. Use listFiles() and store list of files in a listOfFileName
2. Collections.sort(listOfFileName, new WindowsExplorerStringComparator());
3. listOfFileNam
Hi
You can use a custom sorter with the Camel file component
http://camel.apache.org/file2
See this unit test for an example
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileSorterRefTest.java
On Tue, Nov 15, 2011 at 4:42 PM, H Paul wrot
@Claus
+1 This would be really helpfull.
In addition to the problem you laid out I can tell that consuming 100 rows
-> processing the 70 building a xml payload -> put in on a jms queue and
then on the 71 have an error that rolles everything back ultimately can fill
up the redolog off the db and
The WSDL is generated out of Salesforce.com's platform and should be correct
as they enforce it's construction in their environment against standard
objects.
I uploaded it to my webserver in case you want to look, it's big, but the
service declaration and such all look fine to me, so I am not sure
Hi
You can stop Camel itself from the route when the last file has been
processed. See this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
The file component has a property on the exchange, that tells you if
its the last file.
You can use this code in that FAQ above to call
@Claus,
That's for sure may be not correct, but it's how I see it:
To my understanding in the sense of the CRUD operation one can C, U or D an
entity through the JpaProducer, however
only R through a JpaConsumer, so don't get the point why JpaConsumer should
do entityManager.flush() at all, for
e
Hi,
I'm trying to use Camel as a web service proxy.
I've then configured 2 CXF endpoints :
http://localhost:8088/mockHelloService";
serviceClass="com.test.HelloService" />
and a simple route :
Everything is packaged as a war and deployed in JBoss
Hi,
I am planning to use Camel as a Composite Service Mediator/Routing Engine.
All my back-end services/application are exposed as REST and each one of
them is running in its own jvm. I want to put Camel in front of those
services and expose the composite service per resource/application to the
I am using the moveFailed option for a file, which its endpoint is
bean/method:
from("file://sourceFolder?filter=#MyFilesFilter&moveFailed=error&move=success").to("bean:myParserService?method=parse");
what type of failures - throw an exception or return false - should the
'parse' method returns i
you should just be able to throw any exception that is not explicitly handled
otherwise (with onException(), etc)...see
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveAndMoveFailureTest.java
this unit test ...
oritush wrote:
I found something interesting, if i modify my route to use the CXF MESSAGE
format :
it works... i get my response on my SOAP UI client.
But i'd really like to know why it does not work with the POJO format for
example (same problem with PAYLOAD one).
--
View this me
@Claus
Just had a look at commit
http://svn.apache.org/viewvc/camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java?p2=%2Fcamel%2Ftrunk%2Fcomponents%2Fcamel-jpa%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fcamel%2Fcomponent%2Fjpa%2FJpaConsumer.java&p1=%2Fcamel%2Ftr
Yeah, that's exactly what I also doubted in my previous Post.
--
View this message in context:
http://camel.465427.n5.nabble.com/Misleading-jmx-statistics-on-jpa-component-tp4960503p4995364.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Yes, that's what Camel is for. But I don't quite get the "each one of
them is running in its own jvm" part. Do you think that scales?
Hadrian
On 11/15/2011 12:05 PM, msnathan wrote:
Hi,
I am planning to use Camel as a Composite Service Mediator/Routing Engine.
All my back-end services/appl
Hi,
I am using the below code to read a file and send the processed contents to
MQ.
What I see is that (Using Yourkit profiler) for every message to MQ, a
socket connection is being made.
I suppose that only 1 socket connection should be made.
How do I achive this.
Appreciate your help.
this.g
Currently the back end application has a thin rest service layer. I meant
thin because there is no business logic code in the rest service. The
application has well defined service interface/Implementation(pojo's) which
gets injected in to the rest service.
For scaling up, all those applications
The 4th time for the inner or outer loop?
After the outer loop, could you add a "end()"?
And instead of
cd2.to("activemq:queue:"+dest);
could you please write
cd2 = cd2.to("activemq:queue:"+dest);
Best,
Christian
On Mon, Nov 14, 2011 at 12:04 PM, sub3 wrote:
> Hi,
>
> I have a question about
I just got back to this project and I tried the readLockCheckInterval and it
works fine. I am curious about if I need the "delay" parameter if I'm using
the "readLockCheckInterval". I was using a "delay=15000,
readLockCheckInterval=3 and readLockTimeout=6". I thought this
would check the
See [1]. You have to use "datetime" or "smalldatetime".
And don't overlook the note: "The SQL Server timestamp type is a
fixed-length binary-string type. It does not map to any of the JDBC time
types: DATE, TIME, or TIMESTAMP."
[1] http://msdn.microsoft.com/en-us/library/ms378715%28v=sql.90%29.asp
I used the following definition which works:
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:camel="http://camel.apache.org/schema/spring";
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http:
I figured it out, started back at square one and was diligent about all the
port, bind and service names and it eventually got deployed properly.
Unfortunately this has raised another issue I will post about shortly.
--
View this message in context:
http://camel.465427.n5.nabble.com/CXF-Endpoint
You can also use the SQL component. Have a look into a unit test at [1].
[1]
https://svn.apache.org/repos/asf/camel/trunk/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlRouteTest.java
Best,
Christian
On Tue, Nov 15, 2011 at 6:23 AM, focaldi wrote:
> Thank you for answer C
I recently deployed a camel route with cxf endpoint bean into servicemix.
Everything now deploys fine, but I am running into an issue and was hoping
for some guidance as how to proceed.
I have the following route setup in camel,:
http://0.0.0.0:9191/hotelUpdates"; />
U
my camel version is 2.7.2, and the route use compoment sunlink created
myself.
i configure some endpoints in xml file like:
sunlink component is like a socket server, so my program like:
RouteDefinition routeA = new RouteDefinition();
routeA.from(WXFPH.uri).process(MyProcessor);
routeA.setId("
RouteBuilder can't set a ID to mark the difference routes, how to distinguish
the received message from the different servers listening at two ports, and
i don't know what the difference RouteDefintion with RouteBuilder.
--
View this message in context:
http://camel.465427.n5.nabble.com/why-i-get
You can use the below code to set the user id.
from("xxx").routeId("WXFPF").process(xxx)
BTW, Please make sure MyProcessor doesn't change the routeId.
Willem
On Wed, Nov 16, 2011 at 9:06 AM, xiangqiuzhao wrote:
> RouteBuilder can't set a ID to mark the difference routes, how to
> distinguish
>
your means to use RouteBuilder or RouteDefintion ? what difference? i use
RouteDefintion can't get the correct routeId.
--
View this message in context:
http://camel.465427.n5.nabble.com/why-i-get-the-incorrect-routeId-from-Exchange-tp4993170p4996405.html
Sent from the Camel - Users mailing list
You should use RouteBuilder.
On Wed Nov 16 09:48:24 2011, xiangqiuzhao wrote:
your means to use RouteBuilder or RouteDefintion ? what difference? i use
RouteDefintion can't get the correct routeId.
--
View this message in context:
http://camel.465427.n5.nabble.com/why-i-get-the-incorrect-route
i use RouteBuilder and can't get the correct routeId.
my SunLinkConsumer implement refers to the Mina component, and my
ReceiveHandler like
Exchange exchange = getEndpoint().createConsumerExchange(context, request);
public Exchange createConsumerExchange(SunLinkContext context, SLData data)
{
Can you do some debug yourself, as I don't have any SunLink component
code ?
You can setup some break point in the UnitOfWorkProcessor.
The routeID will be set into the exchange when the process method of
UnitOfWorkProcessor. is called.
On Wed Nov 16 10:53:40 2011, xiangqiuzhao wrote:
i use
It is strange that you just forward a stream object to the cxf producer
which work in POJO data format without doing any marshaling work.
If you don't want to change any thing on the input stream which comes
from the jetty endpoint, you may consider to use the MESSAGE data format
instead of us
I am putting together an example for you, I should be done tomorrow.
There is enough information now to point you in the right direction
(hopefully).
Hadrian
On 11/15/2011 09:40 AM, newbiee wrote:
Thank you for the response.
Below are some more clarifications and my questions:
"Good, dynam
Hi Chris,
Thanks it works. I got confused with the DSL's. adding scemas :(.
Anyhow it works as your code.
Regards
Guru
--
View this message in context:
http://camel.465427.n5.nabble.com/Unable-to-resolve-endpoint-tp4993464p4996715.html
Sent from the Camel - Users mailing list archive at Nab
I want to know how a wsdl can be active and made deployed in a container.
I created a new project from scratch.
In src i added a wsdl. In pom.xml i specified a cxf wsdl2java codegen plugin
. Then i bundled it and deployed to servicemix successfully. but i was not
able to point the wsdl file thro
On Tue, Nov 15, 2011 at 9:22 PM, bbuzzard
wrote:
> I just got back to this project and I tried the readLockCheckInterval and it
> works fine. I am curious about if I need the "delay" parameter if I'm using
> the "readLockCheckInterval". I was using a "delay=15000,
> readLockCheckInterval=3 a
Thanks for your advice Christian, another thanks for Claus :)... I changed my
code like below and it works fine. Now, I wanna ask another question : Which
one is the best solution in your opinion?
public class RouteDatabaseToJms extends RouteBuilder {
@Override
public void configur
71 matches
Mail list logo