flatpack-camel - Omit Header and Trailer record

2013-03-17 Thread ganeshkumar.kanagavel
Hi,
Any ideas about how to omit the header and trailer records in flatpac-camel 
using pzamp.xml defintions?

I want to filter out the header and trailer records after the unmarshalling 
component.

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Camel-Spring Application Start and Stop

2013-03-20 Thread ganeshkumar.kanagavel
Hi,
Have got a basic question.

I would like to understand the prescribed method of starting and stopping the 
Camel-spring application?

We are planning to have this application on the standalone, so need to 
understand how to start and stop after deploying into the server.

Any model script will help us.

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


JASYPT String Decryption

2013-03-27 Thread ganeshkumar.kanagavel
Hi,
Please advise if anyone know how to decrypt the jasyped value inside a class ?

We are planning to encrypt the password values using jasypt and store in a 
Databases.

We want to decrypt the value back inside a bean class. Please advise if it's 
possible

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
duplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: JASYPT String Decryption

2013-03-28 Thread ganeshkumar.kanagavel
Thanks Ibsen, I followed the below steps and it works like Charm‼!

The original password we have will be encrypted with the master password.

F:\Camel\apache-camel-2.10.3\lib>java -jar camel-jasypt-2.10.3.jar -c encrypt 
-p secret -i Ganesh
Encrypted text: wJdhCP0vS8ynUrUSDVwF1Q==

The Encrypted text value can be stored in the 100 byte of string in the 
database( mainly for FTP process). The following changes are done to integrate 
the Jasypt into the application.

1.  Bean Definition

  

  

2.  Inject bean into any class.






3.  Get hold of the parser and decrypt the value back.

  String password = jasyptparser.parseProperty(null, 
"ENC(ys8/O1bndJr4C046uHignHm4gTTCSmnl)", null);
System.out.println(password);


-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com]
Sent: Thursday, March 28, 2013 2:14 AM
To: users@camel.apache.org
Subject: Re: JASYPT String Decryption

On Wed, Mar 27, 2013 at 10:47 PM,  
mailto:ganeshkumar.kanaga...@barclays.com>> 
wrote:
> Hi,
> Please advise if anyone know how to decrypt the jasyped value inside a class ?
>
> We are planning to encrypt the password values using jasypt and store in a 
> Databases.
>
> We want to decrypt the value back inside a bean class. Please advise
> if it's possible
>

Hi

You can use this method from CamelContext
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html#resolvePropertyPlaceholders(java.lang.String)

and just put in the value in the method as you would do in the endpoint uris, 
eg with ENC(value) around the value.
http://camel.apache.org/jasypt

An alternative is to get hold of the JasyptPropertiesParser and use its API 
http://camel.apache.org/jasypt


Or use the Jasypt library without Camel.




> Thanks
> Ganesh
>
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> duplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer 
> and, if received from Barclays' Sales or Trading desk, the terms available 
> at: 
> www.barclays.com/salesandtradingdisclaimer/.
>  By messaging with Barclays you consent to the foregoing. Barclays Bank PLC 
> is a company registered in England (number 1026167) with its registered 
> office at 1 Churchill Place, London, E14 5HP. This email may relate to or be 
> sent from other members of the Barclays group.
>
> ___



--
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
duplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


idempotentkey available from 2.11 ???

2013-03-28 Thread ganeshkumar.kanagavel
Hi Clauss,
Based on the documentation it looks like idempotentkey is available from 2.11 , 
does that mean we have to wait for 2.11 release?

idempotentKey

Expression

Camel 2.11: To use a custom idempotent key. By default the absolute path of the 
file is used. You can use the File 
Language, for example to use the 
file name and file size, you can do:

idempotentKey=${file:name}-${file:size}



Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
duplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Bindy Date Pattern Error

2013-07-09 Thread ganeshkumar.kanagavel
Hi,
Can you please advise regarding Date Pattern exception in Bindy.

