Question : setting Oracle session to the right language

I know that we can use ALTER SESSION command in Oracle to change the session and set the NLS_LANGUAGE to the language that user may have selected while logging into a multilingual web application. In this way, Oracle pulls the data in the right language.

I am trying to find if JDBC/Connection pooling provides means to set the Oracle session dynamically so that we don’t have to execute Alter command at the beginning of every back-end procedure.

Thank you

Answer : setting Oracle session to the right language

Yes I meant this, with the only small difference that p.1 is done not in a business method but at the injection point. The sequence is the same.

I can't tell whether the connection provided by Spring will be the same - it depends whether it is bound to any context. It should definitely be the same within one transaction. However, if you set the language immediately after the connection is injected, it should not be a problem.
Random Solutions  
 
programming4us programming4us