Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migrating from version 4 to version 7.1

 
Rodrigo Bossini
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Rodrigo Bossini
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic