Glyph has this..... through it's ExporterManager

It basically wires in a set of Exporter Configuration Definitions and
holds them and deals with leases and the like

i.e.
                        ServerTransaction tx = (ServerTransaction) 
tc.transaction;
                        Uuid transactionID = UuidFactory.generate();
                        TransactionHolder holder = new TransactionHolder(tx, 
transactionID);
                ***     Remote proxy = mgr.exportProxy(holder, "Transaction", 
transactionID); ****
                        System.out.println("Proxy class: " + 
proxy.getClass().getName());
                        tx.join((TransactionParticipant) proxy, 
holder.getCrashCount());



On 1 Mar 2010, at 13:35, Sim IJskes - QCG wrote:

> Hello,
> 
> Has anybody ever worked on/with a static class that functions as a exporter 
> registry? And, is it a really bad idea?
> 
> I would love to be able to do 'mysrv = GlobalExporter.export(myobj);'.
> 
> Gr. Sim
> 
> 
> -- 
> QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
> Quality Consultancy Group b.v., Leiderdorp, Kvk Leiden: 28088397

Reply via email to