Skip to content

Commit

Permalink
Merge pull request #37 from PayU-Tech/issue-28
Browse files Browse the repository at this point in the history
[#28] Use qualified name of interface in service address
  • Loading branch information
lukaszPulawski committed Apr 30, 2015
2 parents dc07e54 + 7a55a36 commit 1730b77
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public Object postProcessBeforeInitialization(Object o, String s) throws BeansEx
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
if (isService(bean, beanName)) {
final String serviceName = getFirstInterface(bean).getSimpleName();
final HessianServiceExporter hessianServiceExporter = exportService(bean, serviceName);
registerStrategy.registerService(hessianServiceExporter.getServiceInterface().getCanonicalName(), address + serviceName);
final String relativeServiceAddress = getFirstInterface(bean).getCanonicalName();
final HessianServiceExporter hessianServiceExporter = exportService(bean, relativeServiceAddress);
registerStrategy.registerService(hessianServiceExporter.getServiceInterface().getCanonicalName(), address + relativeServiceAddress);
registeredServices.put(beanName, bean);
LOGGER.info("Bean {} published as a service: {}", bean, bean.toString());
}
Expand Down

0 comments on commit 1730b77

Please sign in to comment.