cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: data source reference in ear

Former Member
0 Kudos

Hi

I have a data source manually created on the NWA. I see that the data source is not started before my application hence my application loading fails. I have static blocks in my classes which depend upon the data source and once they run the class initialisation fails. I restart the application to get it running. Can I provide a hard reference to the datasource? I did it in the ear file application j2ee xml but I dont seem to get it right. Can someone tell me how to do it? Thank you.

regards

Lakshminarayanan.V

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

You have two options:

- The easiest and recommended way would be to define your datasource via data-sources.xml in the META-INF dir of your EAR application. Thus you won't have any dependency on an external resource.

- You can define a hard reference to the manually created datasource, but for that you need to know the app name that is assigned to that datasource. You can look for it in the NWA or in the telnet console.

Hope that helps!

\-- Vladimir

Former Member
0 Kudos

Hi

Thanks Vladimir Pavlov, it works now with the correct application name. I had picked the wrong one some how.

Here we go: NWA-> Config Management->Start and Stop JEE Applns-> (search for Data Source name)

in my case JDBCConnector_jdbc~XXXXX.xml

Regards

Lakshminarayanan.V

Edited by: vln on Jul 23, 2008 5:37 PM

Answers (0)