On Thu, Jul 14, 2011 at 6:56 AM, xiangqiuzhao <[email protected]> wrote: > i means it's successful in camel-mina maven project, but exception in my j2ee > project. >
By J2EE project you mean that you assemble a .ear file? If so you would need to have the .ear file bootstrap Spring so it can load the camel-context.xml file. Google how to do this as its not a Camel specific feature/issue If you do not need J2EE, then you may consider using a .war file. They are much easier to work with and use. All you need is a web.xml file to bootstrap Spring and there you go. A .war file can also be deployed in JEE servers. See http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html > in camel-mina project the camel-context.xml at > camel-mina\target\test-classes. and in camel-mina project i have not use > spring to load the context file. why in my j2ee project it's fail? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/why-camel-context-xml-can-t-find-in-my-j2ee-project-tp4583039p4585338.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
