[jboss-dev-forums] [Design of EJB 3.0] - Re: [long read] Info/help needed on extending EJB3 container

Sintel do-not-reply at jboss.com
Tue Feb 20 06:19:21 EST 2007


I've been thinking a bit more on the subject and I think I'm almost there. To add metadata at client side I would also need a new client-side aspect right? It isn't mentioned in the original response, only that ThreadMetaData can be used, but I don't see any way to use it other than with a new client-side aspect, in addition to the mergemetadata interceptor.

Looking at the code of InvokeRemoteInterceptor it seems there isn't really a problem in sending over references of objects from client to server and vice versa, through the use of metadata (I think if I use the AS_IS type only the unaltered reference gets sent which is sufficient, as the client's only job is to safeguard, not use it). So my new service could create a dispatcher on the server on the first invocation, which holds which target we need for the invocation. The server-side aspect can pass its reference to the client through the invocationresponse. The client can then include that reference with every invocation, the serveraspect asks that reference for the target and changes it in the invocation..

If this is all correct (confirmation?), it leaves me with this:
1) Where do i deploy my new developed aspects?
2) Is there an eclipse configuration that recognises @service etc?
3) Is there an alternative to deploying each beanimplementation in a seperate container?

Thanks for listening

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019286#4019286

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019286



More information about the jboss-dev-forums mailing list