Hi Ranx,
Thanks for the response.
I will not be able to pass any object type other string to setBody or
simpleExpression methods. I just want to pass a dynamic value to the route.
The message i'm getting is,
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                             
                                          
Elapsed (ms)
[scheduler         ] [scheduler         ]
[quartz2://sampleGroup/sampleTimer?trigger.repeatCount=1                      
] [        31]
[scheduler         ] [setBody2          ]
[setBody[simple{{ObligorId=23456}}]                                           
] [         0]
[scheduler         ] [convertBodyTo1    ] [convertBodyTo[java.util.Map]         
                                        
] [        16]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
        Id                  ID-PHX2MYMV32-65463-1460269525386-0-3
        ExchangePattern     InOnly
        Headers             {breadcrumbId=ID-PHX2MYMV32-65463-1460269525386-0-2,
calendar=null, CamelRedelivered=false, CamelRedeliveryCounter=0,
fireTime=Sat Apr 09 23:25:31 MST 2016, jobDetail=JobDetail
'sampleGroup.sampleTimer':  jobClass:
'org.apache.camel.component.quartz2.CamelJob concurrentExectionDisallowed:
false persistJobDataAfterExecution: false isDurable: false requestsRecovers:
false, jobInstance=org.apache.camel.component.quartz2.CamelJob@3cd6fd7f,
jobRunTime=-1, mergedJobDataMap=org.quartz.JobDataMap@ec12eb0,
nextFireTime=null, previousFireTime=Sat Apr 09 23:25:26 MST 2016,
refireCount=0, result=null, scheduledFireTime=Sat Apr 09 23:25:27 MST 2016,
scheduler=org.quartz.impl.StdScheduler@45106922, trigger=Trigger
'sampleGroup.sampleTimer':  triggerClass:
'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null'
misfireInstruction: 1 nextFireTime: null, triggerGroup=sampleGroup,
triggerName=sampleTimer}
        BodyType            String
        Body                {ObligorId=23456}
]


----------------------------------------------------------------------------------------------------

The use case i'm trying to achieve is from a jsp page i will be sending a
employee id and for the employee id i will trigger a quartz scheduled job to
fetch employee record from table every specified time. The cron expression
and the employee id will be from the jsp page. So i want to set them in body
and access it in route.
The concern is not about the quartz scheduler but passing a map object
through the body to the route.

Thanks,
Vinoth.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-route-set-map-object-in-body-tp5780863p5780868.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to