This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 115275

Summary: Not possible to find out whether server supports whole Java EE 5 specification
Product: serverplugins Reporter: Erno Mononen <emononen>
Component: InfrastructureAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Erno Mononen 2007-09-11 16:50:51 UTC
Currently there doesn't seem to be a way to find out whether a server supports the whole Java EE 5 specification. For 
example the Tomcat 6 platform claims to support Java EE 5, although it is only a web container and therefore supports 
only parts of it. This might actually be an issue in the tomcat plugin, maybe it shouldn't claim to support Java EE 5 
in the first place. 

This information is needed at least in the persistence unit wizard to determine whether a default persistence provider 
is supported.
Comment 1 Petr Hejl 2007-09-12 15:59:03 UTC
The workaround for 6.0 is made through introduction of "defaultPersistenceProviderJavaEE5" as tool name for
isToolSupported. Each server that provides persistence provider (Java EE 5 or greater) should return true for this tool
name.

In future there should be an api - something like hasCapability or similar. The EE spec version is not enough to
recognize the capabilities of server (I suppose this will be more significant for EE 6).
Comment 2 Petr Hejl 2011-10-17 09:38:16 UTC
Already resolved by javaee.specs.support.