We are using Bindy to marshal, We have a attribute with data type as DATE.

We are getting the below exception during the parsing.

java.lang.IllegalArgumentException: Can not find a suitable formatter for the 
type: java.sql.Date
Annotation model snippet is below.

@DataField(pos=41, length=10,pattern="MM-dd-")
  private Date settlement_date;
Thanks
Ganesh





___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


RE: Bindy Date Pattern Error

2013-07-11 Thread ganeshkumar.kanagavel
Hi,
We are using camel version 2.11

Our data format is in the format of YYMMDD , Unmarshalling is failing if we use 
java.sql.date but works with java.util.date.

But java.util.date is not compliant with sql server database insert, so we need 
to add some conversion logic in the get method of the Model.

Thanks
Ganesh

-Original Message-
From: Christian Müller [mailto:christian.muel...@gmail.com] 
Sent: Tuesday, July 09, 2013 4:32 PM
To: users@camel.apache.org
Subject: Re: Bindy Date Pattern Error

How dos your date looks like?
Which version of Camel do you use?
I added an unit test to 2.12-SNAPSHOT [1] which show does it works (at least 
with this version).

[1]
https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/model/date/BindyDatePatternCsvUnmarshallTest.java;h=71184cef4acce98a3bfe36c32efd574b5f7d00f1;hb=HEAD

Best,
Christian
-

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: 
https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Tue, Jul 9, 2013 at 8:31 PM,  wrote:

> Hi,
> Can you please advise regarding Date Pattern exception in Bindy.
>
> We are using Bindy to marshal, We have a attribute with data type as DATE.
>
> We are getting the below exception during the parsing.
>
> java.lang.IllegalArgumentException: Can not find a suitable formatter 
> for the type: java.sql.Date Annotation model snippet is below.
>
> @DataField(pos=41, length=10,pattern="MM-dd-")
>   private Date settlement_date;
> Thanks
> Ganesh
>
>
>
>
>
> ___
>
> This message is for information purposes only, it is not a 
> recommendation, advice, offer or solicitation to buy or sell a product 
> or service nor an official confirmation of any transaction. It is 
> directed at persons who are professionals and is not intended for 
> retail customer use. Intended for recipient only. This message is subject to 
> the terms at:
> www.barclays.com/emaildisclaimer.
>
> For important disclosures, please see:
> www.barclays.com/salesandtradingdisclaimer regarding market commentary 
> from Barclays Sales and/or Trading, who are active market 
> participants; and in respect of Barclays Research, including 
> disclosures relating to specific issuers, please see 
> http://publicresearch.barclays.com.
>
> ___
>
___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


doneFileName in different Directory Possibility

2013-07-11 Thread ganeshkumar.kanagavel
Hi,
Please advise if we have a option to look for doneFileName in the different 
directory than the Original File Name?

We have a requirement to look for the Ready file in a directory and pick up the 
data file from a directory.

Thanks
Ganesh

___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


Solace Integration with Camel

2013-08-20 Thread ganeshkumar.kanagavel
Hi,
Can you please advise if Camel based Routes can be integrated with Solace 
channels?

Any samples on TIBCO EMS or Solace channels help us a lot.

Thanks
Ganesh

___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


Camel Request Reply Timeout - Solace

2013-08-28 Thread ganeshkumar.kanagavel
Hi,
We are trying to use Camel as Middle Tier service for the Request and response 
, with Client as WPF using Solace Appliance.

I am able to receive the Request message sent by WPF client and process it but 
the reply ( Which I assume Camel will send back ) is not reaching WPF client.

WPF client is getting timeout after several seconds at which camel sends the 
response back.

Please advise if anyone faced this problem before?

My route details is below.


  
  
  
  
  
  
  
  
  



1.  I am setting a reply object as the body of the getin and getout.

2.  I am getting all the headers from getin to getout.

