Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Richard Corbin

+ Follow
since Nov 22, 2008
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richard Corbin

Tom Reilly wrote:Have you considered a VM solution such as VMware or XEN?

ehhh a lightweight solution, that would be fine, only I would need to make hooks into the VM and expose them if I did it that way.. Thats a little more than I want to do. Theres always the CLI but yowsers, theres gotta be a better way..
7 years ago
Hello everyone,

I was wondering if anyone here knows of a VM strategy for pooling JVMs? yeah I know... I'm working on a framework that uses an untrusted plugin architecture, which lets everyone load code onto a box which spawns a sandboxed version of the JVM for that user. At the same time, these have to be able to intercommunicate with each other. I'm thinking about middleware and messenger services ... but I would much rather make this simplistic as possible.
7 years ago
Ok this is one thats been driving me nuts (like a parrot on a pirates belt buckle), I looked all over the web including pouring over the specs (mind numbing)

what I would like to do is when I override a supers method, or when I insert a required constructor to have a comment inserted into the child class. Ive seen this done
in the case of Apaches APIs and a few other over time. Does anyone here know how to do this? I dont think its in the

* <comment tags and text>

or if it is, I missed it altogether
9 years ago
Hi All!

so Im having a problem with this embeded webserver that Im developing. when I compile the source its not putting files that are not compiled into the dist directory. which I use as the running directory during testing. so every clean and build means a copy and paste

Does anyone know what I can do to get files ( .js , .html ) copied into the dist directory? I'm using Netbeans (Ant build) and the project type was set to class library.
so what the H-e Double Hockey Sticks is wrong with JSF :-)

I personally think it's pretty darn easy and intuitive. I think it gets a bad wrap due to its 1.0 and 1.1 release. Netbeans IDE also has a slick WYSIWYG editor (Matisse) so you can get down to business without a lot of design headaches.

as for frameworks, yeah.. I don't like JPA, I like SQL so I just issue native queries that i store in a central repository.
9 years ago
[Edit; not-so-nice post removed. Tread carefully.]
[ December 14, 2008: Message edited by: Bear Bibeault ]
9 years ago
Hi All,

This one might seem a bit confusing

I'm getting ready to release a new framework that I have developed on Glassfish. where I am now though is getting it ready for cross umm container? distribution. I admitidly know nothing about distributing web libraries (kinda important for a web framework developer )

what I have is a collection of servlets and PoJos which need to be bundled in a way that let a user include them in the CP of their web app. I need to have an init servlet classloader start and have the directory of the web app that is using the framework sent to it. while also preserving the exposed servlets and servlet contexts defined in the frameworks web.xml. Whats the best way to have a user include a jar file containing the classes and servlets and maintain my frameworks Contexts as well as allowing the user to specify the init to load on startup?

thats hard for me to read and I wrote it
9 years ago
Linux systems Java is a speciality of mine.

I suggest writing an application in Java that acts as the proxy for the web browser. Or Better yet a Socks proxy that all network communications are sent through.

it can marshal access to restricted pages (or any remote resource web or otherwise) at a system level and perform any access procedures independent of the web browser.

9 years ago
Thanks Marco!

I started reading up on Serialization and I (Think I) get it now. I was under a few misconceptions about Serialization in general. Thinking that an object that was cast as an inner Class of a serialized Object inherited its serialization. when I asked this question over at
( java forums) I got a confusing response, and the usual catty quip that is pleasantly absent here at JavaRanch

Thanks again all!
9 years ago
I think I know what you mean, I'm doing the same thing. You have an HTML file thats used as an internal resource to be distributed with the bundle and you wish to pre/app-end this content to a servlet's output stream?

If thats the case the next question is are you just reading or are you in need of filelocks for synchronized writing? If you are just reading, you would use standard file reading procedures. Do this in a servlet that you initialize on startup, store it in a public static String in a global resources class/enum and you wont have to read anything again throughout the life cycle of the app.

If you need reads and writes on *file* in a specific order (gulp)

public writefile(String FileName, String content){
!isLocked ? call method below

private synchronized String SetFileContents(String FileName, String content) {
lock file access,
update file revision id,
re-buffer to global variable/store,

I highlight file because you can, to an extent do the same thing with the String Buffer you cached without syncing your app.
9 years ago

So in the above case where there is a container for these Objects (OBJMAP) which resides in a serialized object. would all of the objects in that map be serialized when the VM is restarted automagic like?
[ December 02, 2008: Message edited by: Richard Corbin ]
9 years ago
Hi all,

I've been working on a framework for sometime now (OortCloud) that deals with mapping, wiring and filtering Objects to UI components. I recently read a few posts here at the O'l JavaRanch and it raised a few questions that I cant seem to answer through research.

Why must I Serialize every Pojo that will be used as a session scoped object throughout the framework? I mean I've read that it's a rule to do so, but... why? The way I have it now is to distribute these objects through a singleton (Enum factories which are already serialized) creating new instances of defined Objects when requested by a new session. Then I store said instances in a SessionBean container (also serialized) . When one SessionObject needs another I pull it from the Session Container. The only answer I can think of is in the event that the container is sent to another VM?

9 years ago