• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configuring an application for Jboss

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings folks I previously used tomcat (web containter) to run my applications, but now I'm facing the challange to switch to Jboss/Maven. I don't know what changes should I make to in my application (dynamic web application or nor).

I'm using JPA 2.0 Annotations
MySQL/JDBC Connector

I'm going to use jsf myFaces/richfaces.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most apps that run in Tomcat run as-is in JBoss AS. Try deploying the WAR and see what happens.

If you have database config stuff in Tomcat, you will have to instead use a *-ds.xml file on JBoss AS.
 
Omar Perez
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Most apps that run in Tomcat run as-is in JBoss AS. Try deploying the WAR and see what happens.

If you have database config stuff in Tomcat, you will have to instead use a *-ds.xml file on JBoss AS.



Thaknk you, the ds files holds details about the datasource as is configured in jboss AS7 or as is configured in the persistence.xml (JAP2.0/JDB)
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Omar Perez wrote:
Thaknk you, the ds files holds details about the datasource as is configured in jboss AS7


Are you using AS7? Then the -ds.xml files won't work there. The -ds.xml files which Peter mentioned were for previous versions of JBoss AS. In AS7, the datasource configuration is done as explained here.

 
Omar Perez
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. yes I'm using AS7
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It always helps to mention which version of JBoss AS you are using because the configuration does change (often radically) from version to version.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic