Nick Pilch wrote:
> Hi all. I'm trying to update my resin 3.0 config file to resin 3.1 and 
> I'm not sure how to convert a bean definition. I'm creating a bean 
> like this:
>
> <bean name="properties" type="some.class.i.Have" >
>     <init>
>         
> <propertyFileDirectory>${server.root}/somedir</propertyFileDirectory>
>     </init>
> </bean>
>
> In resin 3.0, this calls Have.init() and Have.setPropertyFileDirectory()
>
> In resin 3.1, Have.init() is not called. How do I get it to be called? 
> Thanks!

Try adding a @javax.annotation.PostConstruct annotation to the init() 
method.

Resin 3.0 was detecting the init methods by the method name. Resin 3.1 
and later uses the standard annotations.

-- Scott
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>   



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to