Results 1 to 5 of 5

Thread: Transfer of information in the Session Context (Swing Client, EJB3)

  1. #1
    Join Date
    Jan 2010
    Posts
    79

    Transfer of information in the Session Context (Swing Client, EJB3)

    I would like to transfer information from my rich client to my server, which can be read out of session beans. This is not to the methods themselves, but similarly done using JAAS authentication on the context. In the session beans I have access to the Session Context. Is there any way in the client to write data to the session context? The following is the scenario of background. A user can have multiple clients running simultaneously. The client must however be clearly identifiable to send targeted messages. Why should a client be transferred from the context id, which is specified in the messages as "receivers". Please help me as soon as possible.!!

  2. #2
    Join Date
    Jan 2006
    Posts
    211

    Re: Transfer of information in the Session Context (Swing Client, EJB3)

    A user can have multiple clients running simultaneously. The client must however be clearly identifiable to send targeted messages. Why should a client be transferred from the context id, which is specified in the messages as "receivers".
    but it would be possible, of course, additional credentials / data in JAAS to integrate context and read them on the other end. Is of course see depending on application server. If this is JBoss, the interceptors would be a good alternative.

  3. #3
    Join Date
    Jan 2009
    Posts
    140

    Re: Transfer of information in the Session Context (Swing Client, EJB3)

    I wonder why the session must be to contain the information? It's problematic because a client can have several states (windows / tabs) have. If the client sends a query contains the state and this state should go to the backend, you could miss the Principal object to it. We do it this way - although you have to watch out for synchronization, as all clients use the same user may have the same principal. For a similar problem, I added an aspect of this state, before calling the backend, the principal sets, and then removed it. Hope that helps..

  4. #4
    Join Date
    Feb 2009
    Posts
    105

    Re: Transfer of information in the Session Context (Swing Client, EJB3)

    How can I most easily put something in the JAAS context and how do I get the server back to the turn?
    Context would be the wrong place for that - but in the subject (javax.security.Subject) it safe place for a few extra Principal and Subject direction is server communicates. And of course, the standard does not specify how and to what extent, but typically is it so. On the server, you can look up this subject and read what is there, anything goes.

  5. #5
    Join Date
    Mar 2008
    Posts
    192

    Re: Transfer of information in the Session Context (Swing Client, EJB3)

    The course returns only one subject, if the EJB methods are called accordingly. But has the advantage when the authentication took place outside of the container and the container AuthorInformation are not loaded properly or forwarded (eg JBoss + Apache httpd). The call of the methods is done with Subject.doAs *(). If the client-server communication is over SSL / TLS, you can also use the SSL session id for distinguishing units of varying compounds.

Similar Threads

  1. Poor Audio from HP T5745 Thin Client in Citrix Session
    By The#Gaelic in forum Hardware Peripherals
    Replies: 4
    Last Post: 12-02-2012, 04:45 PM
  2. Scheduling in EJB3 Timer Service
    By Cheng-Gong in forum Software Development
    Replies: 5
    Last Post: 24-07-2010, 06:06 AM
  3. How to transfer files via the Utorrent client
    By Delgado in forum Windows Software
    Replies: 6
    Last Post: 25-06-2010, 02:04 AM
  4. Replies: 4
    Last Post: 14-01-2010, 06:16 PM
  5. How to transfer AOL information with ePreserver
    By Computer_Freak in forum Tips & Tweaks
    Replies: 0
    Last Post: 07-03-2009, 01:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,904,086.65700 seconds with 16 queries