How are included classes referenced in the archive properties for Web and EJB groups?

By: Christopher Moeller

Abstract: Explanation of the different between the default included classes for EJB and Web nodes.

Question:

In JBuilder 7, I have a project with both EJBs and Web Applications.

When I specify "Include required classes and known resources" in the EJB | Properties | Classes, it includes all of the EJB classes in the JAR, but when I specify "Include required classes and known resources" in the WebApp | Properties | Classes, it does NOT include any classes in the WAR. Why do these options function differently?

 

Answer:

This is because all classes and resources referenced in a bean's deployment descriptor are always automatically included the EJB archive. Here, "Include required classes and known resources" really allows you to specify _additional_ classes you wish to add to the EJB archive.

The menus and documentation for the Web App properties and the EJB properties have been improved in JBuilder 8 to more accurately describe the intended behaviors.


Server Response from: ETNASC04