Re: Deleting MQ Temporary Queue

2013-04-08 Thread Magnus Palmér
riate. > > We are using Camel 2.10.1 with MQ version 7.0.x > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Deleting-MQ-Temporary-Queue-tp5730231p5730290.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Brgds, Magnus Palmér +46736845680

Re: File Zip compression route

2013-04-08 Thread Magnus Palmér
ssage in context: > http://camel.465427.n5.nabble.com/File-Zip-compression-route-tp3412721p5730481.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Brgds, Magnus Palmér +46736845680

Re: File Zip compression route

2013-04-08 Thread Magnus Palmér
Sorry, you only need Java 7 if you want support for ZIP64... 2013/4/8 Magnus Palmér > Yes, provided you use Java 7 and Camel 2.11... > http://camel.apache.org/zip-file-dataformat.html > > > 2013/4/8 jeff > >> Hi, >> >> I dig this old thread, is there a

Re: Error when using Camel write to Websphere MQ

2013-04-08 Thread Magnus Palmér
esh(AbstractApplicationContext.java:428) > at > > org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) > at > > org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93) > at > org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:186) > at org.apache.camel.spring.Main.doStart(Main.java:140) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) > at org.apache.camel.main.MainSupport.run(MainSupport.java:139) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Error-when-using-Camel-write-to-Websphere-MQ-tp5727817.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Brgds, Magnus Palmér +46736845680

Samples of how you can test none-camel integration solutions using Camel

2013-04-11 Thread Magnus Palmér
esting and I've sometimes picked up on articles in this list that I would have missed otherwise so I thought I would return the favor and hope I don't make too much noise. -- Brgds, Magnus Palmér +46736845680

Re: org.springframework.jms.InvalidDestinationException while trying to place a message on queue

2013-04-12 Thread Magnus Palmér
mel - Users mailing list archive at Nabble.com. > -- Brgds, Magnus Palmér

Re: org.springframework.jms.InvalidDestinationException while trying to place a message on queue

2013-04-14 Thread Magnus Palmér
t; > > > > > > > > > > > > I could see the initialization of exception listener, but it is not getting > invoked on the exception. > > Is this missing something? > > Thanks > Praveen > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/org-springframework-jms-InvalidDestinationException-while-trying-to-place-a-message-on-queue-tp5730697p5730796.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Brgds, Magnus Palmér

Re: org.springframework.jms.InvalidDestinationException while trying to place a message on queue

2013-04-15 Thread Magnus Palmér
The best way is to create a JUnit test that uses ActiveMQ so it can potentially become a part of the source. Using ActiveMQ you will need to make sure that you don't dynamically create new destinations on the fly. http://activemq.apache.org/how-do-i-create-new-destinations.html I think I would the

Re: org.springframework.jms.InvalidDestinationException while trying to place a message on queue

2013-04-15 Thread Magnus Palmér
/core"; brokerName="localhost" id="broker" useJmx="false" persistent="false" start="true" dataDirectory="target/data"> 2013/4/15 Magnus Palmér > The best way is to create a JUnit test that uses ActiveM

Re: CronScheduledRoutePolicy example

2013-04-16 Thread Magnus Palmér
text.stop(); > > } catch (Exception e) { > e.printStackTrace(); > } > > > } > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/CronScheduledRoutePolicy-example-tp5730978.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Brgds, Magnus Palmér +46736845680

Re: Bindy fixed length

2013-04-17 Thread Magnus Palmér
There are examples of how to do it on the Bindy documentation page: http://camel.apache.org/bindy.html Look for the @Link 2013/4/17 fbarbat > Sorry, after I wrote the post I felt it wasn't clear enough too... > I wanted to ask if there was a feature to similar to Hibernate's components > (or B

Re: Bindy fixed length

2013-04-18 Thread Magnus Palmér
It should work, but it doesn't for me. Seems like the BindyFixedLengthFactory does properly notice that I have linked two fields in the middle of my record when it builds the model, but when it does the parsing (unmarshalling) it tries to read all the fields from the main record and not properly t

Re: Bindy fixed length

2013-04-18 Thread Magnus Palmér
A very simple JUnit test, code and description is in the below gist: https://gist.github.com/magnuspalmer/5418305 2013/4/19 Charles Moulliard > Hi, > > Can you provide the code used so we can make a try (unit test using > camel-bindy) and fix if there is an issue please ? As I have created the

Re: How to deploy an executable jar for a standalone camel application?

2013-05-01 Thread Magnus Palmér
I do use Groovy and Gradle with Camel. I haven't used the uber-jar with Gradle though, I am using the fatjar plugin instead - https://github.com/musketyr/gradle-fatjar-plugin You didn't provide any information about which versions you are using, for instance in Camel the ".process { closure }" wor

