[Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-1225 - PacketFilters implementation
by clebert.suconic@jboss.com
anonymous wrote : Remember though that we won't always be running with the MC, e.g. OEM customers running embedded and directly instantiating our POJOs, so the functionality needs to work with or without the MC being available.
|
A simple call to MinaServrice.addFilter (or interceptor case we rename it, should be enough). We have a way around it, and it would be easy either way.
anonymous wrote : Also not sure why we need PacketHandler and PacketSender passed into the method, surely:
|
It would be useful when you want to intercept the return value of the Handler. If we had the intercept working on both ways (client2Server and server2Client, you would never had the context of the return inside the same method). This would be like the ServletFilter where you have the InputStream and OutputStream available on the call.
Case you wanted to override a return, you could something like:
public void intercept(Packet packet, Handler handler, final Sender sender)
| {
| handler.handle(packet, new Sender() {
| public void send(Packet packet)
| {
| sentPacket = packet;
| sender.sent(packet);
| }
| };
| }
|
It would be harder to associate the sent and returned packet without this context.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124454#4124454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124454
16 years, 11 months
[Deployers on JBoss (Deployers/JBoss)] - Remoting 3 deployers
by david.lloyd@jboss.com
I'm working on creating deployers for Remoting 3. The design I'm thinking of will allow deployment and/or configuration of:
* Endpoints
* Protocol support modules
* Protocol server instances
* Server interceptor modules
* Service instances
* Remote endpoint connections
Each of these items should be individually deployable, but it should also be possible to deploy multiple units at once (the individual configurations are fairly simple at this point, and it would be silly to require the user to write 10 4-line XML files just to get a basic deployment running). I believe that it is most appropriate to express each of these items as a simple XML configuration.
So my first question is, what is the most appropriate way to approach this deployer? And, is it better to make a separate deployer for each type, or to have one deployer that covers everything?
Finally, is it better to use JAXPDeployer/JAXBDeployer(s) or is there a more preferred way to deploy using an XML configuration? It seems like every deployer in the AS codebase does something a bit different, and I've been unable to find a good example of what a deployer ought to look like.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124437#4124437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124437
16 years, 11 months
[Design the new POJO MicroContainer] - Re: New ClassLoader initial checkin
by gcompienne
Hello Adrian,
Early in the post you indicated that the classloading mechanism was in the microcontainer project but that it wasn't its rightfull place.
I wonder if your opinion has changed on this topic? I must admit from my point of view I have the tendency to see the microcontainer as the main mechanism allowing you to host components/containers together. And to me this means that classloading will typically play a critical role in this.
I agree that MC does not have to know the exact details (each subsystem could have its own way) but I still imagine that for things to work and cooperate the system would still need some general "rules of engagement". And these rules (things like the specification of the base CL policy mechanism) would have to be specified by MC.
Then when someone writes a container it would be clear that, as long as they respect the MC rules, then they have good chances that it will work.
Yes, things like classloaders could be separated from MC but then there will need to clarify the various projects that ones needs to be aware of in order to write a workable container.
I must admit this is probably a simplistic view (admin tasks comes to mind) and I am still trying to get my head round MC, but still I wonder if your opinion on this has changed or not.
Thanks.
Gilles.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124430#4124430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124430
16 years, 11 months