File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enable to access to Spring Batch monitoring tbles

 
gi tos
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
gi tos
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic