Hi, I think this is a missunderstanding of the package keyword in this
context. What you have defined is a service operation with package
visibility that returns the external java class org.helloworld.moon. :-P

java package can be defined for domain objects, but not for services.

The java package names can be defined as described in 
http://fornax-platform.org/cp/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-PackageNames
Developer's Guide , but that is a global naming conventions and not for an
individual service.

/Patrik


ok wrote:
> 
> 1. Two services got specified packages.
> 2. Service Two delegates a method to service One.
> 3. The delegated service is of return type void.
> 
> Application Universe {
>     basePackage=org.helloworld
> 
>     Module milkyway {
> 
>         Service MoonService {
>             package org.helloworld.moon
>             sayHello(String moonName);
>         }
> 
>         Service PlanetService {
>             package org.helloworld.planet
>             sayHello => MoonService.sayHello;
>         }
>     }
> }
> 
> The generated method in
> org.helloworld.milkyway.serviceimpl.PlanetServiceImplBase produces a
> compile error, because the specified package is set despite the return
> type is void:
> 
>     /**
>      * Delegates to [EMAIL PROTECTED]
> org.helloworld.milkyway.serviceapi.MoonService#sayHello}
>      */
>     org.helloworld.planet sayHello(ServiceContext ctx, String moonName) {
>         return moonService.sayHello(ctx, moonName);
>     }
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Delegation-of-void-method-and-specific-service-package-tp15740419s17564p15814165.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to