Patent ID: 8037479
Filing Date: 2011-10-11
Classification: G06F

Abstract:
1. A method in a data processing system for generating batch jobs in an object oriented environment, the method comprising: receiving a request to execute a batch job; responsive to receiving the request, processing a deployment descriptor file to identify a batch bean for invocation to form an identified batch bean, wherein the deployment descriptor file comprises definitions of relationships between a plurality of entity and session beans, wherein the definitions of relationships include a uses relationship and a owns relationship, wherein the uses relationship is in a container managed uses section of the deployment descriptor file, wherein the owns relationship is in a container managed owns section of the deployment descriptor file, and wherein the batch bean is identified based on a relationship specified in at least one of the container managed uses section and the container managed owns section; responsive to processing the deployment descriptor file, creating a data stream, wherein a container managed stream section of the deployment descriptor file specifies how an entity bean can be associated with the data stream; generating a getter method on a session bean associated with the entity bean, wherein the getter method performs a manual operation to obtain a reference to the session bean through a home interface, and wherein the getter method finds the home interface by performing a directory interface lookup of the session bean; repeatedly invoking the identified batch bean until an indication is returned in order to execute the batch job, wherein the identified batch bean returns on each invocation of the identified batch bean, wherein the indication indicates that a step for the identified batch bean is completed or an exception is thrown that prevents further processing, wherein the each invocation of the identified batch bean is used to process a record in a set of records for the batch job, and wherein the record in the set of records is received from an input batch data stream; responsive to the identified batch bean returning, determining whether a checkpoint should be performed, wherein the identified batch bean uses the checkpoint to determine whether a condition is met during the process of the batch job; responsive to a determination that the checkpoint should be performed, extracting a current cursor and committing a global transaction; generating a new global transaction for a next step of the batch job; and invoking a next batch bean until all job steps in the batch job are processed.