• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Deploy Hibernate2.1 on JBoss 3.2.3

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
knowledge is the difference between drudgery and strategic action -- tiny ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic