FAQ:
- What is DMT Framework?
- How to get start?
- How fast compare to Default Java Serialization?
- When should I use DMT Framework?
- Should I use Command Pattern in my project?
- How to config DMTSchema?
- Is there anytools available for DMTSchema
Config? because it is tedious to define the config in xml file
- Is DMT Framework confilict
with my own externalizable implementation?
What is DMT
Framework
DMT (Domain Model Transportation) Framework can let you distribute your
Domain Object Model to another JVM in the way you want. You can
consider it as a total replacement of the long existing DTO(Data
Transfer
Object) Pattern and much much more.
How to get
start
DMT Framework is easy to use and setup. To use DMT out of box as a
replacement of default Java Serialization, you can gain efficiency.
follow the link see how to set up
DMT framework and use it out of box.
How fast compare
to Default Java Serialization
DMT Framework use java externalization to streamlize java object, it is
fast compare to Java Serialization. Different object graph might have
different performance improvement. Follow the link see how to measure the
performance.
When should I
use DMT Framework
In any situation you can use DMT framework. Even if you just use it as
a
replacement for default java serialization, you still gain performance.
Should I use
Command Pattern in my project
It is not mandatory to use command pattern. However, since your Domain
Object will be encoded and put into a DMTCart, it is generic. To
restore the strong typed interface to your client, the best way is to
use Command Pattern. It does not impose anything, just add you more
benifits of command pattern.
How to
config DMTSchema
Each DMTSchema is a set of configuration to specify how to transport
your Domain Object Model. Follow the link
see how to config.
Is there
anytools available for DMTSchema Config? because it is tedious to
define the config in xml file
Yes, we have an eclipse plug-in to help you config DMTSchema. You can
find more information here.
Is
DMT Framework confilict with my own externalizable implementation?
No. You can have your own externalizable implementation in
writeExternal() and readExternal() method, if you don't put the
delegation code (see DMT Framework setup),
your own implementation will be used. Your own implementation and the
delegation code can co-exists. If you follow the comments in DMT Framework setup to put your own
implementation below, means if you use DMT, your implementation will be
ignored, and if you use your own transportation protocol, the DMT
implementation will be ignored. (You can understand this from the
writeExternal() and readExternal() method implementation).