openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Spring/EJB integration on TomEE - @Resource problem
Date Fri, 10 Aug 2012 07:49:46 GMT
the comment is to say "don't use cdi to manage @PostConstruct" since spring
already handles it (same for predestroy normally)

i added a property to my test and it works. Do you use a @Spring qualifier?

- Romain


2012/8/10 Morten Steffensen <msteff@emercos.com>

> Hi Romain,
>
> back from vacation and looking at your example. I modified it so that
> MySpringBean1 has a String property which is set in app-ctx.xml. Setting a
> breakpoint in your testcase, this property seems  to be null - not copied
> over from spring context to CDI context.. It just seem that a MySpringBean1
> instance has been created and injected in MyCdiBean1. I set a breakpoint in
> SpringBean create method, and this is apparently not called..  I wonder if
> that is the problem. What does your comment 'postconstruct managed by
> spring' mean ?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Spring-EJB-integration-on-TomEE-Resource-problem-tp4656379p4656770.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message