Back Forum Reply New

JMS user hierarchy

In my application I have customers, locations, and users.  

I'm clear as to how to deny connections to clients based on their user name and password but I don't understand how to route messages server side to only users which A) belong to the appropriate customer/location and B) have appropriate user rights.

For instance... depending on what's happening within the system, users might need alerts.  I only want certain users to recieve these particular alerts even though all users might be subscribing to the alert topic because they recieve different alerts.  

Security is important so client-side message selectors are out.  Not to mention with thousands of users that would be a network hog.

Thanks in advance


Originally Posted by BBerensIn my application I have customers, locations, and users.  

I'm clear as to how to deny connections to clients based on their user name and password but I don't understand how to route messages server side to only users which A) belong to the appropriate customer/location and B) have appropriate user rights.

Use roles on a destination so that only users with the right location/role can view messages on a certain topic. Then use a selector to filter messages on the topic/queue by userID etc.
Originally Posted by BBerensFor instance... depending on what's happening within the system, users might need alerts.  I only want certain users to recieve these particular alerts even though all users might be subscribing to the alert topic because they recieve different alerts.  

Can't the process generating the alert know whether or not its required for a certain user? Or have a filter - send the alerts to a queue then consume the messages and only send to a user if some criteria/rule is met.
¥
Back Forum Reply New