Servlet 3.0 has the @WebListener annotation you can use to bootstrap your application.
And there is also this servlet listener from camel to bootstrap Camel without spring http://camel.apache.org/servletlistener-component.html And an example using it http://camel.apache.org/servlet-tomcat-no-spring-example.html On Wed, Nov 6, 2013 at 5:56 AM, kraythe . <[email protected]> wrote: > Greetings, > > I have a route that needs to call a database, read some records, format > them and put them into ActiveMQ. Naturally the best way to do this would be > to wrap the whole thing in a transacted route. However, I do not want to > use SpringXML as a route builder interface at all. I don't think its as > expressive or flexible as the fluent builders. > > The application will be running in a WAR in JBoss EAP 6.1.1 and using > servletcontextlistener to bootstrap camel. Although I might have to > tolerate some print intrusion I am generally not a fan of IOC spring taking > over whole applications. > > So what would be the best way to accomplish this? > > *Robert Simmons Jr. MSc.* > *Author of: Hardcore Java (2003) and Maintainable Java (2012)* > *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 > <http://www.linkedin.com/pub/robert-simmons/40/852/a39>* -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
