river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calum Shaw-Mackay <calum.shawmac...@gmail.com>
Subject Re: static exporter
Date Mon, 01 Mar 2010 16:26:43 GMT
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


Mime
View raw message