Re: Help Jaxb

2013-05-29 Thread Magnus Palmér
You use the Spring annotation @Autowire for your ProducerTemplate which is null when you try to use it. You wrote that you don't use Spring? You will need a CamelContext for your route to run in as well. Kind regards, Magnus Palmér 2013/5/29 Bovas > Hi, > > I use camel 2.11,

Re: oracle BPEL vs camel

2012-09-14 Thread Magnus Palmér
As an integration platform I think this article should will scare some people: http://www.jayway.com/2010/05/07/xslt-transformations-in-oracle-service-bus In Sweden it has also been notoriously hard to find competence on Oracle, even from Oracle themselves. http://www.jayway.com/2010/05/07/xslt-t

Re: Logging level for Spring framework

2012-10-22 Thread Magnus Palmér
The log4j config you shared only tells us what log level you have configured for org.springframework classes. I assume your bean doesn't belong to that package. So, what log level is the rootLogger at, what package does your bean class belong to that doesn't log, how is your myCustomAppender confi

Simple convert XML to JSON?

2011-03-26 Thread Magnus Palmér
lling) {"string":"1<\/id><\/a>"} Seems as if I am missing some fundamental understanding of how things work? How can I get my XML to be recognized as XML (which obviously the split and xpath do)? -- Brgds, Magnus Palmér +46736845680

Accessing an exchange header value in the Java DSL

2011-04-28 Thread Magnus Palmér
ess the headervalue as a String. Trying for instance with header(Exchange.HTTP_URI). or with converting a "simple" expression into a string value. What am I missing? -- Brgds, Magnus Palmér +46736845680

Re: Accessing an exchange header value in the Java DSL

2011-04-28 Thread Magnus Palmér
Thanks, didn't think it was related to the enrich itself so missed that. Quite a big red box in the book. recipient list with aggregationstrategy did the trick. I'll have a look at JIRA. 2011/4/29 Claus Ibsen > On Fri, Apr 29, 2011 at 7:58 AM, Claus Ibsen > wrote: > > 2

File permissions on created files and directories - running as webapp under tomcat6 on Ubuntu

2011-06-18 Thread Magnus Palmér
-r--r-- permissions. I need rw-rw-r. I would expect it to work after changing umask from 022 to 002 or 0002 for the tomcat6 user. Anyone know? -- Brgds, Magnus Palmér +46736845680

Re: Disable CertificateValidation when Routing to HTTPS endpoint

2011-06-22 Thread Magnus Palmér
ul. (Using Camel 2.7.2) Kind regards, Magnus Palmér P.S. Yes, I've seen this: http://camel.465427.n5.nabble.com/Using-HTTPS-in-camel-http-when-remote-side-has-self-signed-cert-td473876.html I've also read the http://camel.apache.org/http4.html Tried to make something out of the test sourc

Re: apache came with quartz - no concurrent execution

2011-08-01 Thread Magnus Palmér
In Quartz the first parameter is seconds. To execute every 5 min cron-style use this cron expression (works for me): cron=0+0/5+*+*+*+? Brgds, Magnus Palmér 2011/8/1 dattu.1729 > Hi, > > I am using camel->quartz component. My use case is "Have to merge all > avaliable fi

Re: Disable CertificateValidation when Routing to HTTPS endpoint

2011-08-01 Thread Magnus Palmér
} catch (KeyManagementException e) { logger.error(e); } } } 2011/6/22 Magnus Palmér > Hi, > > I was just about to ask a similiar question after being up all night trying > to get my https4 URI to work. > > I get this: > >> javax.net.ssl.SSLPeerUnver

Re: Custom URIResolver for Camel

2011-08-04 Thread Magnus Palmér
This works fine on Linux (Ubuntu) and Tomcat: xslt:file:///var/opt/projectname/resources/OrderProductResponse.xsl Using it with Java DSL however and not Spring XML DSL, not sure it makes any difference. /Magnus 2011/8/4 shekher awasthi > can you please elaborate what you mean by > " that the fil

Re: EIP pattern for blocking messages or delaying messages

2011-08-04 Thread Magnus Palmér
0 0/10 13 * * ? tells Quartz to trigger att 13:10, 13:20, 13:30, 13:40 and 13:50 You need a stop route as well I use the Java DSL and use both the policy.setRouteStartTime and policy.setRouteStopTime Should be same for Spring XML DSL. To start at 13:10 and end at 13:50 you need CronExpression Sta

Re: Camel and Hadoop First Try

