On 1 March 2013 20:49, Saggi Mizrahi <smizr...@redhat.com> wrote: > I've been using the proton-j 0.3 and I was surprised to find > out that the context type of a connector returned from Listener.accept() > is created with the context object type of the parent listener. > I am wondering why that is that enforced.
I think you are refering to the Proton-J driver. It appears to me that this is merely giving you a type safe mechanism to retrieve an application owned context object. The application context being the same object you supplied to the earlier call to Driver#createListener(). It is permissable for the context object to be null. Perhaps you could elaborate on why this presents a problem to your usage pattern, illustrating your concern with code, if possible? Kind regards, Keith.