Java
Java EE
Documentation
Java TM 2 SDK, Enterprise Edition 1.3_01 Release Notes |
1. Read the Installation Instructions to find out how to set the J2EE_HOME and JAVA_HOME environment variables. The Installation Instructions are on our web site and may be reached by a link on the J2EE SDK download page.
2. Install the software that the Java TM 2 SDK, Enterprise Edition relies on. See the Required Software section of this document.
3. Go to the J2EE Tutorial to learn how to use the J2EE SDK. The J2EE Tutorial is found at:
here.
JDBC Data Access APIJDBC Technology Drivers
The j2eeadmin utility adds JDBC drivers, JMS destinations, and connection factories for various resources. The deploytool utility packages J2EE components and deploys J2EE applications.
The keytool utility creates public and private keys and generates X509 self-signed certificates. The J2EE SDK version is a wrapper for the J2SE SDK version, but adds a Java Cryptographic Extension provider that has implementations of RSA algorithms (licensed from RSA Data Security).
The realmtool utility manages users for the J2EE server. The verifier utility validates J2EE component files. The packager utility packages J2EE components. The cleanup utility deletes all deployed J2EE applications. The Java TM 2 SDK, Enterprise Edition (v 1.3) requires the versions of the Java TM 2 SDK, Standard Edition listed in the following table:
Note: Versions of the Java TM 2 SDK, Standard Edition not listed in the preceding table have not been tested and are not supported. For example, J2SE v. 1.2 will not work with this release of the Java TM 2 SDK, Enterprise Edition.
stmt.executeUpdate
String query = "SELECT DEPTNO FROM DEPT . . .";
String update = "UPDATE EMPLOYEE . . .";
ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {
String s = rs.getString("DEPTNO");
// The following statement will FAIL:
stmt.executeUpdate(update);
. . .
}
1. Use a stored procedure that contains the same SQL calls.
2. Substitute an iteration with a single SQL statement that contains a subquery. Here's an example:
String update = "UPDATE EMPLOYEE
SET DEPTNO =
(SELECT DEPTNO FROM DEPT
WHERE LOC = `ATLANTA')
WHERE TITLE = `ENGINEER'";
In J2SE 1.3.1, an OutOfMemoryError can result when a very large number of Java classes are loaded by the JVM, even when there are free spaces on the Java heap. Workaround: Edit bin/setenv.sh or bin/setenv.bat to add the following option to the JAVACMD variable:
-XX:MaxPermSize=256M
http://bugs.sun.com/bugdatabase/
Note: The Tomcat implementation in the J2EE SDK might be slightly different from the version of Tomcat 4.0 distributed separately because of different release schedules. For more information about Tomcat, please see http://jakarta.apache.org/.
J2EE server Listen Port: = 1050
java.lang.RuntimeException:
Could not initialize j2ee server.
Possible cause could be another instance of the server already
running.
. . .
port=10590
host=localhost
To communicate with an enterprise bean running on the J2EE SDK server, the client running on an application server provided by another vendor must have the j2ee-ri-svc.jar file in its class path.
A client is running on the J2EE SDK server doe not need the j2ee-ri-svc.jar file to communicate with an enterprise bean on an application server provided by another vendor.
The j2ee-ri-svc.jar file is located in the lib directory of the J2EE SDK installation. It contains portable system value classes such as implementations of javax.ejb.Handle and javax. ejb.EJBMetaData. These implementations are specific to the J2EE SDK.
For more information on EJB container interoperability, please refer to section 19.2 of the Enterprise JavaBeans 2.0 Specification. A link to the Specification may be found on the J2EE SDK download page.
Note that the persistence manager in the J2EE SDK only supports forward mapping of a CMP 2.0 abstract schema to a relational database. Using the J2EE SDK's tools, it is not possible to reverse map from existing database tables to a CMP 2.0 abstract schema.
Copyright © 2001 Sun Microsystems, Inc. All rights reserved.