[jboss-dev-forums] [Design of POJO Server] - Re: ManagedOperation aspects for the ProfileService.Manageme

alesj do-not-reply at jboss.com
Thu Oct 4 09:32:50 EDT 2007


"alesj" wrote : 
  | Since WritethroughManagedPropertyImpl is exactly what we need on the server side, but we definitely don't want to push/serialize this to the client.
  | 

I'm thinking about something similar to this:
I would like to change the serialization marshaler for a particular invocation.
e.g. ManagementView.getComponentsForType(ComponentType type)

  |    public Set<ManagedComponent> getComponentsForType(ComponentType type)
  |       throws Exception
  |    {
  |       SerializationMarshaller old = SerializationUtil.getCurrentMarshaller();
  |       try
  |       {
  |          SerializationMarshaller wmpi = WMPIClientMarshaler.INSTANCE;
  |          SerializationUtil.setCurrentMarshaller(wmpi);         
  |          return compByCompType.get(type);
  |       }
  |       finally
  |       {
  |          SerializationUtil.setCurrentMarshaller(old);         
  |       }
  |    }
  | 

Where the WMPIClientMarshaler would marshall all WritethroughManagedPropertyImpl to ManagedPropertyImpl.

Or is this too hacky?
Or even impossible? :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091513#4091513

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091513



More information about the jboss-dev-forums mailing list