public String createEntity()
throws CreateException
{
String msg = null;
EntityPKHome home = null;
log.info("Enter createEntity, theKey="+theKey);
try
{
InitialContext ctx = new InitialContext();
Context enc = (Context) ctx.lookup("java:comp/env");
home = (EntityPKHome) enc.lookup("ejb/EntityPKHome");
EntityPK bean = home.findByPrimaryKey(theKey);
msg = "Found EntityPK, bean="+bean;
log.info(msg);
}
catch(FinderException e)
{
EntityPK bean = home.create(theKey.aBoolean, theKey.anInt, theKey.aLong,
theKey.aDouble, theKey.aString);
msg = "Created EntityPK, bean="+bean;
log.info(msg);
}
catch(Exception e)