PQ54033: PROBLEM WITH IMPLEMENTATION CLASSES. | |||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||
APAR status Closed as suggestion for future release. Error description Apparently WAS 4 is missing the functionality for having two different implementation classes with the same Home and Remote interface in the same jar file. Customer requires this function.Local fix Problem summary Problem conclusion Temporary fix Comments This is a current limitation in WebSphere Application Server. The problem lies with the container, not the generated code, and is a WebSphere restriction at 4.0. What the customer is trying to do is not currently supported. The foo-ejb.jar contains 2 stateful session beans which have unique implementation classes but share the home and remote interfaces. WebSphere generates home and remote implementations for the 2 beans, but since the beans share home and remote interfaces, they get the same implementations. Herein lies the problem. The generated implementations have explicit dependencies on the bean implementation class. Specifically, there are places where we cast an object to the bean impl class. In the example from the customer, it so happens that the generated code casts to Foo1 (in the latest version of the code, it casts to Foo2). So the Foo1 bean works, but Foo2 fails when WebSphere tries to cast it to Foo1. This is a container issue because the container controls the names of the generated implementation classes. It is an unfortunate choice, but WebSphere uses names that are derived from the home and remote interface names. Thus, two beans that share interfaces get implementation classes with the same name. A change will be considered in a possible future release.
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ54033
IBM Group: Software Group
Modified date: Jan 7, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.