Re: Share info across different sessions & servers

2013-07-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vince, On 7/3/13 6:14 PM, Vince Stewart wrote: > 1) I use embedded Tomcat to build my application and this has > allowed me to maintain 2 single-line patches in tribes classes by > adding tribes source code to my compilations. However those patches

Re: Share info across different sessions & servers

2013-07-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 7/2/13 3:43 PM, Jose María Zaragoza wrote: > Maybe I explained myself badly I really need to send messages to a > specific web session , not share data > > I need to pass some data ( message ) to a specific session from a > remote system (

Re: Share info across different sessions & servers

2013-07-06 Thread Jose María Zaragoza
Thanks Vince 2013/7/6 Vince Stewart > hi Jose, > here is a working demo for exchanging messages between remote hosts using > tribes > > > import java.io.IOException; > import java.io.Serializable; > import java.net.InetAddress; > import java.net.NetworkInterface; > import java.net.SocketExcepti

Re: Share info across different sessions & servers

2013-07-05 Thread Vince Stewart
hi Jose, here is a working demo for exchanging messages between remote hosts using tribes import java.io.IOException; import java.io.Serializable; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.nio.charset.Charset; import java.util.Arra

Re: Share info across different sessions & servers

2013-07-03 Thread Jose María Zaragoza
Thanks Vince. I'll take a look , but , it doesn't look trivial , not at all Regards 2013/7/4 Vince Stewart > Hi Jose, > > a couple of things, > 1) I use embedded Tomcat to build my application and this has allowed me to > maintain 2 single-line patches in tribes classes by adding tribes source

Re: Share info across different sessions & servers

2013-07-03 Thread mailingl...@j-b-s.de
Hi! what about treating this problem as a chat system? You want to broadcast messages, right? Maybe http://cometd.org/ is of any help (did not use it now personally) Jens Sent from my iPhone On 04.07.2013, at 00:14, Vince Stewart wrote: > Hi Jose, > > a couple of things, > 1) I use embedded

Re: Share info across different sessions & servers

2013-07-03 Thread Vince Stewart
Hi Jose, a couple of things, 1) I use embedded Tomcat to build my application and this has allowed me to maintain 2 single-line patches in tribes classes by adding tribes source code to my compilations. However those patches are only necessary with large messages that take more than 3 seconds to b

Re: Share info across different sessions & servers

2013-07-02 Thread Jose María Zaragoza
Thanks Vince. This could be an option. The documentation is poor and I don't see many examples in the web Could you send to me some code as example & server.xml configuration ? Regards 2013/7/3 Vince Stewart > I have am using "tribes" messaging to send messages between remote > applicatio

Re: Share info across different sessions & servers

2013-07-02 Thread Vince Stewart
I have am using "tribes" messaging to send messages between remote applications which include tomcat embedded. You construct your message and submit to a "sendMessage" process. All running apps are always listening for messages. They receive the message and then may or may not reply or broadcast as

Re: Share info across different sessions & servers

2013-07-02 Thread Jose María Zaragoza
Thanks Christopher : Maybe I explained myself badly I really need to send messages to a specific web session , not share data I need to pass some data ( message ) to a specific session from a remote system ( a remote process from a remote system). Finally, this data is passed to client's browser

Re: Share info across different sessions & servers

2013-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 7/2/13 3:22 AM, Jose María Zaragoza wrote: > Thanks I need to share formatted text data ( XML, key/value, > ...I'm not sure yet ) > > I don't understand your comment about JMS . I will use a JMS broker > as ActiveMQ . Probably it will be

Re: Share info across different sessions & servers

2013-07-02 Thread Jose María Zaragoza
Thanks I need to share formatted text data ( XML, key/value, ...I'm not sure yet ) I don't understand your comment about JMS . I will use a JMS broker as ActiveMQ . Probably it will be embebbed into the same JVM than Tomcat server. ActiveMQ supports persistent messages I could use a database b

Re: Share info across different sessions & servers

2013-07-02 Thread mailingl...@j-b-s.de
Hi! What kind of data do you want to share? Just a view "bytes"? Is there an requirement concerning durability/persistence/performance? Is this user=session related or do you want to share data in general? Usually if you have a session id the lb will route your user always to the same container

Share info across different sessions & servers

2013-07-01 Thread Jose María Zaragoza
Hello: I need to share data between sessions running in different Tomcat server. I 'd been thinking about using a JMS broker (as ActiveMQ ): - when a new session is created in Tomcat A, it's created a new unique topic for this session - the session registers itself as listener of that topic ( th