cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a Datasource when using failedjobcommandfactory

chirantan
Champ in-the-making
Champ in-the-making
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
5 REPLIES 5

trademak
Star Contributor
Star Contributor
I'm sorry, but I don't understand your question. Can you explain in more details what you are doing exactly?

Thanks,

chirantan
Champ in-the-making
Champ in-the-making
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

jbarrez
Star Contributor
Star Contributor
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?

chirantan
Champ in-the-making
Champ in-the-making
yes i thought the same , but somehow it did not went the way the i thought

jbarrez
Star Contributor
Star Contributor
So can you post your Spring config here then?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.