ntumba lobo wrote:Whether to use a dynamic queue or not to me depends on the calling thread.
If the calling thread, the one sending the request message in the input queue, needs the response message message
from the output queue to carry on its processing then you would need a temporary queue output queue.
This is akeen to a synchronous communication.
On the other hand if the response from the output queue can be process in a separate thread a pair of static queues with
selective consumers on the output queue would more suitable. This is real asynchronous communication.
my 2 cts
James Sutherland wrote:JPA 1.0 did not require support for nested Embeddables, but JPA 2.0 does support it.
So depends on your JPA provider, and what version it supports.
An Embeddable does not need to be serializable, unless you intend to serialize it.