struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john lee <sh_thorn_b...@yahoo.com.INVALID>
Subject namespace session websocket
Date Fri, 12 Oct 2018 00:21:37 GMT
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           

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message