Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring an application for Jboss

 
Omar Perez
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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)
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thank you. yes I'm using AS7
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic