Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jakartaee-platform-dev] Mixing namespaces


 There are many projects which are probably still using EARs or pulling code in from a third party package that may or may not be updated. It is envisioned that an application either has to use javax or jakartaee but not mix them? For example, in a EAR you have a WAR using JakartaEE and then a JAR with EJBs using javax. 

Another example, say someone has the both javax and jakartaee interface jars on the class path and accidentally ends up with the imports statements below:
import javax.annotation.PostConstruct;
import javax.annotation.security.PermitAll;
import javax.ejb.Lock;
import jakartaee.ejb.LockType;
import javax.ejb.Singleton;
import jakartaee.ejb.Startup;
import javax.persistence.EntityManager;
import jakartaee.persistence.PersistenceContext;
import javax.persistence.TypedQuery;

  Are we expecting that this application would deploy and run successfully? Also, can we still use ‘ejb’ or does that need to be renamed?

  Are there any concrete classes in the specs which the container would need to have two different implementations of which could cause problems? 
 
-Ryan

Back to the top