Kedar,
Unfortunately, this application is not portable and locked to JBoss-dependent naming schemes. There is no way to port it to a different appserver without modifying the application code.
It looks like a datasource whose jndi-name is "bank" was created in JBoss server. The application is looking up the datasource by its global jndi name within JBoss' java context.
Since the lookup is by its global jndi-name, I suspect there is no declaration of such resource-ref in web.xml. The webapp's ENC is bypassed altogether, and any mapping via sun-ejb.xml will not help.
-cheng
[Message sent by forum member 'cf126330' (cf126330)]
http://forums.java.net/jive/thread.jspa?messageID=243406