File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Enable to access to Spring Batch monitoring tbles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Enable to access to Spring Batch monitoring tbles" Watch "Enable to access to Spring Batch monitoring tbles" New topic
Author

Enable to access to Spring Batch monitoring tbles

gi tos
Greenhorn

Joined: May 15, 2012
Posts: 12
Hello,

I'm using spring Batch and I want to access to its monitoring tables (BATCH_STEP_EXECUTION_CONTEXT, BATCH_JOB_EXECUTION_CONTEXT, BATCH_STEP_EXECUTION, BATCH_JOB_EXECUTION, BATCH_JOB_PARAMS, BATCH_JOB_INSTANCE).

How should I configure this ?
I'am using the same transaction manager that my application is using:

<bean id="txProxyTemplate" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">

Thank you in advance.
GITOS.

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

So how do you look at your own tables? It is in that same place. Spring just creates the tables for you at the database DataSource that you supply. So connect to that database and then you can look at those tables.

Basically, you know where to look because you configured your DataSource.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
gi tos
Greenhorn

Joined: May 15, 2012
Posts: 12
It's OK.
I was using this jobRepository:
<bean id="jobRepository"
class="org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean"
p:transactionManager-ref="myTransactionManager"/>

And the class MapJobRepositoryFactoryBean use non-persistent in-memory DAO implementations. So I changes it by:

<batch:job-repository id="jobRepository" data-source="dataSourceAgenceDatasource"
transaction-manager="myTransactionManager" />

But I created Spring batch tables manually using the script in spring-batch-core-2.1.8.RELEASE.jar

Now if I run any batch the tables will be enriched.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enable to access to Spring Batch monitoring tbles