How do I distinguish two DWR services with the same class name?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I distinguish two DWR services with the same class name?

Dave Alvarado
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: How do I distinguish two DWR services with the same class name?

david@butterdev.com
Use the name property on the RemoteProxy annotation.

David

On 2014-05-05 12:34, Dave Alvarado wrote:

> Hi,
>
> I’m using DWR 3.0.0-rc2 and Spring 3.1.4.RELEASE. I have two classes
> with the same name, but different packages and both are marked with
> the @RemoteProxy annotation …
>
>  package org.mainco.subco.package1.service;
>
>  …
>  @Service
>  @RemoteProxy
>  public class package2ServiceImpl implements OrganizationService
>  {
>
> and
>
>  package org.mainco.subco.package2.service;
>
>  …
>  @Service
>  @Transactional
>  @RemoteProxy
>  public class package2ServiceImpl implements OrganizationService
>  {
>
> My question is, on my JSP page, how do I differentiate the two
> services, because right now the JS inclusion doesn’t include the
> package name …
>
>  <script type="text/javascript" src="<c:url
> value='/dwr/interface/package2ServiceImpl.js?${appVersion}'/>"></script>
>
> Thanks, - Dave