struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: namespace session websocket
Date Thu, 18 Oct 2018 10:30:08 GMT
pt., 12 paź 2018 o 02:25 john lee <sh_thorn_bird@yahoo.com.invalid> napisał(a):
>
> My website is XYZ.com, and was build by struts2, everything works great.
> the configuration in the struts.xml is the following
>  <package name="default" extends="json-default">
>   ...  </package>
> but, i want to add chat feature by websocket method.
> that websocket action is called ChatAction,
> My question is
> 1.  could i put ChatAction inside default package as above? if i do so, will ChatAction's
websocket communcation interfere all other action call in the same namespace?
> 2. if the above answer is NO, should i do the following by creating different package
name with different namespace
>     <package name="mychat" namespace="onlinechat">
>     put chataction in the different package/namepsace could solve the interfere b/w websocket
communication and default package/namespace ?
> 3. if 2) is true, how i solve the session share b/w different package/namespace ?

Not sure if I understand your problem, putting an action in a
namespace doesn't make it a default action.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message