String ejbName = message.getStringProperty("ejbName");
Object[] args = (Object[]) objMsg.getObject();
Object ref = enc.lookup("ejb/"+ejbName);
log.info("ejb/"+ejbName+" = "+ref);
BusinessObjectLocalHome home = (BusinessObjectLocalHome) ref;
BusinessObjectLocal bean = home.create();
String reply = bean.doSomethingSlowly(args[0], (String) args[1]);
reply = reply + "viaJMSGatewayMDB";
sendReply(reply, replyTo);
}
catch(Exception e)