Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-07-2010
Member
 
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.!!
Reply With Quote
  #2  
Old 31-07-2010
Member
 
Join Date: Jan 2006
Posts: 211
Re: Transfer of information in the Session Context (Swing Client, EJB3)

Quote:
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.
Reply With Quote
  #3  
Old 31-07-2010
Member
 
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..
Reply With Quote
  #4  
Old 31-07-2010
Member
 
Join Date: Feb 2009
Posts: 105
Re: Transfer of information in the Session Context (Swing Client, EJB3)

Quote:
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.
Reply With Quote
  #5  
Old 31-07-2010
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Transfer of information in the Session Context (Swing Client, EJB3)"
Thread Thread Starter Forum Replies Last Post
Poor Audio from HP T5745 Thin Client in Citrix Session The#Gaelic Hardware Peripherals 4 12-02-2012 04:45 PM
Scheduling in EJB3 Timer Service Cheng-Gong Software Development 5 24-07-2010 06:06 AM
How to transfer files via the Utorrent client Delgado Windows Software 6 25-06-2010 02:04 AM
How to transfer information from one Nokia mobile to another? KALIDA Portable Devices 4 14-01-2010 06:16 PM
How to transfer AOL information with ePreserver Computer_Freak Tips & Tweaks 0 07-03-2009 01:41 PM


All times are GMT +5.5. The time now is 11:42 AM.