Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Rep Power

    Default EJB Security context in Swing application

    Hi All,

    I am having an issue with following exception:

    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    javax.ejb.EJBAccessException: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>

    I've read certain forums and found out is that EJB SecurityContext is bound to the thread and that is stored in thread local and
    inherented by child threads.
    The problem is that this exception is quite rare and users have to restart their GUIs to get rid of it.
    The flow is following: Login window -> get username/password -> Use this username/password to create initial context.
    The problem is that during login window creating AWT threads are already created and I think what I need to do is:
    a) Kill all AWT/Swing threads after users enters login/password into Login window.
    b) initialize InitialContext in main thread to make sure it's inherented by all other threads.

    There are couple of issues about this - I dont know how to kill AWT/Swing threads. Also if someone knows more elegant solution, would be great.

    P.S. I am using Weblogic 10.0.3.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: EJB Security context in Swing application

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 01-02-2012, 04:15 PM
  2. Replies: 2
    Last Post: 07-03-2011, 04:31 PM
  3. Web application security training
    By owasptraining in forum Java Certification
    Replies: 0
    Last Post: 06-07-2011, 04:19 PM
  4. Modify context root in application.xml
    By Saurabh321 in forum New To Java
    Replies: 1
    Last Post: 04-17-2009, 11:12 AM
  5. Application Context
    By bbq in forum Java Servlet
    Replies: 1
    Last Post: 07-05-2007, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts