The data source configured by OC4J, if there is no problem, if there is no problem in the OC4J itself, there is no problem such as: OC4J903 / J2EE / Home / Config / Data-Sources.xml
Add calls in the program: DataSource DataSource = (Datasource) Context.lookup ("JDBC / Portaldb"); no problem;
If it is the RMI remote call, the following error will appear: 'javax.naming.namingexception: not in an application scope - start orion with the -userthreads switch if using user-create threads'
Solution: Add parameters to OC4J's startup files: -userthreads such as: java -jar c o j jar - ustereads