Re: MongoDB Jackson Date Mapping Option

2013-02-15 Thread Ron Anderson
Thanks so much for your help - For anyone else trying to solve this I'll show what I ended up doing that worked to map a Java date to a Bson date or ISODate in MongoDB. Created a custom serializer class: public class BsonDateSerializer extends JsonSerializer{ @Override public void serialize(Dat

Re: camel-ssh - SSH keys authentication

2013-02-15 Thread Scott Cranton
I've created an example showing camel-ssh deployed in Karaf using classpath and file based public key security. https://github.com/scranton/example-security-camel-ssh I'll try to clean it up shortly, and submit to camel either updating existing camel-ssh example, or adding as a new example... Th

Re: How would you implement this simple, but tricky little route?

2013-02-15 Thread Raul Kripalani
I feel creative today, so I'll suggest the following. AMQ supports Delayed Delivery of messages [1]. JMS 2.0 - which is in Public Review Draft - also introduces this function as a first-class citizen in the spec [2]. By using this approach, rather than blocking a thread waiting for the flag to be

Re: Help with mocking a filter bean method call

2013-02-15 Thread whelmingbytes
Thanks for the response. I agree I shouldn't put mocks into our int tests, but the lovely code with this in it, I inherited. I will be going the route of using the spring based registry. Looks like exactly what I need and have had good luck with it so far. Thanks again! -- View this message in

Re: How would you implement this simple, but tricky little route?

2013-02-15 Thread Christian Schneider
I would not recommend to hold a camel route processing for a longer time to wait for the db flag. So I when the message comes in I would check the DB if the flag is set. If yes I would proceed. If not I would store the message in a DB or filesystem. In another route I would poll the DB for the fla

Re: HTTP timeout

2013-02-15 Thread Claus Ibsen
On Fri, Feb 15, 2013 at 2:49 PM, cgsk wrote: > Hi there, > > I am using camel http component for calling external webservice. For timeout > I am setting httpClient.soTimeout=1 as a query parameter in the service > url. But httpclient debug logs shows retries 3 times with a timeout of 20 > secs

Camel as unified communication engine

2013-02-15 Thread Ramkumar.Iyer
We are planning to use Camel as a core component for a unified communication engine we are planning to build. Please let us know of any existing work in the space. Basically, from various enterprise system endpoints, we have to take messages and route them to various communication endpoints (as

How would you implement this simple, but tricky little route?

2013-02-15 Thread pmcb55
For each message that arrives on a queue, I want to kick-off a polling timer to periodically check a specific database row *for that message*, checking for a 'safeToContinue' flag changing value from 'false' to 'true'. Once the corresponding flag in the database for that message (i.e. the message b

HTTP timeout

2013-02-15 Thread cgsk
Hi there, I am using camel http component for calling external webservice. For timeout I am setting httpClient.soTimeout=1 as a query parameter in the service url. But httpclient debug logs shows retries 3 times with a timeout of 20 secs (when unable establish connection to the host). So even

Re: camel-ssh - SSH keys authentication

2013-02-15 Thread Scott Cranton
Excellent! thanks for the QA ;-) The camel-ssh doc clearly needs help, so any thoughts you have on how to update based on your recent experience would be most appreciated... On Fri, Feb 15, 2013 at 6:48 AM, Martin Stiborský wrote: > Woohoo, victory, thanks for the hint, Scott. ClassLoader was th

Re: camel-ssh - SSH keys authentication

2013-02-15 Thread Martin Stiborský
Woohoo, victory, thanks for the hint, Scott. ClassLoader was the magical thing. ResourceKeyPairProvider keyPairProvider = new ResourceKeyPairProvider( new String[]{pathToTheKey}, null, this.getClass().getClassLoader()); And camel-crypto, as new dependency, because org.bouncycastle

Re: MongoDB Jackson Date Mapping Option

2013-02-15 Thread Raul Kripalani
Hi Ron, This is a very good question. It's more a MongoDB-specific question rather than a Camel question, but here's what I know of the topic. Take into account that the JSON spec doesn't define a standard date/dateTime format (unlike XSD), hence there's no universal way to recognise a JSON value

Re: camel-ssh - SSH keys authentication

2013-02-15 Thread Scott Cranton
Have you tried setting the keyPairProvider to an instance of org.apache.sshd.common.keyprovider.ResourceKeyPairProvider? That should work better in OSGi, though I haven't tried it recently... Re mulitple ids: you can add multiple component instances with different ids (e.g. sshGit) and reference t

Re: camel-ssh - SSH keys authentication

2013-02-15 Thread Martin Stiborský
Often I found solution for a problem in few minutes after posting to mailing list, so let's try the luck now :) Currently I'm digging in the camel-ssh, because definitely there is problem with referencing the key file from resources. The very first thing I should do was enabling debug for camel-ss

Re: camel-ssh - SSH keys authentication

2013-02-15 Thread Martin Stiborský
One more weird thing, from the log file: 2013-02-15 08:58:22,582 | INFO | NioProcessor-21 | ClientSessionImpl | 24 - org.apache.sshd.core - 0.8.0 | Session n...@my-git.server.com/10.xx.xx.xx:22 closed The "null"…I assume there should be username :) On Fri, Feb 15, 2013 at 8:40 AM,