I see, phpadsnew works a little bit the same way.
Yes that is the idea. I got it from PHPadsnew. Any suggestions where a good place for this filter would be? This is my first time working with EJBs, let alone JBoss. Or should I just be looking in the Nuke code?
you should look at how nukes send resources through modules.
this is done in the method getResource(String id) on ComponentSupport.java and returns a ResourceObject.
for instance if you call
it will call the mymodule module with the id my/id and you have to create a resource object and return it, then it will be streamed to the client. you can look at the MP3Module which does that for streaming.