How to store current logged user information.

20 views
Skip to first unread message

Marc Rejohn Castillano

unread,
Mar 20, 2018, 4:29:03 AM3/20/18
to JRebirth Users
I'm completely new to JRebirth, haven't even started IDE setup.

How do we store the information of the current logged user on JRebirth?
Hmm, like setting key value pair on HttpSession then retrieve it when needed.
Just like we do on our spring mvc web project.
Something like that.

Thank you.

Sebastien Bordes

unread,
Mar 20, 2018, 6:00:54 AM3/20/18
to JRebirth Users
Hi Marc,

You need a long-living component to store such data, so the best option is to delegate this job to a Service.

You can use local variables to store user data, they can be accessed directly with getters (getService(UserService.class).getUserData(); )

If you need to communicate you'll have to create a service task to trigger async call ie to retrieve list of users from a remote server:

http://jrebirth.org/doc/Services.html
https://www.slideshare.net/SbastienBordes/clipboards/services

Marc Rejohn Castillano

unread,
Mar 20, 2018, 8:02:29 PM3/20/18
to jrebirt...@googlegroups.com
Thank you so much. This will be very helpful.

--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "JRebirth Users".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/jrebirth-users/M9E859S0B8Y/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse jrebirth-users+unsubscribe@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Sebastien Bordes

unread,
Mar 21, 2018, 4:12:44 AM3/21/18
to JRebirth Users
You are welcome!

Don't hesitate to post any other question.


Le mercredi 21 mars 2018 01:02:29 UTC+1, Marc Rejohn Castillano a écrit :
Thank you so much. This will be very helpful.
 
Hi Marc,
Reply all
Reply to author
Forward
0 new messages