This discussion is archived
1 Reply Latest reply: Feb 6, 2013 7:15 AM by JamesSutherland RSS

SessionEventAdapter -> preLogin.

amehta5 Newbie
Currently Being Moderated
Are there any recommendation on the usage of SessionEventAdapter -> preLogin.

We have a few customizations on the TopLink sessions and an application can use one, all or any combinations of it.
All of them have a preLogin call.
Does calling preLogin multiple times effect performance?
Are there any best practices?
Thanks
  • 1. Re: SessionEventAdapter -> preLogin.
    JamesSutherland Pro
    Currently Being Moderated
    The preLogin event is commonly used for customizing a Session. You can also use a SessionCustomizer, which is probably better for customization, as it does not remain listening on the running Session.

    There should be no issue with having multiple listeners, assuming you have no dependencies on the order they are run.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points