Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7170289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:10:55+00:00 2026-05-28T15:10:55+00:00

For our application to work properly we need to execute a SQL Statement on

  • 0

For our application to work properly we need to execute a SQL Statement on every new connection, before that connection is handed out to the application.

How do I configure a data source in WAS 7 accordingly?

We found the (deprecated) option to validate the datasource using a sql statement, which hopefully does the trick (coworker is testing it right now). This sounds wrong, since we are not ‘testing’ the connection, but setting it up properly. Also its deprecated so this probably will stop working with future versions of websphere

Is there a clean and correct way to do this?

The statement we’d like to execute is

ALTER SESSION NLS_SORT='GERMAN_AI'

One alternative approache: The application is hibernate based, so if we could convince hibernate to execute the statement before using a connection, this would work as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:10:56+00:00Added an answer on May 28, 2026 at 3:10 pm

    If it were me, I would just use the “connection test” approach:

    • It works!
    • The YAGNI principle says “worry about deprecation when it happens… if it ever happens” – probably years away or never
    • You will not add any business value by finding the “correct” way
    • You can drop this and get on with some real work that actually adds value to your project

    The only downside is that it will be executed every time a connection is tested, which may be many times during the life of the connection, but so what – it’s a very fast executing statement and is idempotent, so no problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an application for work that is going to query our employee
I work at a University and our application for admissions is a product that
The company where I work created this application which is core to our business
I'm currently working on a web application development. Our company methodology is to work
Our codebase where I work is .NET 2.0. For our new assembly/DLLs/web applications I
Our desktop application consists of a Mono/.NET 3.5 back end that communicates via USB
In our application we work with DataTable s a lot. This is dictated by
I'm currently writing a special client application to allow our unit tests to work
Our team is currently developing a web application, in that we have a class
I'm in the process of rewriting our application. We are building DataMappers to work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.