Solved

Point To Server In JBoss

Posted on 2014-12-21
5
101 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VFP9 Server Can't lock file 22 129
How to configure Tuxedo XAUTHSVR? 8 128
hibernate example issues from command prompt 10 63
Details to create developer account 10 64
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

763 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