Datasources in jboss are by default bound to java: namespace. So if you want to 
just use this jndi name then your jsp would look like (let's assume the 
datasource jndi-name is abc):

  | Context ctx = new InitialContext();
  | ctx.lookup("java:abc");

If you want to bind the datasource in global jndi namespace (i.e. make it 
available outside the server JVM) then you can follow these steps 
http://www.jboss.org/community/wiki/HowCanIAccessADataSourceFromAClient

Once you have made available the datasource globally, you can access it without 
the java: namespace:


  | Context ctx = new InitialContext();
  | ctx.lookup("abc");



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234728
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to