3.  The Wpf client is giving request like below

_session.SendRequest(message, out replyMessage, timeoutMs);

if (replyMessage != null)
{
replyEventItem = CreateEventItem(_session, replyMessage);
}
else
{
throw new EventItemReceiveTimeoutException(
string.Format("Didn't get a reply within {0} 
milliseconds.", timeoutMs));
}


Please advise if anyone for any suggestions

Thanks
Ganesh

___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


Processor ref bind to header values

2013-08-30 Thread ganeshkumar.kanagavel
Hi,
Please advise if we can bind the processor reference to a header values of the 
exchange?

Something like this



If I put this like that it's not substituting the value but looking for the 
bean id ${header.ServiceClassname}

Thanks
Ganesh

___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


Request Reply Issue - Advise needed

2013-09-03 Thread ganeshkumar.kanagavel
Hi,
Can someone please advise if I am setting the reply message correctly for the 
request reply process?

I want to send the message in the form of the StreamMessage.

StreamMessage streamMsg = 
JCSMPFactory.onlyInstance().createMessage(StreamMessage.class);

// Set the message delivery mode.
streamMsg.setDeliveryMode(DeliveryMode.DIRECT);

SDTStream stream = JCSMPFactory.onlyInstance().createStream();
stream.writeInteger(500);

streamMsg.setStream(stream);

ex.getOut().setBody(streamMsg);

Thanks
Ganesh

___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


Camel Reporting Component

2013-09-18 Thread ganeshkumar.kanagavel
Hi,
Please advise if Camel has got any component which provides something similar 
to Jasper or Business Objects report?

Thanks
Ganesh

___

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

___


Hibernate Current Session issue in Camel

2013-03-11 Thread ganeshkumar.kanagavel
Hi,
Please advise if anyone has faced this problem of implementing hibernate in 
Camel?

by: java.lang.NoSuchMethodError: 
org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
at 
org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
at 
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
at 
org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
at 
org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
at 
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)

Thanks
Ganesh


___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Hibernate Current Session issue in Camel

2013-03-11 Thread ganeshkumar.kanagavel
Camel Version is 2.10.3
Camel-Extra Version is 2.10.1
camel-hibernate Version is 2.10.1

spring-tx Version is 3.2.1.RELEASE
spring-jdbc Version is 3.1.0.RELEASE
spring-expression is 3.1.0.RELEASE



-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Sent: Monday, March 11, 2013 1:57 PM
To: users@camel.apache.org
Subject: Re: Hibernate Current Session issue in Camel

Hi

What version of Camel, Hibernate, camel-extra and Spring are you using?



On Mon, Mar 11, 2013 at 6:17 PM,   wrote:
> Hi,
> Please advise if anyone has faced this problem of implementing hibernate in 
> Camel?
>
> by: java.lang.NoSuchMethodError: 
> org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
> at 
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
> at 
> org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
> at 
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>
> Thanks
> Ganesh
>
>
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> uplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or 
> Trading desk, the terms available at: 
> www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
> consent to the foregoing. Barclays Bank PLC is a company registered in 
> England (number 1026167) with its registered office at 1 Churchill Place, 
> London, E14 5HP. This email may relate to or be sent from other members of 
> the Barclays group.
>
> ___



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Hibernate Current Session issue in Camel

2013-03-11 Thread ganeshkumar.kanagavel
Hi Claus,
Please find the bean definition in the camel context.

  


  
  

  
  

  

  
  



  
name.hbm.xml
  



  
hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.hbm2ddl.auto=create

hibernate.query.factory_class=org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
  

  

Thanks
Ganesh

-Original Message-
From: Kanagavel, Ganesh Kumar: CRES (NYK)
Sent: Monday, March 11, 2013 3:04 PM
To: users@camel.apache.org
Subject: RE: Hibernate Current Session issue in Camel

Camel Version is 2.10.3
Camel-Extra Version is 2.10.1
camel-hibernate Version is 2.10.1

spring-tx Version is 3.2.1.RELEASE
spring-jdbc Version is 3.1.0.RELEASE
spring-expression is 3.1.0.RELEASE



-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com]
Sent: Monday, March 11, 2013 1:57 PM
To: users@camel.apache.org
Subject: Re: Hibernate Current Session issue in Camel

