Skip to main content

[jsr352-public] disallow setting app data to job and step properties?

  • From: Cheng Fang < >
  • To:
  • Subject: [jsr352-public] disallow setting app data to job and step properties?
  • Date: Thu, 28 Mar 2013 16:32:59 -0400

http://java.net/bugzilla/show_bug.cgi?id=4710 talks about allowing runtime setting data to job properties. What about application setting data to jobContext.getProperties(), and stepContext.getProperties()? Should the spec allow it?

I think we should make it clear (in javadoc or spec) application should not use job/step properties to pass data around.

TCK currently has this in a few places: com.ibm.jbatch.tck.artifacts.specialized.MyPartitionedBatchletImpl

jobCtx.getProperties().setProperty("progammatically.set.job.prop", "progammatically.set.job.prop.value");

if (!!!jobCtx.getProperties().getProperty("progammatically.set.job.prop").equals("progammatically.set.job.prop.value")) { (fix !!!)


Thanks,
Cheng




[jsr352-public] disallow setting app data to job and step properties?

Cheng Fang 03/28/2013
 
 
Close
loading
Please Confirm
Close