Oracle9IAS Containers for J2EE Independent Edition Guide - (OC4J Data Source Configuration, Call and RMI)

xiaoxiao2021-03-06  40

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

转载请注明原文地址:https://www.9cbs.com/read-51627.html

New Post(0)