2011-08-04 Thread Magnus Palmér
camel?fileName=epistate.tsv" Also as Christian wrote, you need to add your RouteBuilder to the Camel context. Check out the getting started example perhaps? http://camel.apache.org/getting-started.html (Or even better, the excellent "Camel in Action"-book.) /Magnus Palmér 2011

Re: Problems with the splitter

2011-08-11 Thread Magnus Palmér
The body() in your case is a file it seems. Try to convert it to a String before the split and see if that helps. convertBodyTo(type) or convertBodyTo(type, charset) from(fromUri). log("route complete content: ${body}").convertBody(String.class). split(body().tokenize("@")).

Re: Camel-sent email content goes to an attachment "ATT00001.xml"?

2011-08-11 Thread Magnus Palmér
Yes, happened to me when I started to also add attachments. This solved my problem: message.setHeader(Exchange.*CONTENT_TYPE*, "text/plain"); It worked fine without setting the contenttype at start, but after I added this in my processor the body was also sent as an attachement: ByteArrayDataSou

Re: From http4 via md5checksum to FTP: file cache or streaming ?

2011-08-12 Thread Magnus Palmér
I would make your md5bean return a file. Not sure if the current Jira issue of not cleaning (deleting) the file until JVM stops will apply for you then or not. Don't have the link to it right now. -- Magnus Palmér +46 736 845680 12 aug 2011 kl. 16:51 skrev wing-tung Leung : &g

Re: JAR for IBM MQ

2012-03-26 Thread Magnus Palmér
Hi, If you have WMQ 7 installed on your computer the following environment variable will be set: MQ_JAVA_INSTALL_PATH If you only want to use WMQ as a client, the clients are freely available to download from IBM, think you need to register though. Search for Websphere MQ supportpac. However you s

Re: [Bindy] Having trouble with the "required" field

2012-03-27 Thread Magnus Palmér
I had a project using the Bindy for Camel 2.7.3 that has this code (with 87 fields about the same as the first one): @CsvRecord(separator = "\t", crlf = "UNIX", generateHeaderColumns = false) > public class CsvProduct { > > @DataField(pos = 1, required = false) > private String EAN; I updated my

Java DSL and choice-when error with marshal and jaxb?

2012-03-27 Thread Magnus Palmér
Hmm, can this be a bug perhaps? This works: > .marshal(new JaxbDataFormat("org.example.mypackage")) > .when(header("foo").isEqualTo("bar")) > This doesn't: (Compilation error: The method when(Predicate) is undefined for the type ProcessorDefinition) > .marshal().jaxb("org.example.mypackage") >

Re: [Bindy] Having trouble with the "required" field

2012-03-29 Thread Magnus Palmér
I can confirm, I get the same error as you do when I remove the two last fields at the end of the line as you did. I think this is the where it starts to get wrong: BindyCsvDataFormat.java 138 // Read the line 139 String line = scanner.nextLine().trim(); String.trim(

Re: [Bindy] Having trouble with the "required" field

2012-03-31 Thread Magnus Palmér
e yet)? Kind regards, Magnus Den 31 mars 2012 12:05 skrev Claus Ibsen : > 2012/3/29 Magnus Palmér : > > I can confirm, I get the same error as you do when I remove the two last > > fields at the end of the line as you did. > > > > I think this is

Re: [Bindy] Having trouble with the "required" field

2012-03-31 Thread Magnus Palmér
JIRA ticket created: https://issues.apache.org/jira/browse/CAMEL-5133 Den 31 mars 2012 12:56 skrev Magnus Palmér : > Sure, I can create a JIRA ticket for it. > Will have to set up my dev-environment properly to be able to patch it > though. > It is in my plan to do anyway but s

Re: [Bindy] Having trouble with the "required" field

2012-04-02 Thread Magnus Palmér
Palmér : > JIRA ticket created: > https://issues.apache.org/jira/browse/CAMEL-5133 > > > Den 31 mars 2012 12:56 skrev Magnus Palmér : > > Sure, I can create a JIRA ticket for it. >> Will have to set up my dev-environment properly to be able to patch it >> though. >

Re: Java DSL and choice-when error with marshal and jaxb?

2012-04-04 Thread Magnus Palmér
Ah, thanks, missed that one. Den 4 april 2012 11:24 skrev Claus Ibsen : > Hi > > See this FAQ > > http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html > > There is some limitations how far you can take a DSL in pure Java with > generics

Re: RDF Integration

2012-04-05 Thread Magnus Palmér
Restlet has a RDF extension, maybe that is worth looking into - http://wiki.restlet.org/developers/172-restlet/g2/160-restlet.html There is a chapter of it in the Restlet in Action but I haven't read it yet. I am not into the Semantic Web any time soon anyway. Den 5 april 2012 16:11 skrev Hadria

Re: [Bindy] Having trouble with the "required" field

