Why and when to perform this task
The following information generally applies to any enterprise bean that currently complies with Version 1.0 of the Enterprise JavaBeans (EJB) specification. For more information about migrating code for beans produced with Rational Application Developer, see the documentation for that product. For more information about migrating code in general, see "Resources for learning."Steps for this task
String homeName = aLink.getEntityContext().getEnvironment().getProperty("TARGET_HOME_NAME"); if (homeName == null) homeName = "TARGET_HOME_NAME";
Context env = (Context)(new InitialContext()).lookup("java:comp/env"); String homeName = (String)env.lookup("ejb10-properties/TARGET_HOME_NAME");
public javax.ejb.HomeHandle getHomeHandle() {return null;}
What to do next
Related tasks
Task overview: Using enterprise beans in applications
Related reference
Enterprise beans: Resources for learning