Can you put something under the covers that has the client pull down the marshaller from the server side if it isn't found on the client? Of course, this means that this "pre-request" would have to use a default, well known, marshaller. The server-side would get this pre-request, send back the, say, the class name of the custom marshaller, then the client now has the what you need. It takes the class name and instantiates the marshaller and uses it for the "real" request. The client-side MarshalFactory could remember this so it would only have to do this "pre-request" once.
Sort of like dynamic classloading. All of this could be under the covers - client doesn't need to know about it. The server-side would have to be coded up to accept this "pre-request" - maybe the first few bytes of the pre-request is a magic cookie value that if detected, the server-side reverts to the well know marshaller, looks up the marshaller class based on the name given to it via the pre-request and sends back the class name. Did that make sense? Its' alot of work but - I see no other way than to encode the class name like you requested. -- Another way - you could play games with system properties. I've done this with factories I've built before. Say your locator is this: socket://myhost:5400/?dataType=mycustom Your factory would look it up and not find it. So, it falls back to looking at a system property using that dataType name as part of the system property. The system property value is a class name. Your system property would look like this: jboss.remoting.datatype.mycustom=org.jboss.MyCustomMarshaller Your factory would look for a system property called "jboss.remoting.datatype.<the value from locator>". You can therefore define multiple ones - each one has a different system property. This of course, woudl require the client to set up these system properties via some config file or cmdline args. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863986#3863986 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863986 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
