As a followup, the old-style JNDI registration does exist in Resin
4.0.5. It requires an ejb-server in the cluster which looks like:
resin
cluster
ejb-server jndi-prefix=java:comp/env/ejb/
...
Basic ejb-ref support will be added to 4.0.6, although the full
support won't be ready until
smallufo wrote:
2010/3/24 smallufo small...@gmail.com mailto:small...@gmail.com
Mmm... There is no ejb-jar.xml in META-INF/
After adding an empty ejb-jar.xml , it still doesn't work.
No matter 4.0.4 or 4.0.5
BTW I tried a lot of ejb-jar.xml settings , but non works...
Is
2010/3/25 Scott Ferguson f...@caucho.com
Thanks. Can you add an ejb-server/ to your resin.xml (inside the
cluster).
That's a Resin bug because the ejb-server/ wasn't supposed to be
required any more.
-- Scott
Thank you , it works !
public class HelloServlet extends HttpServlet {
@EJB
smallufo wrote:
2010/3/25 Scott Ferguson f...@caucho.com mailto:f...@caucho.com
Thank you , it works !
public class HelloServlet extends HttpServlet {
@EJB / @Inject both works
private PersonService personService;
Now I can inject into Servlet with @EJB and @Inject , though I don't
Thanks , but I tried some settings in 'ejb-jar.xml' , but still cannot get
the Stateless bean from JNDI ,
Here are some of my settings :
!--
session
ejb-nameSession/ejb-name
ejb-classdata.PersonServiceImpl/ejb-class
ejb-ref
In Resin 4.0.4
I follow this step :
http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello, World
public interface PersonDao {
//... methods...
}
@Stateless
public class PersonServiceImpl implements PersonService , Serializable {
@Inject
private PersonDao personDao;
...
}
The dao can be
Can you show your resin-web.xml?
The first thing that leaps out at me (and may be okay, but looks odd)
is: com.caucho.config.ConfigException:
*foo.HelloServlet.personService*:
javax.enterprise.inject.UnsatisfiedResolutionException: Can't find a
bean for 'interface *foo.PersonService*'.
2010/3/24 Aaron Freeman aaron.free...@layerz.com
Can you show your resin-web.xml?
I only define database tags there :
web-app xmlns=http://caucho.com/ns/resin;
database jndi-name=jdbc/data
driver type=com.mysql.jdbc.Driver
smallufo wrote:
In Resin 4.0.4
I follow this step :
http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello, World
http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello,%20World
Do you have a META-INF/ejb-jar.xml? We're currently requiring that file
as a marker for classpath scanning (although
Hi!
I have the problem with CanDI's tag @Startup in 4.0.4.
I upgrade to 4.0.5 and now it works.
So I suppose you may try 4.0.5. May be it fix? ;)
В Wed, 24 Mar 2010 01:52:17 +0800
smallufo small...@gmail.com пишет:
In Resin 4.0.4
I follow this step :
Mmm... There is no ejb-jar.xml in META-INF/
After adding an empty ejb-jar.xml , it still doesn't work.
No matter 4.0.4 or 4.0.5
2010/3/24 Scott Ferguson f...@caucho.com
smallufo wrote:
In Resin 4.0.4
I follow this step :
http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello, World
2010/3/24 smallufo small...@gmail.com
Mmm... There is no ejb-jar.xml in META-INF/
After adding an empty ejb-jar.xml , it still doesn't work.
No matter 4.0.4 or 4.0.5
BTW I tried a lot of ejb-jar.xml settings , but non works...
Is there any working example for this simple scenario ?
12 matches
Mail list logo