aspose file tools*
The moose likes JBoss/WildFly and the fly likes Migrating from version 4 to version 7.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Migrating from version 4 to version 7.1" Watch "Migrating from version 4 to version 7.1" New topic
Author

Migrating from version 4 to version 7.1

Rodrigo Bossini
Ranch Hand

Joined: Jul 03, 2009
Posts: 113
Hi,

I have a .ear file along with a ds.xml file. This application is running fine at the moment in JBoss version 4. I'm trying to migrate it to version 7. I have had a few issues like it being unable to find some jar files. Now, it gives me a few errors. Before mentioning the errors, I would like to ask? Should I expect the application to run correctly without any changes on the code? I mean, after configuring everything correctly, the application should run no matter its source code? Or maybe I'll have to change something on source code too?

Thanks.


I see wind mills
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

That depends on the application, the assumptions made in the application, the configuration files that accompany the application, etc. Note that configuring AS 7 is very different from configuring AS 4. Also, exactly which version of AS 4? The 4.0.x version are very different from the 4.2.x versions. Also note that 4.2.x contains a preview version of EJB3 and it has changed since then, so if you have EJB3 then you might need to change a few things (if I recall correctly, the annotations all moved to a different package).

JBoss In Action
Rodrigo Bossini
Ranch Hand

Joined: Jul 03, 2009
Posts: 113
Hi, thanks.

I am running version 4.2.2.GA and would like to put my application to run on version 7.1.1.

I have a ds.xml file that in version 4 goes together to the .ear file in the deployment directory.

Here's what it looks like:

<datasources>
<local-tx-datasource>
<jndi-name>Institucional</jndi-name>
<connection-url>jdbc:jtds:sqlserver://localhost:1076/institucional2012</connection-url>
<driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>



Where would I put this information in version 7.1?

Thanks again.
Rodrigo Bossini
Ranch Hand

Joined: Jul 03, 2009
Posts: 113
Also,

My application uses the following code:

@PersistenceContext(unitName="Institucional")
private EntityManager em;

Shoule I expect it to work in JBoss 7.1? If so, where do I put the configuration related to the unit called "Institucional"?
Rodrigo Bossini
Ranch Hand

Joined: Jul 03, 2009
Posts: 113
Also,I have added a module for the sql server driver and configured it in the standalone.xml file as a datasource. My application can't seem to see it. Do you guys have some suggestions or material I can look at?

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migrating from version 4 to version 7.1