RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

So tell me about InitialContext()

TMSTKSBK

Lord
So tell me about InitialContext()

My school has told me to break this open-source web app written in Java.

I'm trying to oblige.

Unfortunately, I don't know what this string:

Object dataSource = ((Context) new InitialContext().lookup("java:comp/env")).lookup("jdbc/itrust");

translates to.

Helps?
 
TMSTKSBK;706355 said:
My school has told me to break this open-source web app written in Java.

I'm trying to oblige.

Unfortunately, I don't know what this string:

Object dataSource = ((Context) new InitialContext().lookup("java:comp/env")).lookup("jdbc/itrust");

translates to.

Helps?

I'm not an expert, but I fail to see how a Java project for your school is a core mod for RunUO.
 
Top