This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploy Hibernate2.1 on JBoss 3.2.3

 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards


--
Awais Bajwa
 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Regards
You
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic