Your company supports multiple versions of a web service implemented using a stateless session
bean. Initially, it was expected that the interface would grow over time with the addition of new
methods, but now substantial changes are needed to several of the existing methods. Your
company’s clients are concerned that having old and new methods side by side would result in
unwieldy interfaces. As you review the changes, you realize that the behavior behind the old and
new operations is identical and the suggested changes are only a matter of refactoring the
operation signatures and the data types used. Which approach would you recommend to handle
this situation with minimal disruption?
A.
Customize the existing web service interface using annotations until it identical to the new
one
B.
Have the existing stateless session bean class implement the new web services interface
alongside the old one
C.
Create a new stateless session bean with the new web service interface and have it delegate
to the existing web service implementation class
D.
Duplicate the code in the existing stateless session bean class, then make the necessary
changes to its web interface and rename them accordingly