This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enable to access to Spring Batch monitoring tbles

 
gi tos
Greenhorn
Posts: 12
  • 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: 17278
6
IntelliJ IDE Mac Spring
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic