}
else {
LOG.ejb3ConfigurationName( name );
// todo : instantiating the JndiService here is temporary until HHH-6159 is resolved.
JndiServiceImpl jndiService = new JndiServiceImpl( cfg.getProperties() );
try {
jndiService.bind( name, cfg );
LOG.boundEjb3ConfigurationToJndiName( name );
try {
jndiService.addListener( name, LISTENER );
}
catch (Exception e) {
LOG.couldNotBindJndiListener();
}
}