[Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-1225 - PacketFilters implementation
by apwalker
| public class DummyFilter implements PacketFilter
| {
| public boolean filterMessage(AbstractPacket packet, PacketHandler handler,
| PacketSender sender)
| {
| System.out.println("Packet " + packet + " intercepted);
| return true;
| }
|
| }
|
IMHO you should use a Packet interface rather than the AbstractPacket as the type that get passed in. I guess so should PackHandler and PacketSender if they aren't already.
Is the fact that you return a boolean does this signal the invocation to proceed? More traditional interceptor design would be if you want to stop the execution flow you throw an Exception in the interceptor. For example a custom security servlet filter would throw a SecurityException. It better to do this because then what was originally called can know why the invocation was halted.
Feel free to ignore my humble rants... but I do like nice clean APIs and once you have one customer who's written a Filter you will never be able to change it again..... :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124356#4124356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124356
16 years, 3 months
[Design of JBoss/Tomcat Integration] - How can i Deploy an application from Tomcat to Jboss????
by jainendra.pathak
Hi Every one...
I want help of u guys...because...i m stacking....to deploy an application name Login_Module1 on Jboss...it is working fine in Tomcat ....
Structure for tomcat is
webapps
----
Login_Module1
------>css
------->images
-------->jsp
-------->WEB-INF
-----web.xml
------classes
------com
------UserLogin
------two .class files
------src
------com
------UserLogin
-------two java files
and its working fine over tomcat......
but when i created the war file of whole package to deploy on JBoss
using command...
jar -cvf LoginModule.war *
and this war file i putted into JBOSS_HOME/server/default/deploy/
folder...after satrting the jboss its giving the error
like
******************************************
"HTTP Status 404 - /Login_Module1/servlet/hrms_user_login
type Status report
message /Login_Module1/servlet/hrms_user_login
description The requested resource (/Login_Module1/servlet/hrms_user_login) is not available.
Apache To"
************************************************
i need ur help .....i m waiting for ur response....
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124308#4124308
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124308
16 years, 3 months