camel-ejb in JBoss AS7

2013-11-26 Thread simholte
I'm trying to use the Camel EJB component to make a call to an EJB but I'm having problems calling the bean with anything other then a String. My Camel version is 2.12.1 When I expose an EJB like: @Stateless public class ProcessorService { public String process(String argument) {

Re: camel-ejb in JBoss AS7

2013-11-26 Thread simholte
I use Camel-cdi to create my CamelContext in a simple .war file that also exposes a REST endpoint. I then use a CamelProxy to inject data into my Camel route when the REST endpoint is called. This war file and the ejb get packaged up in a .ear file for deployment to AS7. Below is a snippet from

Re: camel-ejb in JBoss AS7

2013-11-27 Thread simholte
You were definitely on to something. If I drop the ear packaging and move my ejb into the war and deploy only that to AS7 everything works as expected. Do you have any guidance how I should be packaging Camel into my EE6 application? I'm going to try and move Camel out of the war file and into a

Make decision on whether header key exists in XML DSL

2014-02-19 Thread simholte
I'm having some problems getting this to work right, I'm hoping this is an easy question. The behavior I want is to check if the header contains a key, then do something if that header key doesn't exist. I've tried several ways to accomplish this, my current route that *doesn't accomplish my goal

Re: Make decision on whether header key exists in XML DSL

2014-02-19 Thread simholte
Thanks for the quick response! That works great, but I'm trying to make a decision on the absence of that key. I've added an otherwise block to make my solution work but I'm wondering if there's a better solution using a not or something? my new route:

update JNDI camel registery at runtime

2014-02-27 Thread simholte
I create an instance of Camel at start up with the jndi registry: JndiRegistry registry = new JndiRegistry(); // register ejb's in the registry ... ModelCamelContext context = new DefaultCamelContext(registry); I'm making heavy use of ejb's in my routes so to make things easier I want to r