Business delegate pattern: Difference between revisions

Content deleted Content added
Sample code: remove duplicate code
 
Line 50:
"Resource", homeClazz);
session = home.create();
} catch (ServiceLocatorException ex) {
// Translate Service Locator exception into
// application exception
throw new ResourceException(...);
} catch (CreateException ex) {
// Translate the Session create exception into
// application exception
throw new ResourceException(...);
} catch (RemoteException ex) {
// Translate the Remote exception into
// application exception
Line 107:
try {
return session.getResourceDetails();
} catch (RemoteException ex) {
// Translate the service exception into
// application exception
Line 118:
try {
session.setResourceDetails(vo);
} catch (RemoteException ex) {
throw new ResourceException(...);
}
Line 127:
try {
session.addResource(vo);
} catch (RemoteException ex) {
throw new ResourceException(...);
}