Hi,
Am not really sure where to post this but since its a spring issue, am posting 
here. Thanks 

Following is the listener am using to initialiaze the spring context in my 
web.xml

<listener-class>org.springframework.web.context.ContextLoade 
rListener</listener-class>


I have set the following for the dataSource in my applicationContext.xml
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryB ean" 
lazy-init="true">

javax.sql.DataSource


The DataSource details are there in the oracle-ds.xml which has the following 
entry

<local-tx-datasource>
<jndi-name>CcpiDS</jndi-name> 
<connection-url>jdbcracle:thin:@cpddbs2.eng.vodafone-us.com:1530:coredev</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>CHANDRAS_CCPI</user-name>
CHANDRAS_CCPI
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.Oracle 
ExceptionSorter</exception-sorter-class-name>
<min-pool-size>2</min-pool-size>
<max-pool-size>5</max-pool-size>
</local-tx-datasource>


When the JBoss Server comes up, it tries to load the listener first and the 
listener tries to invoke the JNDI name which is not even created by this time, 
coz of which my app is not getting deployed. I want to make sure that the 
oracle-ds.xml is read first and the DataSource is created and JNDI is 
available. Am not sure how to control this. I tried so many options by setting 
the lazy-init property in the bean etc, and also tried to control the 
deployment order in JBoss, still no luck. Have anybody has any clue, pls help 
me out.

Thanks
Siraj


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953082#3953082

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953082

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to