2012-04-15 Thread Magnus Palmér
According to Willem Jiang it is CAMEL-5018 that fixes this and when I check the 2.9.x branch that change doesn't seem to be in there. Den 11 april 2012 12:22 skrev Aida : > http://camel.465427.n5.nabble.com/file/n5632391/bindyTest.zipbindyTest.zip > > Here I attach my JUnit test and the BindyClas

Re: [Bindy] Having trouble with the "required" field

2012-04-15 Thread Magnus Palmér
Looking at the release note for the 2.9.2 candidate the CAMEL-5018 is not in the fixed bugs list. https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311211&version=12320143 Den 16 april 2012 01:04 skrev Magnus Palmér : > According to Willem Jiang it is CAMEL-5018 that fix

Re: [Bindy] Having trouble with the "required" field

2012-04-16 Thread Magnus Palmér
> Do you mind if you got spare time, to try the 2.9 branch and apply the > patch(es) from CAMEL-5018. > And try out the use-case from Aida to see if it fixes that? > > And it would be nice if a JIRA ticket was created. Then we can track this. > > 2012/4/16 Magnus Palmér : >

camel-test-spring

2012-04-18 Thread Magnus Palmér
I ran into some trouble today when I changed my JUnit test to use @RunWith(CamelSpringJUnit4ClassRunner.class) from camel-spring-test It turned out that a transient dependency had resolved to: org.springframework:spring-beans:jar:3.0.7.RELEASE:compile This one was correct however: org.springframe

Re: camel-test-spring

2012-04-18 Thread Magnus Palmér
In the camel-parent pom: 3.0.7.RELEASE And in camel-test-spring pom: 3.1.1.RELEASE Den 18 april 2012 23:12 skrev Magnus Palmér : > I ran into some trouble today when I changed my JUnit test to use > @RunWith(CamelSpringJUnit4ClassRunner.class) from camel-spring-test > > It turne

Re: camel-test-spring

2012-04-19 Thread Magnus Palmér
spring test? Den 19 apr 2012 03:31 skrev "Willem Jiang" : > There are compiling issue of camel-test-spring with spring 3.0.x, but it > should work by just applying the jar into the class path. > You can override the spring version in your pom this time. > > On Thu Apr 19 05:

Re: How to capture a java out

2012-04-19 Thread Magnus Palmér
I think this is actually what you are looking for, the camel-exec component... http://camel.apache.org/exec.html There is even a Executing Java example in there for you. Den 19 april 2012 15:59 skrev Gnanaguru S : > > Thanks Chris, > > Yes I guessed this could be the component. But logically I d

Re: camel-test-spring

2012-04-25 Thread Magnus Palmér
I don't have an issue with it since I found the work-around. It is more that it took me a couple of hours to figure it out (probably some of it due to inexperience since I first thought I had a problem with my application-context). And is Willem says it is an intermediate problem that will go away

Re: How to set header as RFH1 for ibm mq

2012-06-14 Thread Magnus Palmér
(Not really a Camel specific question.) What version is the WMQ queuemanager? What version is your WMQ jar-files? Pretty sure you can get WMQ V7 and JMS to work with RFH, you might need to use the WMQ native Java API instead. Are you using WMB V6 or V6.1 brokers still or why do you need a RFH?

Re: camel-exec: System Path is empty

2012-06-27 Thread Magnus Palmér
Hello, On Windows I do this (simplified but works): from("direct:exec").to("exec:cmd?args=/C echo echoString" ).to("mock:exec"); That is the exec is my command interpreter, and echo is an argument to the interpreter. (On Windows I need the /C otherwise I just get the data from starting the cmd.ex

Testing Restlet endpoints after refactoring to using servlet container

2012-07-13 Thread Magnus Palmér
After following the "Using the Restlet servlet within a webapp" documentation at http://camel.apache.org/restlet.html I refactored my Restlet endpoints by removing protocol, host and port. So from "restlet:http://host:port/path/{id}"; to "restlet:/path/{id}". This works great when running in a serv

Re: Testing Restlet endpoints after refactoring to using servlet container

2012-07-16 Thread Magnus Palmér
it up to a localhost > 8080 or whatever. > > > > On Fri, Jul 13, 2012 at 2:50 PM, Magnus Palmér > wrote: > > After following the "Using the Restlet servlet within a webapp" > > documentation at http://camel.apache.org/restlet.html I refactored my > >

Re: camel+quartz schedulers

2012-07-19 Thread Magnus Palmér
Unless you are on a very old version the simple trigger will not fire when starting the route (the fireNow property) However if your repeat interval is small it might look like that. What I normally use is the option of delaying the start of the Quartz scheduler itself. Look for "Starting the Qua