Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By gimbal2

Thread: unable to connect oracle database through spring.xml file in unix

  1. #1
    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    0

    Default unable to connect oracle database through spring.xml file in unix

    We have file name called ear-context.xml that contains all db connectivity parameter.You can see peace of code below.with the same code we are able to connect in local but it getting failed in unix.I m using spring and hibernate.....
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName" value="com.ibm.db2.jcc.DB2Driver" />
    <property name="url" value="jdbc:db2://10.75.80.10:60000/DAP_PRD" />
    <property name="username" value="db2inst1" />
    <property name="password" value="Q971W3Ho" />

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: unable to connect oracle database through spring.xml file in unix

    What was the actual error message that you got there?

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: unable to connect oracle database through spring.xml file in unix

    Note: mask the user credentials dude, don't just throw them on the net! You're at this point the weakest link in your company's security.

    What confused me even more is that you say "oracle" yet the configuration says "db2". Do you really know what you're doing?
    kjkrum likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. unable to connect to oracle db using type 4 driver
    By kocchumon in forum New To Java
    Replies: 0
    Last Post: 10-11-2011, 06:17 AM
  2. unable to connect remote database using jdbc
    By enggvijaysingh@gmail.com in forum Advanced Java
    Replies: 1
    Last Post: 12-16-2010, 01:16 PM
  3. Replies: 4
    Last Post: 04-28-2010, 07:13 PM
  4. Replies: 0
    Last Post: 10-31-2008, 08:07 PM
  5. Using JDBC to connect to ORACLE database
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-10-2008, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •