So HK2 does not have any analogue for @PersistenceContext or
@Transactional in J2SE. I've been thinking we should add some
scope/context pairs like that for the J2SE environment, but we have not
yet (perhaps I should open a Jira). As far as configuration goes, we
have a configuration module, but it is very hard-coded to XML
configurations and will probably be changing a bit when we get the
time. On the other hand, it has some nice concepts that we are going to
keep as well, but that is an area that may be undergoing some flux.
Sorry I don't have better answers for you on this!
On 7/20/2013 2:53 PM, Robert DiFalco wrote:
> I am using Spring in a very limited fashion. Essentially I use
> @PersistenceContext, @Transactional, and then @Autowired, @Service,
> @Configurable. I use Java based configuration for Spring --
> @Configuration.
>
> Is there a blog article or guide on how best to migrate from these to
> HK2 constructs? I'd like to get rid of Spring altogether but I want to
> stay on J2SE.
>
> Thanks for any guidance. If there is a better place to ask this
> question let me know.