Im Working in JBoss portals .. i want to connect to the database. for that i was created *-ds.xml file .. with in that i mentioned database stuff.. then i was called that the JNDI name in my portlet like
InitialContext ctxt = new InitialContext();
DataSource ds = (DataSource)ctxt.lookup("PortalDS");
Connection conn = ds.getConnection();
tell me what to do in web.xml and in the remaining files(jboss-web.xml)
here im getting javax.naming.nanenotfound Exception.. plz send me quick reply..
Thanx in Advance
DataSource pool = (DataSource) new InitialContext().lookup("java:PortalDS");