tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
Subject Re: Spring/EJB integration on TomEE - @Resource problem
Date Wed, 18 Jul 2012 17:24:31 GMT

the funny thing is it should work providing openejb in a webapp in
tomcat....but well you'll loose a lot of tomee features.

What i wonder is why using this (now old) integration? why not using an
existing (or one you write since it is easy) cdi extension simply adding to
cdi spring beans? This way you'll be able to @Inject your spring beans


- Romain

2012/7/18 Morten Steffensen <>

> Hi,
> I have a web application using Spring, and loading a Stateless Ejb by using
> ClassPathApplication.
> The Ejb is supposed to make a facade for Remoting the application.
> The Ejb uses @Resource for referring back to a Spring bean (like
> CineplexImpl in the spring integration example). When deploying on Tomee I
> get the exception:
> "No provider available for resource-ref 'null' of type
> 'com.myapp.components.IdentityCheckComponent' for 'MyAppStateLessImpl'."
> The junit test calling a method on the Ejb works running locally in my IDE.
> There is probably some race condition of loading beans and EJB i guess.. ?
> Can anybody give me a hint ?
> /Morten
> --
> View this message in context:
> Sent from the OpenEJB User mailing list archive at

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