Dinamic JAR execution

HI,

I will try to expose my problem. I need to execute a java application (JAR file) that is stored in a Data Base (in a blob field) from another java application.

I don't get the better way to solve this problem. I'm thinking of developing a small application that retrieves the JAR file from the DB and somehow executes it.

Are there anyway to execute this JAR into the same process that retrieves it from the DB? Is it needed to launch a 2nd independent virtual machine? What is the better solution for this problem?

Thank you very much.

[573 byte] By [venganzaJamesa] at [2007-11-27 9:39:32]
# 1

You could write the blob out to disk and treat it as a normal jar, or if you're concerned about the performance hit of that disk I/O, you could use a virtual filesystem to do it in-memory. Apache Commons VFS is one such system

http://jakarta.apache.org/commons/vfs/

But before you go mucking around with that, do some testing to see if the disk I/O is really a performance problem or not.

georgemca at 2007-7-12 23:15:08 > top of Java-index,Desktop,Deploying...