facebook

Why I can not change arcive name of ejb.jar?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266184 Reply

    skyswan
    Member

    Hi guys,

    I want change my EJB jar’s arcive name. So I do it in “.mymetadata” as following.

    
    <?xml version="1.0" encoding="UTF-8"?>
    <project-module
      type="EJB"
      name="My Demo Ejb"
      id="myeclipse.1171417692847"
      j2ee-spec="1.4"
      archive="ejb.jar" />
    

    However, when I deploy it to a EAR. it always named “My Demo Ejb.jar”. Why my customization does not work?

    #266189

    Greg
    Member

    You will need to change the name of your EJB project itself. The .mymetadata file isn’t meant to be hand edited as it can be overwritten at any time based on other changes to your project. So right-click your EJB project, and choose “Rename”. Then once you rename, your .mymetadata will be updated accordingly and the next time you redeploy the name should be as you want it.

    Note: when you rename you project, you will have to resetup your deployments in the deployment manager.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Why I can not change arcive name of ejb.jar?

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