Issue Details (XML | Word | Printable)

Key: BATCH-245
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Dave Syer
Reporter: Douglas C. Kaminsky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Batch

make BeanRefContext.xml location configurable

Created: 03/Dec/07 05:08 PM   Updated: 07/Aug/08 10:06 AM
Component/s: Core
Affects Version/s: 1.0-m3
Fix Version/s: 1.0-m3

Time Tracking:
Original Estimate: 0.12d
Original Estimate - 0.12d
Remaining Estimate: 0.12d
Remaining Estimate - 0.12d
Time Spent: Not Specified
Remaining Estimate - 0.12d

Environment: *NIX


 Description  « Hide
Our environment is constricted such that beanRefContext.xml MUST reside under a directory within our jar. Unfortunately, this creates the problem that the default getInstance method of ContextSingletonBeanFactoryLocator does not find our xml configuration.

This can EASILY be fixed by adding a command line VM arg (eg. -Dbean.ref.context.location=...) and changing the implementationm of the default constructor for BatchCommandLineLauncher from:

public BatchCommandLineLauncher() {
beanFactoryLocator = ContextSingletonBeanFactoryLocator.getInstance();
}

To:
public BatchCommandLineLauncher() {
                                          String beanRefContextLocation = System.getProperty("bean.ref.context.location");

beanFactoryLocator = ContextSingletonBeanFactoryLocator.getInstance( beanRefContextLocation );
}

Or something similar. Please fix ASAP.

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Dave Syer added a comment - 04/Dec/07 01:38 AM
Done

Dave Syer added a comment - 07/Aug/08 10:06 AM
Assume closed as resolved and released