
400 WebSphere Business Integrator Server Foundation V5.1 Handbook
Example 14-1 BatchProcessBean.java
//...
import javax.naming.*;
import process.helloworld.com.process91337437.*;
import com.ibm.websphere.scheduler.TaskStatus;
//...
public void process(TaskStatus status) {
String jndi_name_process = "java:comp/env/ejb/HelloWorldBean";
System.out.println("**************************************************");
System.out.println("Scheduler bean: starting...");
try {
// Obtain the default initial JNDI context
Context initialContext = new InitialContext();
// Lookup the remote home interface of the BusinessProcess bean
Object result = initialContext.lookup(jndi ...