Chapter 12 Creating CORBA-Java Components
This section describes how to deploy a Java component to a server for the first time for development testing. Deployment to production servers is typically performed by exporting and importing Jaguar packages, as described in "Deploy components".
To deploy Java components on a Jaguar server:
com.sybase.jaguar.component.java.classes
property.
See "Refreshing Java components" for
more information.For security reasons, it is preferable to deploy Java components to the java/classes subdirectory or some other directory that is not accessible to HTTP downloads. See "Security considerations for deployment" for more information. Deploying to this directory also allows your component to be refreshed, and allows you to deploy classes in JAR files without reconfiguring the server's CLASSPATH environment variable.
All Java classes that your component depends on must be deployed under a Java code base that is specified in the Jaguar server's CLASSPATH environment variable.
If you deploy your component files to the class tree that starts in the Jaguar java/classes or html/classes subdirectory, they will be in the server CLASSPATH by default. If you deploy to another location, add this location to the CLASSPATH setting for the server process as follows:
Your application may have a potential security hole if Java component implementation classes are deployed under the Jaguar html directory. An unauthorized user can implement a program that connects to Jaguar's HTTP port and downloads the component's implementation classes. The user can then decompile the classes and gain access to potentially sensitive information such as database passwords. To close this security hole, Sybase recommends one of the following approaches:
Jaguar Manager allows you to refresh a component's implementation classes while the server is running. You do not need to shut down and restart the server. All classes that can be refreshed must be deployed under the Jaguar java/classes subdirectory. Classes loaded from a different code base directory will not be reloaded. Jaguar only reloads the component's implementation class, the skeleton class, and any classes specified in the com.sybase.jaguar.component.java.classes property. This property must be set on the All Properties window. "All Properties tab" describes how to set properties on this tab. "com.sybase.jaguar.component.java.classes" describes the syntax of this property.
You can refresh a component as follows:
If the com.sybase.jaguar.component.refresh property
is set to false
(the default is true
),
the component cannot be refreshed. This property must be set on
the All Properties tab in the Component Properties window. See "All Properties tab" for more information.
Copyright © 2000 Sybase, Inc. All rights reserved. |