You may be there already, but in any case ;)

You should be able to resolve all service points for the interface being passed into getService - RegistryInfrastructureImpl keeps a map of them ... The get the service id from there ... If more than one - list all?

Johan

On Wed, 27 Apr 2005 07:21:37 -0400, James Carman <[EMAIL PROTECTED]> wrote:

It kind of goes along with the idea of "line precise error reporting" in
that it does kind of nudge you in the right direction, as you said.  I'll
see what I can do.

-----Original Message-----
From: Johan Lindquist [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 7:17 AM
To: [email protected]
Subject: Re: Loading descriptor


The prefix message would probably be a good idea - would definately point you in the right direction ...

Johan

On Wed, 27 Apr 2005 06:38:09 -0400, James Carman
<[EMAIL PROTECTED]> wrote:

This is probably one of the most frequently asked questions.  I know
I've answered this question before.  Perhaps we should come up with a
troubleshooting guide?  Or, maybe the error message should say
something like "you need to prefix your service id with the module id"
when you
give a
service id with no '.' character in it? Maybe the registry could even be
smart enough to say "The service id 'Part' is not prefixed with a module
id.
Did you mean 'test.Part'?"


-----Original Message-----
From: Igor Laberov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 5:24 AM
To: [email protected]
Subject: Re: Loading descriptor


Thanks, Johan, it works now :)


On Wed, 2005-04-27 at 11:41, Johan Lindquist wrote:
You need to prefix the service id with the module id (i.e.
"test.Part"), then it should load it.  If your service is the only
service defined
using

the interface one.PartitionService, then you can simply do:

PartitionService c =
(PartitionService)registry.getService(PartitionService.class);

Cheers,

Johan

On 27 Apr 2005 11:36:20 +0300, Igor Laberov <[EMAIL PROTECTED]>
wrote:

> Yes, I put it before.
> May be I make wrong call to service:
>    PartitionService c = (PartitionService)
> registry.getService("Part",PartitionService.class);
> while XML contains:
> <module id="test" version="1.0.0">
>   <service-point id="Part" interface="one.PartitionService">
>     <create-instance class="one.PartitionServiceImpl"/>
>   </service-point>
> </module>
>
>
> Igor
>
>
> On Wed, 2005-04-27 at 11:08, Johan Lindquist wrote:
>> Igor,
>>
>> Perhaps a stupid question, but did you put the descriptor in
>> META-INF/hivemodule.xml on the classpath?
>>
>> Johan
>>
>> On 27 Apr 2005 11:02:20 +0300, Igor Laberov <[EMAIL PROTECTED]>
>> wrote:
>>
>> > Hi all,
>> > I'm trying to build simple application with HiveMind, but it
>> > seems
>> that
>> > registry doesn't load my descriptor (I've added descriptor
>> > location to the classpath). I also checked Registry content in
>> > debugger, and I saw that descriptor wasn't loaded. Should I make
>> > definitions in another places?
>> >
>> > Thank you,
>> > Igor Laberov
>> > Qlusters, Inc.
>> >
>> >
>> >
>> >
>> > ----------------------------------------------------------------
>> > -
>> > ----
>> > To unsubscribe, e-mail:
[EMAIL PROTECTED]
>> > For additional commands, e-mail:
[EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>> --
>> you too?
>>
>> ------------------------------------------------------------------
>> -
>> --
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail:
[EMAIL PROTECTED]
>>
>
>
>
> -------------------------------------------------------------------
> -
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-- you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to