I use the following code (from the JOnAS doc)
to get the DataSource in a SessionBean

  Properties env = ctx.getEnvironment(); // ctx is the EntityContext
  String dataSourceName = env.getProperty("datasource.name");
  dataSource = (DataSource)initialContext.lookup(dataSourceName);

Problem is, that "ctx.getEnvironment()" is a deprecated 
methode. So what is the correct way to get the DataSource?

Thanks, Max
---
Dipl.-Ing. Maximilian Wei�b�ck
Intellinet EDV-Dienstleistungsges.m.b.H
mailto:[EMAIL PROTECTED]
http://www.intellinet.at

Reply via email to