throws ResourceAdapterInternalException
{
String fullName = _registry.makeFullName(_serviceName);
if (_boundName != null)
throw new ResourceAdapterInternalException(L.l("cannot bind rmi service with name `{0}', already bound with name `{1}'", fullName, _boundName));
try {
_boundObject = (Remote) _serviceClassClass.newInstance();
if (log.isLoggable(Level.FINE))
log.fine(L.l("binding rmi name `{0}' to object `{1}'",fullName,_boundObject.getClass().getName()));
Naming.rebind(fullName, _boundObject);
_boundName = fullName;
}
catch (Exception ex) {
throw new ResourceAdapterInternalException(L.l("error binding rmi service with name `{0}'", fullName),ex);
}
}