Description
Java 5 EE introduces a new "javax.ejb.Remote" interface.
Currently Daytrader EJBs Quote.java and QuoteHome.java import Java packages with wild cards.
For example:
import javax.ejb.*;
import java.math.BigDecimal;
import com.ibm.websphere.samples.trade.*;
import java.rmi.*;
Prior to Java 5 EE there was only one Remote interface (java.rmi.Remote). Therefore it is clear that Quote.java and QuoteHome.java extend the java.rmi.Remote interface.
When we start to support Java 5EE however, there will be two "Remote" interfaces (java.rmi.Remote and javax.ejb.Remote. That will cause confusion for the java compiler during the ejbdeploy.
The solution is really simple: to provide the full interface name/path during imports.
I know that this is not a problem for Daytrader yet but it will become. So lets be proactive, fix the imports now and avoid the problem in the future.
I am providing a fix for this issue.