[GLASSFISH-20406] @Inject @BatchProperty not working Created: 25/Apr/13 Updated: 26/Apr/13 Resolved: 26/Apr/13
|Resolution:||Works as designed||Votes:||0|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Win 7, JDK 7
Trying to use a batch property in a reader:
Either defining it as
<reader ref="entryReader" >
JobOperator jo = BatchRuntime.getJobOperator();
nor directly defining it in the job.xml works.
Try the example here:
The EntryReader is where the injection should take place.
|Comment by arunkumar_s [ 25/Apr/13 ]|
If you can use the inject variable(filename) for verifying values in the open() method of the Reader, rather than the constructor, then it returns the values from passed JobParameters.
|Comment by myfear [ 26/Apr/13 ]|
That actually worked. Close please.
|Comment by Mahesh Kannan [ 26/Apr/13 ]|
Closing this issue as the submitter has confirmed that this is indeed working