Java component issues

Deploying from an EAR, JAR, or WAR If you have trouble deploying from an EAR, JAR, or WAR, you can use the Verifier tool to verify that it is valid. For details, search for “Verifier Tool” on the Java Web site.

If you are having trouble deploying a Web application, check the J2EE requirements. If an application does not adhere to the J2EE rules, you may not be able to deploy it. For example, because they require local access, entity beans that participate in a container-managed relationship must all reside in the same EJB JAR.

Static variables in Java Static variables must be final or primitive, and cannot be larger than 32 bits. They can lead to potential race conditions: a variable is defined at the class level rather than the instance level; two threads try to modify a variable simultaneously. Race conditions are difficult to troubleshoot, and cause intermittent problems. You can use synchronization to prevent race conditions, but synchronization can cause performance bottlenecks.

Synchronizing component skeletons A skeleton class interprets component invocation requests and calls the corresponding method in your component with the parameter values supplied by the client. When a client sends an invocation request, the skeleton reads the parameter data and calls the Java method. When the method returns, the skeleton sends output parameter values, return values, and exception status to the client.

Problems can arise if component skeletons become out of sync. You must generate a new skeleton class if you do any of the following: