Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

caching downloaded classes

Gen.JavaSep 30 2014 — edited Oct 21 2014

Hi all,

Does the following code, which gets a class from a remote server, caches the class on the client machine?

URL u = new URL("http://1.2.3.4:80/JavaClasses/MainClass.class");

InputStream input = u.openStream();

DataInputStream data = new DataInputStream(input);

byte classBytes[] = downloadByteCodesFromURL(data);

Class c = defineClass("MainClass", classBytes, 0, classBytes.length);

//////////////////////////

public static byte[] downloadByteCodesFromURL( DataInputStream in) {

  ByteArrayOutputStream outStream = new ByteArrayOutputStream();

  while (true) {

         try {

               outStream.write(in.readByte());

         }

         catch (IOException e) {

                break;

         }

  }

  return outStream.toByteArray();

}

Thank you

This post has been answered by baftos on Oct 9 2014
Jump to Answer

Comments

Christian Erlinger
That would entirely depend on

1.) Your Forms Application
2.) What features of Sharepoint you'd use
3.) What you want to integrate of your forms application and sharepoint

which are basically things we do not know. The only thing which comes to my mind would be LDAP, which would allow both forms and sharepoint to have the same login for each user. For everything else your question is way too general.

cheers
Andreas Weiden
If the question is "How can we use Sharepoint instead of Forms?", i would say, you hardly can.

Sharepoint is more or less a collaboration tool, Forms is an application-building tool.

Just my 2 cent.
lake
I don't think getting forms to interact with sharepoint sounds very easy. Forms only talks to oracle and I believe sharepoint only talks to sqlserver. So the only way the two could interact possibly could be with a link between oracle and sqlserver. Which would be?
transparent gateway for sqlserver?

I believe sharepoint can also create some data entry forms. don't know how easily it does them.
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 18 2014
Added on Sep 30 2014
11 comments
2,296 views