- This topic has 6 replies, 3 voices, and was last updated 20 years ago by Scott Anderson.
-
AuthorPosts
-
tmurphreyMemberI’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
Riyad KallaMemberTim,
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”.
tmurphreyMemberExcellent. 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
Riyad KallaMemberWhen 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.
Scott AndersonParticipantTim,
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.
tmurphreyMemberScott 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
Scott AndersonParticipant>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.
-
AuthorPosts