Hi All,
I am writing one standalone
java class, which will in turn access services and dao which are in the spring framework.
I used the ClassPathXmlApplicationContect to access the appContext.
My app is deployed in weblogic server and I successfully got the appContext using the following code.
As of now for development purpose, our applicationContext.xml have datasource entry like shown below.
which I know is a bad practice to give username and password in the xml directly.
So I created one JNDI and altered the applicationContext.xml as :
Now the problem is that when I try to initialize the appcontext using ClassPathXmlApplicationContext its failing saying cannot create datasource.
I feel somehow that I need to give the server name and port number to initialize but donno how.
Please help me as my standalone cannot be run without this. But, the web application is running fine.
Happy Coding,
Anoop