Thiago,

I get the following error:

2010-01-26 16:43:11,453 ERROR [SerializationSupport] Setting a new service
proxy provider when there's already an existing provider. This may indicate
that you have multiple IoC Registries.

I've only one instance of Registry running!!??

 - Ashwanth Kumar

On Tue, Jan 26, 2010 at 4:00 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 26 Jan 2010 05:10:56 -0200, Ashwanth Kumar <
> ashwanth.ku...@gmail.com> wrote:
>
>  Hello,
>>
>
> Hi!
>
>
>  I'm now, trying to do a desktop client for which i need some CRUD actions,
>> and since, being a user of Tapestry, i thought i could use Tapestry IoC
>> standalone for my app. Can anyone provide me some light on using Tapestry
>> IoC, on an offline app.
>>
>
> Tapestry-IoC works exactly the same with or without Tapestry. In your case,
> you just need to start the Registry yourself. It's documented here:
> http://tapestry.apache.org/tapestry5.1/tapestry-ioc/run.html. To load
> modules from the classpath and add them to your RegistryBuilder, just call
> IOCUtilities.addDefaultModules(builder);.
>
> Simple example:
>
>
> RegistryBuilder builder = new RegistryBuilder();
> builder.add(ModuleClass1.class, ModuleClass2.class);
> IOCUtilities.addDefaultModules(builder);
> final Registry registry = builder.build();
>
> SomeService service = registry.getService(SomeService.class);
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to