Please let me know if I can provide any more information. I can't belive that I'm the only one with this problem.
How do I re-enlist my JndiObjectFactoryBean with the newly generated ConnectionFactory once a change is made to the *.ds.xml file while the server is running and the application is deployed?
Any feedback would be greatly appreciated..
How exactly do you use JndiObjectFactoryBean in this case?
Thank you for the repsponse. Here are my config settings.
<bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean>
<property name=jndiName value=java:/OracleDS>
<bean id=transactionManager class=org.springframework.transaction.jta.JtaTransactionManager/>
Using Spring 1.2.6 and JBoss 4.0.2 and IBatis in my DAO layer
Hmm .. I believe something similar happened to me also.
Couldn't quite figure it out why this is happening. But I must say I didn't look too hard.
But this is more of "JBoss.com -> JBoss User -> JCA/JBoss" topic.
One would think that when pulling out object from JNDI should have dealt with this.
Is the JOFB caching it?
If you get some positive reply, please let me know.
Sorry couldn't be more helpful.
Boy that sure wasn't the responce I was hoping to get. I can already see Adrian's post in the JCA forum reading "This isn't a %^$# JBoss issue, it's a Spring issue".
What are your thoughts of possibly using a ConnectionFactory proxy to interogate the factory and reinitialize it if lost?
I'm about to say screw it all and just use DBCP and not JBoss connection pooling. :(
I don't think Spring is an issue here.
You could do that with plain JNDI stuff.
I found the solution to my problem. Here is what I had to do to get hot deployment of JNDI objects working in Spring with JBoss:
Add this to the JndiObjectFactoryBean bean
property name="cache" value="false"
property name="proxyInterface" value="javax.sql.DataSource"
Yep, just like I thought.
See my second post: Is the JOFB caching it?
heya, but, how u config the jboss-service.xml file ?
can u give me an example plz :D
Which jboss-service.xml file are we talkin' about?
thx for ur reply :D
i am doing the project with myfaces1.1.1, spring1.2.6 and hibernate3 these days.
thx a lot :D
What has this xml got to do with JBoss/Spring integration?
yeah... it's a deploy problem i think
BTW, where can i find the jboss deployment solution for such a myfaces+spring+hibernate3 based project?