Re: id() in Java dsl

2009-07-08 Thread siva naresh
Yes its for debugging purposes.. and exactly like oisin mentioned. using idorCreate() in the interceptor while initialization of routes is a good option and this makes us to use the same procedure to generate ids for visualization nodes too for synchronization. Thanks all. --- Siva Naresh

Re: id() in Java dsl

2009-07-07 Thread siva naresh
you were able to run it. Claus Ibsen-2 wrote: > > On Tue, Jul 7, 2009 at 4:53 PM, Claus Ibsen wrote: >> On Tue, Jul 7, 2009 at 4:47 PM, siva naresh wrote: >>> >>> someNode.getId() is called during debug interceptor call and it should >>> be >>> retur

Re: id() in Java dsl

2009-07-07 Thread siva naresh
someNode.getId() is called during debug interceptor call and it should be returning whatever was set for that node during initialization of camelcontext. Siva Naresh. James.Strachan wrote: > > 2009/7/7 siva naresh : >> >> The ids are important to identify the endpo

Re: id() in Java dsl

2009-07-07 Thread siva naresh
uot;file://C:/from2"); Same is the case for CBR. Siva Naresh. James.Strachan wrote: > > 2009/7/7 siva naresh : >> >> Hi all, >> >>      I am trying to set ids on every endpoint in the following way. >>  But this seems to set ids on the entire route

Re: id() in Java dsl

2009-07-07 Thread siva naresh
I tried using both 1.5 and 1.6. The result is the same. Claus Ibsen-2 wrote: > > On Tue, Jul 7, 2009 at 12:58 PM, siva naresh wrote: >> >> Hi all, >> >>      I am trying to set ids on every endpoint in the following way. >>  But this seems to set ids on the

id() in Java dsl

2009-07-07 Thread siva naresh
Hi all, I am trying to set ids on every endpoint in the following way. But this seems to set ids on the entire route and not on the endpoint. from("file://C:/Debug/from").id("File_0").to("file://C:/test").id("File_1"); How do I set ids on every point in Java dsl? The same is achieved in

Re: configuring mail endpoint

2009-03-02 Thread siva naresh
property from the spring configuration file. Claus Ibsen-2 wrote: > > On Mon, Mar 2, 2009 at 1:30 PM, siva naresh wrote: >> >> Please see the following code snippet.. >> >> Endpoint smtpEndPoint = context >>                               >>  .getE

Re: configuring mail endpoint

2009-03-02 Thread siva naresh
owever need also to be started / stopped. You can > however just create 1 shared instance and keep it around and stop it > when you shutdown > > > On Mon, Mar 2, 2009 at 1:30 PM, siva naresh wrote: >> >> Please see the following code snippet.. >> >> Endpoint sm

configuring mail endpoint

2009-03-02 Thread siva naresh
Please see the following code snippet.. Endpoint smtpEndPoint = context .getEndpoint("smtp://usern...@smtp.gmail.com:25?password=password"); try { producer = smtpEndPoint .createProducer(); Exchange ex = producer.createExchange();