• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Migrating from version 4 to version 7.1

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic