FAQ
Hi Willem,

I found there is an alternative for loading the configuration file. I have injected the session settings and default setting in the QuickfixjConfiguration class and this time I am able to create and start the route but it seems it's not able to establish the connection with fix engine but getting the success logs.

Logs:

<20121210-13:04:27, FIX.4.2:EXEC->BANZAI, event> (Session FIX.4.2:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20121210-13:04:29, FIX.4.2:EXEC->BANZAI, event> (Created session: FIX.4.2:EXEC->BANZAI)

In fix engine UI it shows no client connected with EXEC name. Its not throwing any exception also.





Regards,
Shadab

-----Original Message-----
From: Mohammad Shadab Ali
Sent: Monday, December 10, 2012 3:43 PM
To: users@camel.apache.org
Subject: RE: Quickfix component OSGI bundle not able to load configuration file

Thanks for the response Willem.


I am using camel 2.9.0.
I kept the configuration file in the resources folder of the bundle.









Regards,
Shadab

-----Original Message-----
From: Willem jiang
Sent: Monday, December 10, 2012 3:38 PM
To: users@camel.apache.org
Subject: Re: Quickfix component OSGI bundle not able to load configuration file

Which version of camel are you using ?
Did you try to put the configure file into the bundle ?


--
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem



On Saturday, December 8, 2012 at 8:30 PM, Mohammad Shadab Ali wrote:

Hi,

I am using camel-quickfix component to connect to connect to fix engine. I have created a camel route as

from("quickfix:test.cfg"). to("file:test?noop=true");

When I am running it as a simple java main program it is working fine. But when I create an osgi bundle of it and starts it in felix container, the classloader is not able to create the InputStream of the "test.cfg" file. I have placed the file in the current working directory.

Error log:
org.apache.camel.FailedToCreateRouteException: Failed to create route route44: Route[[From[quickfix:test.cfg]] -> [OnException[[class com.h... because of Failed to resolve endpoint: quickfix://test.cfg due to: Could not load test.cfg



Also, when I am trying to give the absolute path of the configuration file, its throwing exception in simple main program also.

Exception:
Caused by: java.lang.IllegalArgumentException: Could not load D:\test.cfg


Please suggest, if anybody has experienced this error.

Thanks in advance.



Regards,
Shadab

________________________________
***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***



***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***

***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
groupusers @
categoriescamel
postedDec 8, '12 at 12:30p
activeDec 10, '12 at 2:33p
posts4
users2
websitecamel.apache.org

People

Translate

site design / logo © 2022 Grokbase