بتاريخ: 17 مايو 200520 سنة comment_36550 ORACLE CONTAINERS FOR J2EE - FREQUENTLY ASKED QUESTIONS29-APR-2003Content1. Which version of Oracle9iAS Containers for J2EE (OC4J) is J2EE 1.3 compatible ?2. What are the new features in this release ?3. OC4J 9.0.3 runs on which JDK versions ?4. What is OC4J standalone ?5. How do I configure OC4J standalone?6. How do I define datasources in OC4J ?7. What is the difference between emulated and non-emulated datasources ?8. I am trying to startup OC4J and keep getting an out of memory error. How can I solve this ? 9. How can I start OC4J standalone as a service in NT ?10.How can I deploy a WAR file to OC4J standalone ?QUESTIONS & ANSWERS.1. Which version of Oracle9iAS Containers for J2EE (OC4J) is J2EE 1.3 Compatible?Version 9.0.3 of OC4J and onwards are J2EE 1.3 compatible.2. What are the new features in this release (OC4J 9.0.3) ?The features of OC4J 9.0.3 are described in the feature overview document available at http://otn.oracle.com/tech/java/oc4j/content.html3. OC4J 9.0.3 runs on which JDK versions ?OC4J 9.0.3 is certified on JDK 1.3.1, JDK 1.4.0 and JDK 1.4.1.4. What is OC4J standalone ?OC4J standalone is the Oracle9iAS Containers for J2EE distribution which can be run outside of the complete Oracle9iAS environment. OC4J standalone is typically used for development and testing purposes, and could be used for simple small scale Web solutions. Running the standalone distribution outside of the complete Oracle9iAS environment does not provide you with the benefits of managed scalabilty, Enterprise Manager support for administration and deployment, application fail-over and other Enterprise level capabilities that are contained with Oracle9iAS5. How do I configure OC4J standalone?OC4J standalone comes with a command line utility: admin.jar. This enables you to perform a set of administrative functions from the command line. Also, you may directly modify the XML configuration files in the OC4J standalone environment. These files are located in <OC4J-HOME>\j2ee\home\config.6. How do I define datasources in OC4J ?You define OC4J datasources in an XML file known as data-sources.xml. If you're using Oracle9iAS, please use Enterprise Manager(EM) to create and configure datasources. With OC4J standalone use admin.jar or edit the data-sources.xml. Refer to the OC4J standalone user's guide7. What is the difference between emulated and non-emulated datasources ?Emulated datasource - The pre-installed default data source is an emulated data source. Emulated data sources are wrappers around Oracle data sources. Used primarily by applications that access only a single database.Non-emulated datasource - Non-emulated data sources are pure Oracle data sources. Used by applications that want to coordinate access to multiple sessions within the same database or to multiple databases within a global transaction.For more on datasources, refer the Datasources chapter in Oracle9iAS Containers for J2EE Services Guide Release 28. I am trying to startup OC4J and keep getting an out of memory error. How can I solve this ? Try increasing the heap size to 100M or higher while starting the server. Start your server with this following command :[/usr/local/oc4j/j2ee/home]: java -jar -Xmx100m oc4j.jar9. How can I start OC4J standalone as a service in NT ?In Oracle9iAS Release 2, OC4J is started as a managed process by Oracle Process Management Notification (OPMN). This provides automatic startup, shutdown and death detection functionalities for OC4J processes. For environments which require the use of OC4J as a service, Oracle9iAS should be used.Optionally, you can set OC4J as a service in Windows as follows:1) Create a command file to start OC4J as follows:set PATH=c:\java1.3\bin;%PATHcd \oracle\ias\j2ee\homejava -jar oc4j.jar2) Create a service for the this command file using NT/Win2k Resource Kit. You can use the following Microsoft article how to create a service: http://support.microsoft.com/support/kb/ar...s/q137/8/90.asp10. How can I deploy a WAR file to OC4J standalone ?The command line deployment tool (admin.jar) requires an EAR file as it's deployment archive. To deploy a WAR file using this, you must package the WAR file within a EAR file.You can however manually deploy a WAR file to OC4J by following these steps<OC4J-HOME> is the location in which OC4J is installedmywar.war is the WAR file we want to deploy.1. Copy the WAR file to <OC4J-HOME>\j2ee\home\applications. Where <OC4J-HOME> is the place where OC4J is installed.2. Open the application.xml file in <OC4J-HOME>\j2ee\home\config directoryand add the following after the <web-module id="defaultWebApp" path="../default-web-app" /> line: <web-module id="mywar" path="../applications/mywar.war" /> 3. Open the default-web-site.xml file in<OC4J-HOME>\j2ee\home\config directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:<web-app application="default" name="mywar" root="/mywar" />In Oracle9iAS Release 2; deployment of applications is done either using EM or via the DCM commands.. تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.