users@glassfish.java.net

Re: Sharing EntityManagerFactory between spring app and EJB3.1 a

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Thu, 09 Feb 2012 06:18:39 +0530

Whilist I am glad you have got it working, I would like you to help me
understand your use case better. You could do this when you are free.
The issue that you raised in this thread was about sharing EMFs. Have
you accomplished that now? If so, how? How many apps or bundles do you
have? What services / beans do they make available for other
bundles/apps? How does the other apps/bundles invoke those
beans/services? Where does Hibernate fit in?

Thanks much,
Sahoo

On Wednesday 08 February 2012 10:42 PM, forums_at_java.net wrote:
>
> The blueprint helps us publish the spring app services as osgi
> services and
> consume it in the osgi app. We already managed to call services using
> jndi in
> the other direction (spring app calls osgi app).
> And yes, we can use jndi for the osgi->spring as well (publishing a
> spring
> bean in jndi) but we wanted to have it cleaner, "all osgi" if possible.
> Anyway, we found a working solution. We use
> SpringBeanAutowiringInterceptor
> to inject spring bean into an EJB in the spring app. This is EJB is
> exported
> as osgi servicer (EXPORT_EJB in manifest)
> http://static.springsource.org/spring/docs/2.5.x/reference/ejb.html [1]
>
> Thanks
>
>
>
>
> [1] http://static.springsource.org/spring/docs/2.5.x/reference/ejb.html
>
> --
>
> [Message sent by forum member 'Karo']
>
> View Post: http://forums.java.net/node/882978
>
>