Calling a Datasource when using failedjobcommandfactory

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2014 05:16 AM
HI ,
I am using failedjobcommandfactory for failed jobs or exceptions , but i want to store those failed jobs to some db table , but i am not sure , how i will inject datasource there. need help on this
I am using failedjobcommandfactory for failed jobs or exceptions , but i want to store those failed jobs to some db table , but i am not sure , how i will inject datasource there. need help on this
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2014 08:54 AM
I'm sorry, but I don't understand your question. Can you explain in more details what you are doing exactly?
Thanks,
Thanks,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2014 10:52 AM
HI ,
I am using spring procee engine configuration ,
inside that i am defining failedjobcommand factory to capture the error logs . or i am tryin to log the in errors in oracle database
but when i am trying to use the datasource defined in my activiti.xml to store the data in db i am getting datasource as null in my failedjobcommand implementaion . although i have a workaround for that but i am curious to know what mistake i am making here, or do i have to use aop i am not sure
I am using spring procee engine configuration ,
inside that i am defining failedjobcommand factory to capture the error logs . or i am tryin to log the in errors in oracle database
but when i am trying to use the datasource defined in my activiti.xml to store the data in db i am getting datasource as null in my failedjobcommand implementaion . although i have a workaround for that but i am curious to know what mistake i am making here, or do i have to use aop i am not sure
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2014 06:12 AM
That sounds like a spring problem, no? I mean, if the failedJobCommandFactory is a spring bean and the datasource is too, the one should be injecteable in the other, right?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2014 04:55 PM
yes i thought the same , but somehow it did not went the way the i thought
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2014 08:48 AM
So can you post your Spring config here then?