Hi

What version of Camel, Hibernate, camel-extra and Spring are you using?



On Mon, Mar 11, 2013 at 6:17 PM,  
mailto:ganeshkumar.kanaga...@barclays.com>> 
wrote:
> Hi,
> Please advise if anyone has faced this problem of implementing hibernate in 
> Camel?
>
> by: java.lang.NoSuchMethodError: 
> org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
> at 
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
> at 
> org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
> at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncPr
> ocessorBridge.process(AsyncProcessorConverterHelper.java:61)
>
> Thanks
> Ganesh
>
>
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> uplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer 
> and, if received from Barclays' Sales or Trading desk, the terms available 
> at: 
> www.barclays.com/salesandtradingdisclaimer/.
>  By messaging with Barclays you consent to the foregoing. Barclays Bank PLC 
> is a company registered in England (number 1026167) with its registered 
> office at 1 Churchill Place, London, E14 5HP. This email may relate to or be 
> sent from other members of the Barclays group.
>
> ___



--
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen 
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: 
www.barclays.com/emaildisclaimer and, 
if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/.
 By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is 
a 

Came Hibernate SaveorUpdate Option

2013-03-12 Thread ganeshkumar.kanagavel
Hi,
Please advise if we have saveorupdate hibernate feature in Camel Hibernate 
endpoint?

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Hibernate Current Session issue in Camel

2013-03-12 Thread ganeshkumar.kanagavel
Thanks Claus, I will wait for 2.11 camel-extra release.

I retreated to hibernate3 for now and working fine.


-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Sent: Tuesday, March 12, 2013 3:14 AM
To: users@camel.apache.org
Subject: Re: Hibernate Current Session issue in Camel

On Mon, Mar 11, 2013 at 8:04 PM,   wrote:
> Camel Version is 2.10.3
> Camel-Extra Version is 2.10.1
> camel-hibernate Version is 2.10.1
>
> spring-tx Version is 3.2.1.RELEASE
> spring-jdbc Version is 3.1.0.RELEASE
> spring-expression is 3.1.0.RELEASE
>
>

Camel Extra 2.10.1 does not support Hibernate 4.

This is coming in the upcoming 2.11 release where the camel-hibernate component 
has been refactored and support Hibernate 4 et all. So you can use a 2.11 
SNAPSHOT of camel-hibernate if you want to give it a test.

You may need to build the component from source at:
https://code.google.com/a/apache-extras.org/p/camel-extra/?redir=1

I think also you should same Spring version, eg 3.1.0. Now you have a mix of 
3.2 and 3.1 JARs.


