aspose file tools*
The moose likes JBoss/WildFly and the fly likes Configuring an application for Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configuring an application for Jboss" Watch "Configuring an application for Jboss" New topic
Author

Configuring an application for Jboss

Omar Perez
Ranch Hand

Joined: Jul 08, 2011
Posts: 36
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

Joined: May 14, 2008
Posts: 5845
    
    7

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.


JBoss In Action
Omar Perez
Ranch Hand

Joined: Jul 08, 2011
Posts: 36
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

Joined: Jul 20, 2005
Posts: 10290
    
168

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.


[My Blog] [JavaRanch Journal]
Omar Perez
Ranch Hand

Joined: Jul 08, 2011
Posts: 36
Thank you. yes I'm using AS7
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

It always helps to mention which version of JBoss AS you are using because the configuration does change (often radically) from version to version.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Configuring an application for Jboss