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 my POM that creates the ear
<dependencies>
<dependency>
<groupId>com.acme.poc.camel</groupId>
<artifactId>rest-poc</artifactId>
<version>${rest.poc.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.acme.poc.camel</groupId>
<artifactId>service</artifactId>
<version>${service.version}</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>${camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cdi</artifactId>
<version>${camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-ejb</artifactId>
<version>${camel.version}</version>
</dependency>
</dependencies>
Does this answer your question?
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-ejb-in-JBoss-AS7-tp5743866p5743894.html
Sent from the Camel - Users mailing list archive at Nabble.com.