com.ibm.websphere.longrun
Interface JobSchedulerHome
- All Superinterfaces:
- javax.ejb.EJBHome, java.rmi.Remote
public interface JobSchedulerHome
- extends javax.ejb.EJBHome
This is the home interface for the Job Scheduler EJB.
Clients of this interface can programmatically submit and manipulate
jobs to the Job Scheduler. Code similar to the following can be used to lookup and invoke
the remote Job 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:iiop::/NameServiceCellRoot");
ctxt = new InitialContext(env);
// In order to lookup the Job Scheduler EJB from the cell context in the namespace,
// the name context to the application server or cluster to which the Job Scheduler
// application is deployed has to be provided.
// Eg: "nodes/myNode/servers/myServer" or "clusters/myCluster".
String jobSchedulerContext = clusters/myCluster;
JobSchedulerHome zjsHome = (JobSchedulerHome) PortableRemoteObject.narrow(ctxt.lookup(jobSchedulerContext +
"/ejb/com/ibm/websphere/longrun/JobSchedulerHome"),JobSchedulerHome.class);
JobScheduler js = zjsHome.create();
Method Summary |
JobScheduler |
create()
Creates a default instance of Session Bean: JobScheduler |
Methods inherited from interface javax.ejb.EJBHome |
getEJBMetaData, getHomeHandle, remove, remove |
create
JobScheduler create()
throws javax.ejb.CreateException,
java.rmi.RemoteException
- Creates a default instance of Session Bean: JobScheduler
- Throws:
javax.ejb.CreateException
java.rmi.RemoteException