Hello everyone,

 

We have a need to upgrade from version 0.6 to 1.0.1 as we need to have
the Message object graph Serializable (to store a Message in a db).

 

The problem we came across is that the way we built our Message object
graph in a generic fashion will not work with 1.x.

 

------------------------------------------------------------------------
----------------------------------

The way we do it now:

 

public Message createMessageGenerically(String version, String
messageType) throws Exception {

                String className =
SourceGenerator.getVersionPackageName(version) + "message." +
messageType;

                Class msgClass = Class.forName(className);

                Return (Message) msgClass .newInstance();

}

 

The input parameter examples are:

                Version = '2.3.1', '2.5', etc

                messageType = 'ADT_A01', 'ACK', 'ADT_A39'

 

------------------------------------------------------------------------
--------------------

 

I am having difficulties finding examples of how this type of generic
message creation can be done using version 1.x and above. Any help would
be greatly appreciated.

 

 

Thank you,

Dan

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to