>
> -Original Message-
> From: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Sent: Monday, March 11, 2013 1:57 PM
> To: users@camel.apache.org
> Subject: Re: Hibernate Current Session issue in Camel
>
> Hi
>
> What version of Camel, Hibernate, camel-extra and Spring are you using?
>
>
>
> On Mon, Mar 11, 2013 at 6:17 PM,   wrote:
>> Hi,
>> Please advise if anyone has faced this problem of implementing hibernate in 
>> Camel?
>>
>> by: java.lang.NoSuchMethodError: 
>> org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
>> at 
>> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
>> at 
>> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
>> at 
>> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
>> at 
>> org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
>> at 
>> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncP
>> rocessorBridge.process(AsyncProcessorConverterHelper.java:61)
>>
>> Thanks
>> Ganesh
>>
>>
>> ___
>>
>> This message may contain information that is confidential or privileged. If 
>> you are not an intended recipient of this message, please delete it and any 
>> attachments, and notify the sender that you have received it in error. 
>> Unless specifically stated in the message or otherwise indicated, you may 
>> not uplicate, redistribute or forward this message or any portion thereof, 
>> including any attachments, by any means to any other person, including any 
>> retail investor or customer. This message is not a recommendation, advice, 
>> offer or solicitation, to buy/sell any product or service, and is not an 
>> official confirmation of any transaction. Any opinions presented are solely 
>> those of the author and do not necessarily represent those of Barclays.
>>
>> This message is subject to terms available at: 
>> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or 
>> Trading desk, the terms available at: 
>> www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
>> consent to the foregoing. Barclays Bank PLC is a company registered in 
>> England (number 1026167) with its registered office at 1 Churchill Place, 
>> London, E14 5HP. This email may relate to or be sent from other members of 
>> the Barclays group.
>>
>> ___
>
>
>
> --
> Claus Ibsen
> -
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cib...@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen 
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> uplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or 
> Trading desk, the terms available at: 
> www.barclays.com/salesandtradingdisclaimer/. By messa

Camel BINDY FIXED - Short Record handling features

2013-03-12 Thread ganeshkumar.kanagavel
Hi,
Please advise if there is a feature available in Camel BINDY FIXED Format to 
handle the short record exceptions.

i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 
on some records.

When I defined the Model Class with 80 Bytes, the processor is failing on those 
records where the record length is less than 80.

Currently I am making use of the following in the Model Class.

@FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)

Thanks
Ganesh


___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Camel BINDY FIXED - Short Record handling features

2013-03-12 Thread ganeshkumar.kanagavel
Hi,
Please advise if there is a feature available in Camel BINDY FIXED Format to 
handle the short record exceptions.

i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 
on some records.

When I defined the Model Class with 80 Bytes, the processor is failing on those 
records where the record length is less than 80.

Currently I am making use of the following in the Model Class.

@FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)

Thanks
Ganesh


___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Camel Release 2.11 Target Date

2013-03-12 Thread ganeshkumar.kanagavel
Hi Claus,
Do we have the target date for Camel 2.11 releases? I cannot wait for 2.11 
release to be available to make use of hibernate4 and Bindy features.

BTW do we have the list of all the new features incorporated in the 2.11 
Release.

Thanks
Ganesh



___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Flatpack Unmarshall Spring DSL Example

2013-03-12 Thread ganeshkumar.kanagavel
Hi,
Anyone has got examples for unmarshalling Flatpack structure in Spring DSL? I 
am not able to see anything in net.

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Flatpack Unmarshall Spring DSL Example

2013-03-12 Thread ganeshkumar.kanagavel
Chris,
Thanks, Flatpack config files are created. But I want to use the Spring DSL for 
Unmarshall the flatpack components.

I am not able to create the beans correctly. Can you please share the link 
where I can check the examples?

Thanks
Ganesh

-Original Message-
From: Chris Geer [mailto:ch...@cxtsoftware.com] 
Sent: Tuesday, March 12, 2013 4:26 PM
To: users@camel.apache.org
Subject: Re: Flatpack Unmarshall Spring DSL Example

On Tue, Mar 12, 2013 at 12:31 PM, wrote:

> Hi,
> Anyone has got examples for unmarshalling Flatpack structure in Spring 
> DSL? I am not able to see anything in net.
>

If you look at the camel tests there are lots of examples of using spring to 
define a route that uses Flatpack. The Flatpack component does require a 
separate config file for actually specifying the Flatpack config but the routes 
are all in spring. Were you looking for a way to put the Flatpack config in 
spring directly?

Chris

