> Embedding GlassFish is likely to be fraught with problems IMO. I say
> this based on all the singletons (globals) it uses, logging code
> issues at startup, etc.
>
I agree.
It has to be dealt with as a supported configuration.
>
>> ie., from within a java program. Am I looking for v3 ;)
>>
YES.