You should only have to import the interface (api) that you are trying to get 
the service for.   You don't have to specifically import the implementation.

~Matt

-----Original Message-----
From: Imóveis Nacionais [mailto:[email protected]] 
Sent: Tuesday, February 12, 2013 10:10 AM
To: [email protected]
Subject: Re: Very beginner question: maven, netbeans. Implementing a client....

On Tue, Feb 12, 2013 at 12:47 PM, Holger Hoffstätte < 
[email protected]> wrote:

> On 02/12/13 13:21, Imóveis Nacionais wrote:
> >
> > How can I access server bundle interface type during compile time?
> >
>
> By adding it into a separate -api jar for (both client and server) 
> compile time. For runtime you can either turn that jar into a bundle 
> as well (so that compile-time structure resembles runtime) or inline 
> the -api into the server bundle and have it exported, so that API and 
> implementation come as one deployment unit. There are advantages and 
> disadvantages to both approaches; neither is "right" or wrong".
> The first part (api/client/server trifecta) has nothing to do with 
> OSGi and applies just as well to any regular Java project.
>
> -h
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Well, It seems that I have to 'import' the 'server' jar into de client bundle 
project, right?

Alex
-
This message is intended only for the addressee and may contain information 
that is company confidential or privileged.  Any technical data in this message 
may be exported only in accordance with the U.S. International Traffic in Arms 
Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 
CFR Parts 730-774). Unauthorized use is strictly prohibited and may be 
unlawful. If you are not the intended recipient, or the person responsible for 
delivering to the intended recipient, you should not read, copy, disclose or 
otherwise use this message. If you have received this email in error, please 
delete it, and advise the sender immediately. 
-                                                                               
                                                                                
                                                                                
        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to