>
> Thanks
> Ganesh
>
> ___
>
> This message may contain information that is confidential or privileged.
> If you are not an intended recipient of this message, please delete it 
> and any attachments, and notify the sender that you have received it in error.
> Unless specifically stated in the message or otherwise indicated, you 
> may not uplicate, redistribute or forward this message or any portion 
> thereof, including any attachments, by any means to any other person, 
> including any retail investor or customer. This message is not a 
> recommendation, advice, offer or solicitation, to buy/sell any product 
> or service, and is not an official confirmation of any transaction. 
> Any opinions presented are solely those of the author and do not necessarily 
> represent those of Barclays.
>
> This message is subject to terms available at:
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales 
> or Trading desk, the terms available at:
> www.barclays.com/salesandtradingdisclaimer/. By messaging with 
> Barclays you consent to the foregoing. Barclays Bank PLC is a company 
> registered in England (number 1026167) with its registered office at 1 
> Churchill Place, London, E14 5HP. This email may relate to or be sent 
> from other members of the Barclays group.
>
> ___
>
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Camel BINDY FIXED - Short Record handling features

2013-03-12 Thread ganeshkumar.kanagavel
Claus,
I see your comment about improving the BINDY Fixed Length 
http://camel.465427.n5.nabble.com/Bindy-and-FixedLength-td5118749.html

Is the below issue will get addressed as part of the fix?

If the data is short record, then the padding is not happening to make it to 
match with the Model Length.

Thanks
Ganesh

-Original Message-
From: Kanagavel, Ganesh Kumar: CRES (NYK) 
Sent: Tuesday, March 12, 2013 11:34 AM
To: users@camel.apache.org
Subject: Camel BINDY FIXED - Short Record handling features

Hi,
Please advise if there is a feature available in Camel BINDY FIXED Format to 
handle the short record exceptions.

i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 
on some records.

When I defined the Model Class with 80 Bytes, the processor is failing on those 
records where the record length is less than 80.

Currently I am making use of the following in the Model Class.

@FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)

Thanks
Ganesh


___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Flatpack Unmarshall Spring DSL Example

2013-03-12 Thread ganeshkumar.kanagavel
Thanks, I will check that out.

I have a Flat File which I want to create List of records out of it. I want to 
transform and pass to hibernate endpoint.
I actually was using BINDY Fixed format, but that is giving problem when the 
records are short record.

I am seeing some action to allow short records in Flatpack, so want to try it 
and see if it works.


-Original Message-
From: Chris Geer [mailto:ch...@cxtsoftware.com] 
Sent: Tuesday, March 12, 2013 5:58 PM
To: users@camel.apache.org
Subject: Re: Flatpack Unmarshall Spring DSL Example

On Tue, Mar 12, 2013 at 1:45 PM,  wrote:

> Chris,
> Thanks, Flatpack config files are created. But I want to use the 
> Spring DSL for Unmarshall the flatpack components.
>
> I am not able to create the beans correctly. Can you please share the 
> link where I can check the examples?
>

Here is a link directly to the source at GitHub for easy viewing [1]. In the 
data folder you will find the sample data files. In the resource folder you 
will find the spring files and flatpack config files. In the src folder you'll 
find the test classes.

What are you trying to unmarshall into?

Chris

[1]
https://github.com/apache/camel/tree/trunk/components/camel-flatpack/src/test

