Try... registry.getService( "de.fhb.bosporus.core.Receiver", Receiver.class );
with your first configuration. -----Original Message----- From: Mark Rambow [mailto:[EMAIL PROTECTED] Sent: Friday, July 01, 2005 9:36 AM To: [email protected] Subject: Configproblem: getting a service Hello, its a very simple question (I hope): I want to get a Service via: Receiver r = (Receiver) registry.getService("de.fhb.bosporus.core.hivemind.Receiver",Receiver.class) ; r.setRegistry(registry); but I can only access it by: Receiver r = (Receiver) registry.getService(Receiver.class); r.setRegistry(registry); In my Hivemodule.xml tried: <module id="de.fhb.bosporus.core" version="1.0.0"> <service-point id="Receiver" interface="de.fhb.bosporus.core.hivemind.Receiver"/> <implementation service-id="Receiver"> <create-instance class="de.fhb.bosporus.core.hivemind.ReceiverImpl" model="singleton"/> <interceptor service-id="hivemind.LoggingInterceptor"/> </implementation> </module> , I tried: <module id="de.fhb.bosporus.core" version="1.0.0"> <service-point id="hivemind.Receiver" interface="de.fhb.bosporus.core.hivemind.Receiver"/> <implementation service-id="de.fhb.bosporus.core.hivemind.Receiver"> <invoke-factory service-id="hivemind.BuilderFactory"> <construct class="de.fhb.bosporus.core.hivemind.ReceiverImpl"></construct> </invoke-factory> </implementation> </module> and I tried: <module id="de.fhb.bosporus.core" version="1.0.0"> <service-point id="Receiver" interface="de.fhb.bosporus.core.hivemind.Receiver"> <create-instance class="de.fhb.bosporus.core.hivemind.ReceiverImpl" model="singleton"/> <interceptor service-id="hivemind.LoggingInterceptor"/> </service-point> </module> I read the Documentation, but I missed the point. Thanks for every hint. (And whats the reason that there is no DTD? It could help to prevent these stupid questions :) ) Tanks Mark -- Dipl.-Inform.(FH) Mark Rambow Fachhochschule Brandenburg - University of Applied Sciences Informatik und Medien Magdeburger Straße 50 14770 Brandenburg an der Havel Tel.: (+49) 3381 / 355 426 Fax.: (+49) 3381 / 355 499 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]
