2008/7/22 Shahbaz Chaudhary <[EMAIL PROTECTED]>: > There is a getPropertyNames() function, but there doesn't seem to be one > which returns the types of the fields. > > Secondly, the property names are delivered as part of a message, does > this information exist on a destination level. In other words, before a > message is received, does (or can) the client known such meta data?
No, the properties are entirely in the application domain. You would have to build something that returned a message containing the details of the properties. > My motivation is a generic Jtable which can be linked to a destination > (topic or queue). The JTable model needs to know the number of fields > and their types, before a message is received. The number of fields and their types is something your application specifies. I'd create a Service queue as follows: 1) server registers a service listening on the Service queue 2) client creates a private queue 3) client sends a message to the Service queue with a property indicating the operation is "queryProperties", and sets the ReplyTo address to the private queue 4) server sends a message (in XML say) that contains the topics plus the property names and types to the client's private queue 5) client can parse the message and do with it what it wants You can obviously build in as much sophistication as you like into the services. RG
