Hi thank you,
I just need to load the xml outside project: example if the example is in E
folder of my filesystem
I tried like this:
InputStream is = getClass().getResourceAsStream("E://cameltest.xml");
but it throws me
Exception in thread "main" java.lang.IllegalArgumentException: is parameter
Hi thank you. I have a question.
I have my xml route like this,
camelcontext.xml:
http://camel.apache.org/schema/spring";>
in my service method:
public void jmst
yes,
its in my camel.xml.
camel.xml
--
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.x
Hi I have done a sample test to send object to queue.
PurchaseOrder order = new PurchaseOrder();
order.setName("Camel in Action");
order.setPrice(4995);
order.setAmount(1);
ProducerTemplate template = context.createProducerTemplate();
template.sendBody("tes
hi I am new user to camel.
I have tried an example by loading router from xml file. I have done it
successfully. My code is here.
JAXBContext jaxb =
JAXBContext.newInstance(Constants.JAXB_CONTEXT_PACKAGES);
Unmarshaller unmarshaller = jaxb.createUnmarshaller();
Resource