facebook

EA Project – Shared Java Source/JSPs?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #197515 Reply

    theshawn
    Member

    I am fairly new to J2EE…but I have been working on a project for a while with some other developers. Our tools have not been organized until a recent discovery of Eclipse…now I am venturing off on a customization of this application and I want a better developement environment. MyEclipse seems to fit the bill, but I am not sure how to do a few things:

    I would like to have Java Source and also JSPs in the Enterprise Application Project that are shared in the web modules. This seems like it is possible, but I am not exactly sure how I am supposed to go about it. I did setup the EAP and 2 of the 3 web module projects. So where to I add my source files?

    All help greatly apprecaited!
    – Shawn

    #197518 Reply

    Scott Anderson
    Participant

    Shawn,

    You can’t really put “shared” JSPs into your EAR-level project. They are scoped by the web root, so you’ll have to replicate them or use a link to reference them in a common external project location.

    For your shared Java source, I’d recommend configuring a separate project for it as a plain Java project. At the moment, we don’t support automatic packaging of “dependency” projects, but we will soon. When we do, you’ll be able to add this project to the Enterprise project set directly. Until then, you’ll have to create a jar of the java classes in your utility project and place the jar into your Enterprise Project. Then, modify your META-INF/MANIFEST.MF to add the appropriate Class-Path: entry (ie. Class-Path: <jarname>) to point to the jar you added. Basically, this is exactly what you have to do to deploy into an EAR with shared modules, so it’s the same approach.

    –Scott
    MyEclipse Support

    #218864 Reply

    send2rajesh
    Member

    “At the moment, we don’t support automatic packaging of “dependency” projects, but we will soon. When we do, you’ll be able to add this project to the Enterprise project set directly”

    Is this feature supported in Myeclispse 3.8.2 . If yes can you please let me how to use this ?

    Thanks a lot!

    #218870 Reply

    Riyad Kalla
    Member

    Is this feature supported in Myeclispse 3.8.2 . If yes can you please let me how to use this ?

    Not quite yet, I think it might sneak into 3.8.3 or 3.9 though.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: EA Project – Shared Java Source/JSPs?

You must be logged in to post in the forum log in