you can find further information about how to configure datasources in the 
following wiki page:

http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources

it includes how to set up a datasource in order to access it remotely.

The following is a sample code on how to do a lookup for a datasource:

Context ctx;
  | ctx = new InitialContext();
  | ConnectionFactory cf = (ConnectionFactory)ctx.lookup(java:/MySQL);
  | Connection c = cf.getConnection();

This is a very generic example, but should give you an idea of the steps 
required.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914848


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to