Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Point To Server In JBoss

Posted on 2014-12-21
5
Medium Priority
?
114 Views
Last Modified: 2015-01-05
A friend had been running Oracle database and JBoss on the same VM.  He then exported the database to a separate server apparently leaving the datasource configuration the same.   He's now getting 'route to host not found' and '.....network adapter' errors.
Where does he look to change the location from the localhost to a different server?
I'm seeing:
<datasources>
  <local-tx-datasource>
    <jndi-name>CompleteSourceDB</jndi-name>
    <connection-url>jdbc:oracle:thin:@ora11g.odscommerce.com:1521:ora11g</connection-url>      
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>moaitest_251012</user-name>
    <password>password</password>    

Would it work if he just changed the @ora11g.odscommerce.com to @new_host_name or just new_host_name?
0
Comment
Question by:xoxomos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40512460
Oracle JDBC documentation is a good place to start.
In your case hostname is ora11g.odscommerce.com and oracle instance name is ora11g
0
 

Author Comment

by:xoxomos
ID: 40515663
Thanks.  Actually the JBoss docs. I just thought some JBoss experts might know off the top if simply putting in  the new server name in place of the @ora11g.odscommerce.com in that XML file would be ok with JBoss as far as '...path to server' for Oracle or is there some other route JBoss would require to change servers.
0
 

Author Comment

by:xoxomos
ID: 40532188
I'll try rephrasing the question.  If i am now using a different database server and different database instance_name should i be able to simply change the information in the connection_url or is it necessary to create a new XML file through some procedure specific to JBoss?
0
 
LVL 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 40532255
You just edit XMLs. There is no specific procedure.
0
 

Author Closing Comment

by:xoxomos
ID: 40532319
Thank you!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question