Programmatically accessing DBCS using java- javax.naming.CommunicationException
SummaryProgrammatically accessing DBCS using java- javax.naming.CommunicationException
I have a java program which will be deployed to JCS. We have created one table which will be used by our java program.
To interact with DBCS, i have created data source in my jcs weblogic console and trying to access as shown below
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
Context context=new InitialContext( env );
//you will need to have create a Data Source with JNDI name testDS