junit - Unit testing remote EJB bean with security -


this question similar java ee declarative security, acquiring reference secured bean application client more specific.

i can unit test local beans glassfish embedded container. remote beans have written application clients. viable solution until security applied @ remote beans. encountered problem of authenticating application client towards glassfish 3.1.1.

the phenomenon:

  • testing remote bean without security application client right.
  • the approach use security application of programmaticlogin not work , not sure correct way solve issue in unit tests. (see attached link @ beginning.)

question:

  • how think unit testing security remote beans should done?
  • where 1 need place glassfish-ejb-jar.xml? (maybe erronous in case , reason programmaticlogin not work.)

i continued search more information on internet , encountered following blog: http://www-02.imixs.com/roller/ralphsjavablog/entry/junit_and_glassfish_3_1.

  • it answers how test ejb 3.1 on glassfish 3.1.1 without third party tool. little tricky.
  • the security settings have not yet tried there example regard this.

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -