Mombu the Programming Forum

Mombu the Programming Forum > Programming > Serializable and ContextBound
REGISTER NOW! Search Today's Posts Mark Forums Read




Reply
 
Thread Tools Search this Thread Display Modes
1 9th March 03:37
clu
External User
 
Posts: 1
Default Serializable and ContextBound



Hi all !

I need to define a MBV object to be passed through the
remoting framework and returned to the caller.
I'll have a MBR object on my server with a method
returning my MBV.

I'd like to intercept calls to my MBV object locally on
my client in order to do message pre-processing.
So I would derive my MBV object from ContextBoundObject.
In practice, I'd like to have my MBV object serialized to
the client, and then the client have access to it through
the TP/RP couple in order to define my CustomProxy and
pre-process messages to it.

My questions are:

Can I mark as [Serializable] an object derived from
ContextBoundObject ?

If so, my object would still be serialized to the client
context, or it will stay on the server, having just a
proxy at the client ?

Is there any other chanche to have interception without
deriving from MBRObject/ContexBoundObject ?

Thanks in advance for your replies !

Clu
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 10th March 16:25
sebastien lambla
External User
 
Posts: 1
Default Serializable and ContextBound



By default your CBO will be marhsalled. You can still mark it as
Serializable, but you would have to do the serialization manually. And
frankly, there's no point as in that case your proxy wouldn't be created.
As a side note, what you want is basically to get your object from the
server and use it locally, and intercept locally all the calls through a
proxy... This is going to be non trivial frankly, as even if you do
serialize your object, find a way to transfer it back to the client and
execute it, you still need it on the client side as an assembly (so that it
can be instantiated), and you need the proxy.

Why don't you just :
1. Execute the CBO locally
2. Execute the CBO remotely and don't care about serialization? In that
case, you don't even need a CBO, an MBR will be enough as you already cross
a boundary.

--
Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/


"Clu" <claudio.brotto@softeco.it> a écrit dans le message de news:
3bf701c3aa7f$f20bbd50$a601280a@phx.gbl...
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666