You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Bernd Fondermann (JIRA)" <ji...@apache.org> on 2009/06/08 12:14:07 UTC

[jira] Commented: (VYSPER-70) Create a thread to send the published messages to all subscribers

    [ https://issues.apache.org/jira/browse/VYSPER-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717218#action_12717218 ] 

Bernd Fondermann commented on VYSPER-70:
----------------------------------------

You mean, "thread" like java.lang.Thread? Please don't do that. Handling parallelisation has to be dealt with in a scalable and manageable way. 
Executors are the right weapon of choice here.
But again, a subsystem has to be established and made responsible for relaying messages. 
Just think about what happens when every extension runs it's own set of threads. This would become production nightmare.

Luckily, this subsystem already exists. If it works well already? Let's see. But this should really be not a concern for the PubSub impl ATM.
(This subsystem should als be able to store messages offline etc.)

You should be able to relay messages with 
getStanzaRelay().relay()
on the server's 
  ServerRuntimeContext 
instance

> Create a thread to send the published messages to all subscribers
> -----------------------------------------------------------------
>
>                 Key: VYSPER-70
>                 URL: https://issues.apache.org/jira/browse/VYSPER-70
>             Project: VYSPER
>          Issue Type: Sub-task
>            Reporter: Michael Jakl
>            Assignee: Michael Jakl
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.