Jump to content
We've recently updated our Privacy Statement, available here ×

JNDI + PARAMETERS


jflelouarne

Recommended Posts

Hello, 

I'm trying to use JNDI connection to an Oracle database.

The connection esthablishes well, and the queries, when there is no parameters, work also well.

The issue is when there is a parameter .. then I wonder what happen, but it does not give back the result I'm waiting for.

Is there any known issue or special trick with jndi and bind variables ?

Thanks.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

The query execution of the input control queries and report queries should not be any different for JDBC and JNDI connection. JNDI is a connection pool of similar database connections that are managed by the application server. It cannot be parameterized because they are pre-defined in the context.

But in queries there should be no difference. The query like "select myField from myTable where myField=$P{someParam}" will be executed the same against JDBC and JNDI data source that point to the same database and schema.

Link to comment
Share on other sites

  • 4 weeks later...

What I notice is that, if I have a PL/SQL package named 'MyPackage' and, inside this package, a function named 'MyFunc', the following query works well with JDBC connector, but failed with JNDI :

select MyPackage.MyFunc(whatNeedToBeHere) as test from dual

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...