>
> Thanks
> Ganesh
>
> -Original Message-
> From: Chris Geer [mailto:ch...@cxtsoftware.com]
> Sent: Tuesday, March 12, 2013 4:26 PM
> To: users@camel.apache.org
> Subject: Re: Flatpack Unmarshall Spring DSL Example
>
> On Tue, Mar 12, 2013 at 12:31 PM,  >wrote:
>
> > Hi,
> > Anyone has got examples for unmarshalling Flatpack structure in 
> > Spring DSL? I am not able to see anything in net.
> >
>
> If you look at the camel tests there are lots of examples of using 
> spring to define a route that uses Flatpack. The Flatpack component 
> does require a separate config file for actually specifying the 
> Flatpack config but the routes are all in spring. Were you looking for 
> a way to put the Flatpack config in spring directly?
>
> Chris
>
> >
> > Thanks
> > Ganesh
> >
> > ___
> >
> > This message may contain information that is confidential or privileged.
> > If you are not an intended recipient of this message, please delete 
> > it and any attachments, and notify the sender that you have received 
> > it in
> error.
> > Unless specifically stated in the message or otherwise indicated, 
> > you may not uplicate, redistribute or forward this message or any 
> > portion thereof, including any attachments, by any means to any 
> > other person, including any retail investor or customer. This 
> > message is not a recommendation, advice, offer or solicitation, to 
> > buy/sell any product or service, and is not an official confirmation of any 
> > transaction.
> > Any opinions presented are solely those of the author and do not
> necessarily represent those of Barclays.
> >
> > This message is subject to terms available at:
> > www.barclays.com/emaildisclaimer and, if received from Barclays' 
> > Sales or Trading desk, the terms available at:
> > www.barclays.com/salesandtradingdisclaimer/. By messaging with 
> > Barclays you consent to the foregoing. Barclays Bank PLC is a 
> > company registered in England (number 1026167) with its registered 
> > office at 1 Churchill Place, London, E14 5HP. This email may relate 
> > to or be sent from other members of the Barclays group.
> >
> > ___
> >
> ___
>
> This message may contain information that is confidential or privileged.
> If you are not an intended recipient of this message, please delete it 
> and any attachments, and notify the sender that you have received it in error.
> Unless specifically stated in the message or otherwise indicated, you 
> may not uplicate, redistribute or forward this message or any portion 
> thereof, including any attachments, by any means to any other person, 
> including any retail investor or customer. This message is not a 
> recommendation, advice, offer or solicitation, to buy/sell any product 
> or service, and is not an official confirmation of any transaction. 
> Any opinions presented are solely those of the author and do not necessarily 
> represent those of Barclays.
>
> This message is subject to terms available at:
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales 
> or Trading desk, the terms available at:
> www.barclays.com/salesandtradingdisclaimer/. By messaging with 
> Barclays you consent to the foregoing. Barclays Bank PLC is a company 
> registered in England (number 1026167) with its registered office at 1 
> Churchill Place, London, E14 5HP. This email may relate to or be sent 
> from other members of the Barclays group.
>
> ___
>
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of t

Database Cache in Camel

2013-03-13 Thread ganeshkumar.kanagavel
Hi,
Can someone advise what the recommended way of maintaining the database Cache 
in Camel ?

We would like to access cache bean from a bean rather that writing any query. 
Can someone shed some insights?

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


RE: Flatpack Unmarshall Spring DSL Example

2013-03-13 Thread ganeshkumar.kanagavel
Chris, Thanks for your inputs, It works now.

I created a customised tpeconverter to convert the datasetlist to POJO model 
mapped to Hibernate.

   



   
  





-Original Message-
From: Kanagavel, Ganesh Kumar: CRES (NYK) 
Sent: Tuesday, March 12, 2013 6:02 PM
To: users@camel.apache.org
Subject: RE: Flatpack Unmarshall Spring DSL Example

Thanks, I will check that out.

I have a Flat File which I want to create List of records out of it. I want to 
transform and pass to hibernate endpoint.
I actually was using BINDY Fixed format, but that is giving problem when the 
records are short record.

I am seeing some action to allow short records in Flatpack, so want to try it 
and see if it works.


-Original Message-
From: Chris Geer [mailto:ch...@cxtsoftware.com]
Sent: Tuesday, March 12, 2013 5:58 PM
To: users@camel.apache.org
Subject: Re: Flatpack Unmarshall Spring DSL Example

On Tue, Mar 12, 2013 at 1:45 PM,  wrote:

> Chris,
> Thanks, Flatpack config files are created. But I want to use the 
> Spring DSL for Unmarshall the flatpack components.
>
> I am not able to create the beans correctly. Can you please share the 
> link where I can check the examples?
>

