-
1. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
nivek Jan 25, 2006 11:43 AM (in response to nivek)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.. -
2. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
alesj Jan 25, 2006 11:57 AM (in response to nivek)How exactly do you use JndiObjectFactoryBean in this case?
-
3. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
nivek Jan 25, 2006 1:04 PM (in response to nivek)Thank you for the repsponse. Here are my config settings.
JndiObjectFactoryBean
<bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean>
<property name=jndiName value=java:/OracleDS>
Transaction Manager
<bean id=transactionManager class=org.springframework.transaction.jta.JtaTransactionManager/>
oracle-ds.xml
<local-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<connection-url>jdbc:oracle:thin:@...</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>user</user-name>
password
<min-pool-size>0</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
</local-tx-datasource>
Using Spring 1.2.6 and JBoss 4.0.2 and IBatis in my DAO layer -
4. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
alesj Jan 25, 2006 2:29 PM (in response to nivek)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. -
5. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
nivek Jan 25, 2006 2:39 PM (in response to nivek)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. :( -
6. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
alesj Jan 25, 2006 2:45 PM (in response to nivek)I don't think Spring is an issue here.
You could do that with plain JNDI stuff. -
7. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
nivek Jan 27, 2006 8:22 AM (in response to nivek)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" -
8. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
alesj Jan 27, 2006 8:25 AM (in response to nivek)Yep, just like I thought.
See my second post: Is the JOFB caching it?
Rgds, Ales -
9. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
bluesky1861 Feb 28, 2006 9:58 PM (in response to nivek)heya, but, how u config the jboss-service.xml file ?
can u give me an example plz :D -
10. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
bluesky1861 Feb 28, 2006 9:59 PM (in response to nivek)my email: gavin_shang@hotmail.com
:D :D -
11. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
alesj Mar 1, 2006 12:11 PM (in response to nivek)Which jboss-service.xml file are we talkin' about?
-
12. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
bluesky1861 Mar 1, 2006 1:47 PM (in response to nivek)thx for ur reply :D
default\deploy\application.war\META-INF\jboss-service.xml
i am doing the project with myfaces1.1.1, spring1.2.6 and hibernate3 these days.
thx a lot :D -
13. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
alesj Mar 1, 2006 3:37 PM (in response to nivek)What has this xml got to do with JBoss/Spring integration?
-
14. Re: Modifying *.ds.xml in JBoss produces null ManagedConnect
bluesky1861 Mar 2, 2006 11:18 PM (in response to nivek)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?
cheers~ :D