Solved

Point To Server In JBoss

Posted on 2014-12-21
5
94 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
  • 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JRE and project layout option 6 81
HP Virtual Connect firmware upgrade ? 5 117
ssl websphere server and big ip in different domain 5 120
java question on merging xls 3 82
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…
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 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