|
From: da k. <reg...@ya...> - 2008-06-18 12:45:51
|
Hello, I'm trying to get RESTeasy to work with Seam hot-deployed components, but I can't figure it out. Because this is a mailing list, I will copy my posting from seamframework.org . If someone can give me some hints, I will post them to the seam forum as well. My project is using seam components, no EJBs. So all my action classes go to WEB-INF/dev and therefore are not visible for classes deployed outside, because of the custom seam class loader, right? So when I want to use a Seam and JAX-RS annotated action class (@NAME, @PATH at Class, and @GET at method) with RESTeasy, it fails to find it, because it scans in WEB-INF/classes by default. Even when I configure RESTeasy with context param resteasy.resources including the fully qualified class name, I get a ClassNotFoundException. Ok, then I tried to put the action class in model directory, changed package name and corresponding resteasy.resources param. Now RESTeasy finds the class and tries to process the @GET marked action method, but it fails with an NPE when using the injected EntityManager. I guess there is no DI happening? But I want to load the RESTeasy/JAXB annotated entity... So, the questions are: Is there a way for RESTeasy to load seam components in WEB-INF/dev? If not, can I use the @In Annotation for the EntityManager to get access to seam managed persistence context in RESTeasy? All the examples I found are using EJB/Seam components, not regular seam beans. Anyone got this to work? Thanks for any pointers... Regen PS: I'm using RESTeasy Beta 5, Seam 2.0.2.SP1, JBoss 4.2.2.GA __________________________________________________________ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com |