| IBM WebSphere Extended Deployment (XD)TM
Release 6.0 |
com.ibm.websphere.longrun
JobSchedulerHome
All Implemented Interfaces
- EJBHome
This is the home interface for the Long Running Scheduler EJB.
Clients of this interface can programmatically submit and manipulate long running
jobs to the Long Running Scheduler. Code similiar to the following can be used to lookup and invoke
the remote Long Running Scheduler EJB interface:
InitialContext ctxt = new InitialContext();
Hashtable env = new Hashtable();
env.put (Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "corbaloc:rir:/NameServiceCellRoot");
ctxt = new InitialContext(env);
// in order to lookup the Long Running Scheduler EJB from the cell context in the namespace,
// the name context to the application server or cluster to which the Long Running Scheduler
// application is deployed has to be provided.
// Eg: "nodes/myNode/servers/myServer" or "clusters/myCluster".
String longRunningContext = clusters/myCluster;
JobSchedulerHome zjsHome = (JobSchedulerHome) ctxt.lookup(longRunningContext +
"/ejb/com/ibm/websphere/longrun/JobSchedulerHome");
JobScheduler js = zjsHome.create();
Inherited Methods
Methods inherited from javax.ejb.EJBHome |
getEJBMetaData, getHomeHandle, remove, remove |
create
public JobScheduler create( | ) |
Creates a default instance of Session Bean: JobScheduler
| IBM WebSphere Extended Deployment (XD)TM
Release 6.0 |