[jboss-user] [JBoss Seam] - Re: Error while testing using external database
hubaghdadi
do-not-reply at jboss.com
Sun Feb 10 02:30:50 EST 2008
Hi
It works now!!
In hibernate.cfg.xml, I changed:
| <property name="connection.datasource">ArmadaSeamProjectDatasource</property>
|
to:
| <property name="connection.datasource">java:/ArmadaSeamProjectDatasource</property>
|
And for injected Seam-managed hibernate sessions, names should be the same in components.xml and Java code, for example:
| <persistence:managed-hibernate-session name="hibernateSession" auto-create="true"/>
|
| @In
| private Session hibernateSession;
|
Thank you all and special thanks for Mr. Pete.Muir, you showed an exceptional patience. :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128150#4128150
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128150
More information about the jboss-user
mailing list