Comments on: Little trick to set the database context when using the ADF BC Tester https://technology.amis.nl/2006/12/11/little-trick-to-set-the-database-context-when-using-the-adf-bc-tester/ Friends of Oracle and Java Sat, 25 Apr 2015 11:36:47 +0000 hourly 1 http://wordpress.org/?v=4.2 By: Lucas Jellema https://technology.amis.nl/2006/12/11/little-trick-to-set-the-database-context-when-using-the-adf-bc-tester/#comment-4121 Mon, 11 Dec 2006 20:09:28 +0000 http://technology.amis.nl/blog/?p=1428#comment-4121 Thanks Steve, So far for me thinking of a clever trick.. Well, if you want to set some database context, other than the current user – could this still be a handy way of working?

]]>
By: Steve Muench https://technology.amis.nl/2006/12/11/little-trick-to-set-the-database-context-when-using-the-adf-bc-tester/#comment-4120 Mon, 11 Dec 2006 20:07:32 +0000 http://technology.amis.nl/blog/?p=1428#comment-4120 Lucas, when your AM is configured as mentioned in section 30.4.1 “How to Configure Security in an Oracle ADF Business Components Application” of the ADF Developer’s Guide for Forms/4GL Developers, when you run the tester a JAAS authentication box will popup and while running the tester your ADFBC components will be running in the same JAAS-authenticated environment as when running in a web container. Try running the SRDemo Sample’s application module and authenticate as “sking” (password “welcome) and you’ll see that the various bits of the application that depend on accessing the current user (as mentioned in section 9.8 “How to Reference Information About the Authenticated User” of the Dev Guide). Have fun. Also check out this blog post (http://radio.weblogs.com/0118231/stories/2006/06/23/dynamicallyAssigningNamedBindVariableDefaultValues.html) for some code that generically allows you to default the value of a specially-hinted-with-custom-properties bind variable with the name of the currently logged in user.

]]>