facebook

Creating Hibernate .Har files with MyEclipse [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #223303 Reply

    tmurphrey
    Member

    I’m using the JBoss IDE and MyEclipse, along with Hibernate. It’s not clear to me how to go about creating the .HAR file. I know that if you right click your project ->properties->Packaging Configuration, from there you can add the standard EAR, WAR, SAR, etc.. files – but there doesn’t seems to be any support for .HAR files.

    any help would be greatly appreciated
    thanks
    tim

    #223304 Reply

    Riyad Kalla
    Member

    Tim,
    MyEclipse added the ability to export projects as arbitrarily named compressed files if the project name itself ended in an extension. So if you need to export a project to a HAR file, name the project something like “Persistence.har” and when the project is deployed packaged or as a module it should deploy as “Persistence.har”.

    #223383 Reply

    tmurphrey
    Member

    Excellent. Thanks for the info. One last question. If I name my project Persistance.HAR, when i right click that project and go to properities and set the Packaging Configuration, what configuration do I choose?

    thanks
    tim

    #223386 Reply

    Riyad Kalla
    Member

    When you say packaging config, you mean the deployment policy? Try ‘packaged’… I’ve not used this feature before, but we added it after we had quite a few JBoss/EJB/Hibernate users ask us for it and it worked out for them. You might need to play with it a bit.

    #223388 Reply

    Scott Anderson
    Participant

    Tim,

    Actually, for a .har project it should be a plain java project, not a web or ejb project, named <something>.har, and be set as a project dependency of the EAR project you’d like it included in. You can set the dependency by right-clicking the EAR and selecting Properties > Project References and then selecting your .har project. As a plain java project, the .har project doesn’ have any specific packaging settings you need to deal with but you do need to set the packaging properties for the EAR project.

    #223533 Reply

    tmurphrey
    Member

    Scott and Riyad

    Thanks for all your help. I only have one last question. My understanding is that to get hibernate to work with JBoss JMX, you need to create a hibernate-service.xml file, which will be part of the .HAR file. I know how to create the hibernate-serivce.xml file manually, but does MyEclipse have the ability to create that file in a fashion similiar to the way the hibernate-cfg.xml file is created?

    thanks
    tim

    #223534 Reply

    Scott Anderson
    Participant

    >I know how to create the hibernate-serivce.xml file manually, but does MyEclipse
    >have the ability to create that file in a fashion similiar to the way the hibernate-cfg.xml file is created?

    Specifically, no, but support may very well be available in the JBoss XDoclet tasks. It’ll be there if anywhere.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Creating Hibernate .Har files with MyEclipse [Closed]

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