yes.. you would extend the routbuilder class. So you could change the behaviour
of the method that creates the route that starts with the direct endpoint.
The better way would probably be to have two direct endpoints and switch
between them via a property.
Best regards
Christian
Christia
Hi Jon,
I would advise against changing the routes at runtime. How about introducing a
direct endpoint and doing the last part of the route in a second method that
can be changed for the test.
Like this:
from("seda:footballMatchCreateCPSAsset")
...
.to("direct:footballMatchEp")
Then in a sepa
amp; Regards,
Madhav
Schneider Christian wrote:
>
> Hi,
>
> it looks like you simply want to convert the xml you receive in the first
> service to xml that is suitable for the other service. I think in this
> case you should not use the cxf component. Instead you should rout
Hi,
it looks like you simply want to convert the xml you receive in the first
service to xml that is suitable for the other service. I think in this case you
should not use the cxf component. Instead you should route from a jetty
endpoint that receives the request to a http endpoint that sends
So I guess it worked for jms and file because the data is serialized using java
serialization. Is that true?
Theoretically you could manually annotate the classes to be serialized with
jaxb annotations. In this case you would not need code generation. Currently
the soap data format does not tr
Is there any reason why you wanted to get rid of the code generation?
Thanks
Christian
Christian Schneider
Informationsverarbeitung
Business Solutions
Handel und Dispatching
Tel : +49-(0)721-63-15482
EnBW Systeme Infrastruktur Support GmbH
Sitz der Gesellschaft: Karlsruhe
Handelsregister: Amt
Hi Fitzgerald,
the Soap Dataformat only works if you generate code for the wsdl. Internally
the dataformat analyzes the generated classes and does the mapping to soap
using these.
Honestly I don´t understand how this should work without the generated classes.
Do you still want to call the rou
Hi Bruno,
in the case of the mail component the endpoint is called MailEndpoint. It will
be able to handle the uri prefixes of smtp, pop3 and imap. As these things are
not so well documented in the wiki you best look into the respective component
source to see how it works programmatically. Nor
Hi Glen,
if you use jaxb then your classes do not have to implement Serializable.
Instead they of course need to be serializeable by jaxb.
Btw. if you want to call a webservice with the jaxb object (Seems so as you add
the soap by using xslt) then you should take a look at the camel soap
dataf
On Fri, Aug 20, 2010 at 5:19 PM, Schneider Christian [via Camel] <
ml-node+2642044-1286332494-102...@n5.nabble.com
> wrote:
> Hi Mohammed,
>
> the class has been renamed to ProducerTemplate. You can find a complete
> example in the distribution. It is named camel-example-spring-
using Came 2.3 Version .. does this version
has camelTemplate class? the reason because i can't import this class inside
my eclipse
Regards,
Yousuff
My Tech Blog: http://passion4java.blogspot.com
On Fri, Aug 20, 2010 at 4:51 PM, Schneider Christian [via Camel] <
ml-node+2642022-6
Basically the following should work:
On the client side:
yourResponse = camelTemplate.sendBody("jms:queue:yourqueue",
ExchangePattern.InOut, yourObject);
On the server side:
from("jms:queue:yourqueue").to("bean:yourbean?method=yourmethod")
The class behind your bean should have the named metho
Could you attach your complete spring config and camel routes (if outside
spring)?
Greetings
Christian
Christian Schneider
Informationsverarbeitung
Business Solutions
Handel und Dispatching
Tel : +49-(0)721-63-15482
EnBW Systeme Infrastruktur Support GmbH
Sitz der Gesellschaft: Karlsruh
I think you could be missing an import statement.
You could try these:
Greetings
Christian
Christian Schneider
Informationsverarbeitung
Business Solutions
Handel und Dispatching
Tel : +49-(0)721-63-15482
EnBW Systeme Infrastruktur Support GmbH
Sitz der Gesellschaft: Karlsruhe
Handelsre
Hi Mark,
you don´t have to set the header by hand. If you use a route for the client
then Camel will automatically create a temporary reply queue, set the header
field and listen for the response.
The code below would allow you to send requests to the direct endpoint that
travel to the jms que
Hi Bruno,
I somtime encountered the error Content not allowed in prolog. This always
happened when the xml parser read a file that contained no valid xml. So it
seems to me you have a file output.txt somewhere that is read and contains no
valid xml.
You could try to put a bean after from that
Hi Claus,
when I use the bean style is it then possible to use ${file:name}? I would
guess this is not possible.
So that means upgrade to 2.3?
Greetings
Christian
Christian Schneider
Informationsverarbeitung
Business Solutions
Handel und Dispatching
Tel : +49-(0)721-63-15482
EnBW Systeme
Hi all,
I got the following problem. I want to configure a file Endpoint using the File
Language that should additionally have Properties replaced. As we are still on
Camel 2.1 we can only use properties in Spring Language Endpoint tags.
So my try was:
The problem is that file:name is not rec
Hi Willem,
can this be the problem that headers in camel are case insensitive since some
2.x version?
Greetings
Christian
Christian Schneider
Team Handel und Risikomanagement
Informationsverarbeitung Business Solutions Trading
EnBW Systeme Infrastruktur Support GmbH
Informationsverarbeitu
Hi,
I have got two queues that listen for SOAP/JMS calls. The calls are
request/reply and expect a reply on a temporary queue.
I want to feed requests from both queues into a common queue to serialize them.
Then I want to listen to the comon queue and process the requests.
The problem is that th
Hi all,
we are using camel and cxf to do SOAP/JMS. The other side is sometimes a
Tibco Business Works system. The problem there is that they use a non
standard header for SOAPAction. In Business works they expect it to be
spelled SoapAction.
To work around this I have written an interceptor for
Hi Willem and Claus,
if you are interested I can prepare a SoapJaxbDataFormat. I propose to add
it to the camel-jaxb component.
I think the goal must be to stay with really easy stuff. For everything more
complex CXF is the much better solution. On the other hand I also try to
understand what the
Hi all,
camel already does a nice job of collecting performance counters for several
objects like routes. I would like to access these statistics from inside the
same process and alternatively also from another process. Currently the only
way I know is using JMX. Of course this is quite a lot of o
Hi all,
I have a system that offer several soap/jms services each on it´s own queue.
For load balancing and fault tolerance the work should be done by several
engines. Each engine can process all service requests but only one request
at a time. The load should be balanced so that no engine is idle
-
Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
Gesendet: Mittwoch, 9. Dezember 2009 12:20
An: users@camel.apache.org
Betreff: Re: File Component: File name from body data
On Wed, Dec 9, 2009 at 12:11 PM, Schneider Christian
wrote:
> Hi all,
>
> we are using the file component to
Hi all,
we are using the file component to write xml data to a file. The xml data
contains an element tradeId. The filename should be derived from the
tradeId.
Is this possible in the camel file component?
I already found the fileName option and the file language. But did not
understand how to a
Nachricht-
Von: Willem Jiang [mailto:willem.ji...@gmail.com]
Gesendet: Donnerstag, 12. November 2009 16:56
An: users@camel.apache.org
Betreff: Re: AW: Problem with jms component inside Eclipse RCP gui
Hi Christian,
Did you install the camel-osgi bundle?
Willem
Schneider Christian wrote:
> Now
Now my service call works but when receiving the response I get a new
exception (see below)
"InvalidPayloadException: No body available of type: java.io.InputStream but
has value: [...@2e86f5 of type: byte[]"
as I also get the warning "java.io.FileNotFoundException:
\org\apache\camel\converter" I
)721-63-15482
Mail: christian.schnei...@enbw.com
Sitz der Gesellschaft: Karlsruhe
Handelsregister: Amtsgericht Mannheim HRB 108550
Vorsitzender des Aufsichtsrats: Dr. Bernhard Beck
Geschäftsführer: Jochen Adenau, Dr. Peter Krampf
-Ursprüngliche Nachricht-
Von: Schneider Christian
I currently try to port a Swing GUI to Eclipse RCP. In the old GUI we
already use a CXF service over the camel jms transport.
In Swing the service call works without any problems.
In the new Eclipse RCP GUI we use the same applicationContext that worked in
the Swing case. We use the cxf and camel
Hi Carlo,
I think the main question for you is: Do you want just remoting inside one
application (client and server are inside the same release unit), or do you
want to offer services to another application?
If you want simple remoting then you can directly expose your business
objects. In this c
Wed, Nov 4, 2009 at 2:56 PM, Schneider Christian
wrote:
> Hi Willem,
>
> that is fine with me. I have closed the ticket.
>
> I have another exception problem though. I want to define a rule for the
> other exceptions that should not return a fault. I want these exceptions
to
&
: Problem with SOAP/JMS and transactions
Hi Christian,
I saw the issue and submitted a patch for it.
BTW, I think onException is a good way to resolve your customer
exception issue.
Willem
Schneider Christian wrote:
> Hi Willem,
>
> I have built a camel-cxf module that includes your pat
getContent(OutputStream.class);
camelExchange.getOut().setBody(outputStream.getBytes());
getLogger().log(Level.FINE, "send the response message: "
+ outputStream);
Schneider Christian wrote:
> Hi Claus,
>
> I have replaced the cxf server with the fo
getContent(OutputStream.class);
camelExchange.getOut().setBody(outputStream.getBytes());
getLogger().log(Level.FINE, "send the response message: "
+ outputStream);
Schneider Christian wrote:
> Hi Claus,
>
> I have replaced the cxf server with the fo
[mailto:claus.ib...@gmail.com]
Gesendet: Montag, 2. November 2009 14:56
An: users@camel.apache.org
Betreff: Re: AW: Problem with SOAP/JMS and transactions
On Mon, Nov 2, 2009 at 2:47 PM, Schneider Christian
wrote:
> Hi Willem,
>
> I also suspected it has to do with CXF Wrapping the Exceptio
camel-jms
component roll back.
Maybe we need to find another way to resolve your issue.
Willem
Schneider Christian wrote:
> Hi Willem,
>
> I have adjusted my applicationContext but still my message gets
acknowledged
> instead of being rolled back.
>
> My service impl contains:
&g
Hi Willem,
I have adjusted my applicationContext but still my message gets acknowledged
instead of being rolled back.
My service impl contains:
throw new RuntimeException("Test for transaction");
Any idea what still goes wrong?
Greetings
Christian
My applicationcontext now looks like
: Re: Problem with SOAP/JMS and transactions
On Mon, Nov 2, 2009 at 12:02 PM, Schneider Christian
wrote:
> Hi,
>
> I am currently trying to get transactions for SOAP/JMS running. I am using
> camel-cxf for SOAP handling and camel-jms for jms connections.
>
> I have a request reply s
Hi,
I am currently trying to get transactions for SOAP/JMS running. I am using
camel-cxf for SOAP handling and camel-jms for jms connections.
I have a request reply service that should be able to do three different
things:
- no exception occurs in the implementation: The jms Message should be
c
40 matches
Mail list logo