smallufo wrote:
I can now pinpoint the error ,
It's because I declare the PersistenceContextType
to PersistenceContextType.EXTENDED !!!
I don't know why resin cannot initialize EXTENDED PersistenceContext
Because extended is only allowed when it's integrated with a stateful
session bean and
After a whole day work (but in vain) , I modified my code :
I take off all hibernate-related settings/libraries from persistence.xml and
maven dependencies , I just want to first use resin's Amber to test whether
CanDI works...
This is database settings in resin-web.xml :
database
I can now pinpoint the error ,
It's because I declare the PersistenceContextType
to PersistenceContextType.EXTENDED !!!
I don't know why resin cannot initialize EXTENDED PersistenceContext
Maybe caucho should look into the PersistenceContextGenerator.java ,
create() method
try {
if
I am new to CanDI , I want to migrate my spring app to JavaEE6 , but having
a lot of troubles in Resin (4.0.5) CanDI :
There is no working sample in the resin site , most are outdated ...
Here is my very basic sample , just JPA 2 and a Servlet :
public interface PersonDao {
public Person
BTW , Is META-INF/beans.xml defined in the JavaEE spec ? What's the
relation with beans.xml and resin-web.xml ?
yes, beans.xml is part of JSR-299.
resin-web.xml has the same role as web.xml, it is processed by Resin
after web.xml. You can place resin specific / non-standard configuration
Thank you ...
Back to the topic ..
Is there any example that shows injecting JPA entitymanager to the DaoImpl
, and inject the DaoImpl (as a Dao interface) to the Servlet ?
2010/3/21 Hontvári József hontv...@flyordie.com
BTW , Is META-INF/beans.xml defined in the JavaEE spec ? What's the