[jboss-user] [Beginner's Corner] New message: "Re: Migrate from Jboss 4.2.3 to Jboss 5.1.0 ==> lookup("java:comp/env") threw exception"

hua lin do-not-reply at jboss.com
Tue Mar 2 21:44:51 EST 2010


User development,

A new message was posted in the thread "Migrate from Jboss 4.2.3 to Jboss 5.1.0 ==> lookup("java:comp/env") threw exception":

http://community.jboss.org/message/529516#529516

Author  : hua lin
Profile : http://community.jboss.org/people/fjlinhua

Message:
--------------------------------------------------------------
you must used:
  ic = new InitialContext();
 
 
  ds = (DataSource)ic.lookup( "java:/xxxxx" );
  con = ds.getConnection(); 
to get datasource.
--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/529516#529516




More information about the jboss-user mailing list