Skip to main content

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

Hello ryan

We have another mail thread in which we are discussing how to avoid that proposing use of profiles to handle that kind of scenario that you mention.


On Tue, May 7, 2019, 19:22 Ryan Cuprak <rcuprak@xxxxxxxxx> wrote:

 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.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? 
jakartaee-platform-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top