Re: error while using direct:order

2012-02-21 Thread kapoor
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

Re: error while using direct:order

2012-02-21 Thread kapoor
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

Re: error while using direct:order

2012-02-20 Thread kapoor
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

error while using direct:order

2012-02-20 Thread kapoor
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

routing inside xml file

2012-02-15 Thread kapoor
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