Chapter 11 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 EAServer packages, as described in "Deploying components".
Deploying Java components to EAServer
Your application may have a potential security hole if Java component implementation classes are deployed under the EAServer html directory. An unauthorized user can implement a program that connects to EAServer'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:
You can 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 EAServer java/classes subdirectory. Classes loaded from a different code base directory will not be reloaded. EAServer only reloads the component's implementation class, the skeleton class, and any classes on the Java Classes tab in the Component Properties Dialog box. "Custom class lists for Java and EJB components" describes how to configure the custom class list.
Refreshing a component
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 Advanced tab in the Component Properties window. See "Component properties: Advanced" for more information.
In some cases, you may want to disable refresh for Java components.
You can do so by setting the com.sybase.jaguar.component.refresh
component property
to false.
When refresh is disabled, all Java classes that your component depends on must be deployed under a Java code base that is specified in the server's CLASSPATH environment variable. If the component uses classes in a JAR file, you must add the JAR file to the server CLASSPATH variable.
If you deploy your component files to the class tree that starts in the EAServer 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.
| Copyright (C) 2004. Sybase Inc. All rights reserved. |
| |