• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Enable to access to Spring Batch monitoring tbles

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic