-
1. Re: You are trying to use a connection factory that has been
alesj May 22, 2006 8:22 AM (in response to shileiofchina)This is not 'Spring/Hibernate used in JBossAS' forum.
Read what this forum is about:
http://java.sys-con.com/read/180386.htm
Rgds, Ales -
2. Re: You are trying to use a connection factory that has been
shileiofchina May 22, 2006 9:24 AM (in response to shileiofchina)I'm sorry .I don't think that the article you gave me can help me .
Because I just use Hibernate MBean . the problem that i met displayed that it occured in Hibernate MBean .MayBe I use it incorrectly .
For example i can't use JTATransaction in Spring . I don't know .
please help me .
Thanks. -
3. Re: You are trying to use a connection factory that has been
alesj May 22, 2006 9:32 AM (in response to shileiofchina)You missed the point - wrong forum!
Ok, a little help.
This probably happens after you re-deploy your -ds.xml?
If so, check out 'JCA/JBoss
DataSource and Legacy Configuration' or ' Persistence,JBoss/CMP, Hibernate, Database
Persisting your Application's Data' forum.
It should be there - I know there is this issue is certain JEMS stuff, but where exactly ... -
4. Re: You are trying to use a connection factory that has been
shileiofchina May 22, 2006 9:43 AM (in response to shileiofchina)I'm sorry to disturb you .
It often happened after the application running some times . i don't why .
I will go to rigth form , Thank you very much . -
5. Re: You are trying to use a connection factory that has been
tbarnier May 22, 2006 11:17 AM (in response to shileiofchina)Hi,
Did you check your problem doesn't come from a classloader issue?
As you apprently need to specify some classpath inside the META-INF directory (I guess it is in the section 2.5.1 of the JBOSS AS documentation)
Thierry -
6. Re: You are trying to use a connection factory that has been
shileiofchina May 24, 2006 6:52 AM (in response to shileiofchina)Thanks very much . I will check it .
shi lei -
7. Re: You are trying to use a connection factory that has been
quentincompson May 24, 2006 1:21 PM (in response to shileiofchina)
you need the lines in bold -
8. Re: You are trying to use a connection factory that has been
quentincompson May 24, 2006 1:22 PM (in response to shileiofchina)<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="java:/aaaaaaaaaaa" /> <property name="cache" value="false" /> <property name="proxyInterface" value="javax.sql.DataSource" /> </bean>
sorry