JNDI Name: jdbc/fisk
Am i using them wrong?
In Oracle documentation it says:
<res-ref-name> Specifies the name of a resource reference.
<jndi-name> Specifies a JNDI name for the resource.
Should the <jndi-name> be jdbc/fisk?
Also tried this, only trying to connect to the weblogic datasource, but didn't work?
Akhilesh Trivedi wrote:Did it work?
No, i meant I've already tried it before making this thread, but it didnt work, but maybe it is right, but the configuration of the rest of the settings are wrong... Therefor I'm asking here
Akhilesh Trivedi wrote:I am not sure why are you needing those XML files after setting up the data-source. Why not you write a simple client and see if you are able to get the connection from the pool? I strongly believe you would need a weblogic.jar.
That was what I meant in my last post, I realised I might not need them unless i want to rename the datasource. But it still doesnt work. Haven't found any information about any weblogic.jar?
What I'm not using is the INITIAL_CONTEXT_FACTORY, there are plenty of examples not using this one?
And another thing, i get the error:
namingexception String index out of range: -1
Johan Blo wrote:Im supposed to do a resource lookup, the JNDI name is already set in weblogic? (feels confused)
Yes it is already set in weblogic at the time when you create the pool/data-source. It is after you creating the data-source you go on with a client to get a connection from the pool and further on the way.
Akhilesh Trivedi wrote:You would need weblogic.jar if you have been using INITIAL_CONTEXT_FACTORY
Can you post your code?
Thanks a lot for the help so far!
I will however need to wait until tomorrow to be able to generate the wlfullclient.jar (wls 10.3.x)
But let say i would use JPA/hibernate instead, I wouldn't need to use wlfullclient.jar i guess...