This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 5823
    
    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: 10067
    
163

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: 5823
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring an application for Jboss