This discussion is archived
3 Replies Latest reply: Aug 15, 2013 4:05 AM by Surendra Pulukuri RSS

Remote JDBC disabled

883037 Newbie
Currently Being Moderated
when I test these code, JDeveloper always report the java.lang.UnsupportedOperationException: Remote JDBC disabled. but I change env.put(Context.PROVIDER_URL, "t3://localhost:7001"); it worked fine. I configure the same environment in my own computer and remote computer.



Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://10.51.250.201:7001");
env.put(InitialContext.SECURITY_PRINCIPAL, "weblogic");
env.put(InitialContext.SECURITY_CREDENTIALS, "!QAZ2wsx");
ctx = new InitialContext(env);
DataSource ds = (DataSource)ctx.lookup("jdbc/fdbusionline");


set WLS_JDBC_REMOTE_ENABLED=-Dweblogic.jdbc.remoteEnabled=ture in my own computer and remote computer

but link weblogic sever in remote server(IP 10.51.250.201), it will be reported the exception of java.lang.UnsupportedOperationException: Remote JDBC disabled
Any help will be appreciated greatly.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points