You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by john lee <sh...@yahoo.com.INVALID> on 2018/10/12 00:21:37 UTC

namespace session websocket

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 ?
thanks
john           

Re: namespace session websocket

Posted by Lukasz Lenart <lu...@apache.org>.
pt., 12 paź 2018 o 02:25 john lee <sh...@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