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 the IBM WebSphere Studio Application Developer tool, 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";
The updated code would look something like the following:
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
Consider enhancements to match the following changes in the specification: