File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Deploy Hibernate2.1 on JBoss 3.2.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploy Hibernate2.1 on JBoss 3.2.3" Watch "Deploy Hibernate2.1 on JBoss 3.2.3" New topic

Deploy Hibernate2.1 on JBoss 3.2.3

Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
Hi folks ,

I wnat to get a suggestion from you, I have developed one scheduler service that executes on specific date and perfroms some operations on DB using hibernate 2.1 in JBoss 3.2.3
Everthing is working fine, but I want to knwo about the standard deployment of Hibernate in JBoss 3.2.3 .. How I am currently deploying ...

myservice.jar contains
all class files
all hbm files
hibernate configuration file

I copy myservice.jar in default/lib including

then I copy all hibernate required Jar files in default/lib

and then I enter my scheduler MBEAN entry in default/conf/jboss-service.xml
and then I copy my scheduler.config file in the default/conf directory

thats all.................. and then i run Jboss

As my applicaion requires in the information where the scheduler.config is locaded
so I start JBoss using

>run -DconfFile=d:\jboss\server\default\conf\scheduler.conf

AND IT WORKS FINE >>>>>>>>>>>>>

I was reading some .HAR deployment for hibernate and SAR JBoss deployment
But I am not sure it will working with Jboss 3.2.3 as it is for Jboss 4.0

Please advice me any standard deployment, in form of a single file where i can do this deployment.


Awais Bajwa
Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
hi Mr.Bajwa,

You have solved the probelm : ) here I am writing how did you solve the issue .

You created one SAR directory, JBoss standard service file, and put all of your hibernate jars and other required jars, including hibernate mapping files.
And It worked fine..
META-INF is always required in any SAR directory, that then contains the jboss-service.xml

I agree. Here's the link:
subject: Deploy Hibernate2.1 on JBoss 3.2.3
It's not a secret anymore!