Here is a link directly to the source at GitHub for easy viewing [1]. In the 
data folder you will find the sample data files. In the resource folder you 
will find the spring files and flatpack config files. In the src folder you'll 
find the test classes.

What are you trying to unmarshall into?

Chris

[1]
https://github.com/apache/camel/tree/trunk/components/camel-flatpack/src/test

>
> Thanks
> Ganesh
>
> -Original Message-
> From: Chris Geer [mailto:ch...@cxtsoftware.com]
> Sent: Tuesday, March 12, 2013 4:26 PM
> To: users@camel.apache.org
> Subject: Re: Flatpack Unmarshall Spring DSL Example
>
> On Tue, Mar 12, 2013 at 12:31 PM,  >wrote:
>
> > Hi,
> > Anyone has got examples for unmarshalling Flatpack structure in 
> > Spring DSL? I am not able to see anything in net.
> >
>
> If you look at the camel tests there are lots of examples of using 
> spring to define a route that uses Flatpack. The Flatpack component 
> does require a separate config file for actually specifying the 
> Flatpack config but the routes are all in spring. Were you looking for 
> a way to put the Flatpack config in spring directly?
>
> Chris
>
> >
> > Thanks
> > Ganesh
> >
> > ___
> >
> > This message may contain information that is confidential or privileged.
> > If you are not an intended recipient of this message, please delete 
> > it and any attachments, and notify the sender that you have received 
> > it in
> error.
> > Unless specifically stated in the message or otherwise indicated, 
> > you may not uplicate, redistribute or forward this message or any 
> > portion thereof, including any attachments, by any means to any 
> > other person, including any retail investor or customer. This 
> > message is not a recommendation, advice, offer or solicitation, to 
> > buy/sell any product or service, and is not an official confirmation of any 
> > transaction.
> > Any opinions presented are solely those of the author and do not
> necessarily represent those of Barclays.
> >
> > This message is subject to terms available at:
> > www.barclays.com/emaildisclaimer and, if received from Barclays' 
> > Sales or Trading desk, the terms available at:
> > www.barclays.com/salesandtradingdisclaimer/. By messaging with 
> > Barclays you consent to the foregoing. Barclays Bank PLC is a 
> > company registered in England (number 1026167) with its registered 
> > office at 1 Churchill Place, London, E14 5HP. This email may relate 
> > to or be sent from other members of the Barclays group.
> >
> > ___
> >
> ___
>
> This message may contain information that is confidential or privileged.
> If you are not an intended recipient of this message, please delete it 
> and any attachments, and notify the sender that you have received it in error.
> Unless specifically stated in the message or otherwise indicated, you 
> may not uplicate, redistribute or forward this message or any portion 
> thereof, including any attachments, by any means to any other person, 
> including any retail investor or customer. This message is not a 
> recommendation, advice, offer or solicitation, to buy/sell any product 
> or service, and is not an official confirmation of any transaction.
> Any opinions presented are solely those of the author and do not necessarily 
> represent those of Barclays.
>
> This message is subject to terms available at:
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales 
> or Trading desk, the terms available at:
> www.barclays.com/salesandtradingdisclaimer/. By messaging with 
> Barclays you consent to the foregoing. Barclays Bank PLC is a company 
> regi

RE: Database Cache in Camel

2013-03-13 Thread ganeshkumar.kanagavel
Anyone got ideas around setting up the Ehcache based on hibernate?

-Original Message-
From: Kanagavel, Ganesh Kumar: CRES (NYK) 
Sent: Wednesday, March 13, 2013 1:02 PM
To: users@camel.apache.org
Subject: Database Cache in Camel

Hi,
Can someone advise what the recommended way of maintaining the database Cache 
in Camel ?

We would like to access cache bean from a bean rather that writing any query. 
Can someone shed some insights?

Thanks
Ganesh

___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___