- This topic has 3 replies, 2 voices, and was last updated 19 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
Ruchir AwadhawalMemberHi
I have developed and a project with the following configuration
– Common Java Project
– EAR dependency – EJBApp, Common Java Project
– WAR dependency – EJBApp(partial EJB interfaces), Common Java ProjectWhen i create the war it does not copy the interfaces even when i have configured the dependency in the “Java Build Path — Projects” configuration pane. Also i have checked it in the “Java Build Path — Order and Export” tab. and changed the war preferences by enabling all the dependency options to copy the jars, dep project jars, user libs etc.
How can we automatically copy ebj interfaces to the web module?
Regards
Ruchir
Riyad KallaMemberRuchir,
You will need to remove the Web > EJB dependency and instead create an Enterprise Project that marks the EJB and Web projects as modules, and then deploy that.
Ruchir AwadhawalMemberHi Riyad
My requirement is to deploy the war and the EJBApp(packaged as ear) on two different machines. So i can not create and enterprise project with both of them as modules. I have to have the war independent of the ear.
Regards
Ruchir
Riyad KallaMemberRuchir,
I asked one of our devs about this and this is what he had to say:Since his WAR and EAR, which contains his EJB, need to be on different
machines, then his EJB interfaces really do need to be packaged with his WAR
also. In a “normal” app, where everything is in the EAR, the WAR gets
access to the EJB interfaces due to the classloader hierarchy that the spec
mandates.In this case, if he wants automatic deployment, I’d suggest placing the EJB
interfaces by themselves in a plain Java project and marking it as a
dependency of both the EJB project and the WAR. That should ensure they get
deployed. If he tells MyEclipse which files those are by placing them in a
library project and then making the EJB and WAR projects depend on it, it
should package the way he wants.Does that help?
-
AuthorPosts