I decided to write down the answer for some questions which my book's readers email me or ask me via twitter in my weblog so everyone can benefit from the answers. Here is the answer to the first question which involves custom security realms.
GlassFish supports 5 types of security realms out of the box which are sd follow:
File Realm: Usefull for development and testing purposes. GlassFish...
Java EE Security refcard is available for download. This refcard covers Java EE 6 security and discuss how each application server supports the specs. The refcard covers authentication, authorization, and transport security in Web Application, EJB application and web services by introducing the concept and the related annotations and deployment descriptors which help us realize the concept.
This article introduces GlassFish CLI or command line administration console. GlassFish provides several administration channels; one of them is the command line administration interface or CLI from now on. The CLI has many unique features which make it very convenient for command line advocates and new administrators which like to get familiar with CLI and use it in the daily basis. The CLI allows us to manage, administrate, and monitor any resources which application server exposes to the administrators.
Here is an example of OSGi/JMS/MDB comprising of two OSGi bundles deployed in GlassFish:
a) A JMS message producer bundle
b) A JMS message consumer bundle
CDI (Contexts and Dependency Injection for the Java EE platform) is defined in JSR-299 and enhances support for dependency injection in Java EE 6. The more I use CDI the more I like it...However, I couldn't find a simple example of how to configure your application with CDI by reading configuration attributes from a file. Here is an example of how it can be done:
Specifying injection points...
Content available at: http://blogs.sun.com/arungupta/entry/totd_135_jsf2_custom_components
Content available at: http://blogs.sun.com/arungupta/entry/totd_134_interceptors_1_1
Content available at: http://blogs.sun.com/arungupta/entry/totd_132_servlets_3_0
Content available at: http://blogs.sun.com/arungupta/entry/totd_129_managed_beans_1
Content available at: http://blogs.sun.com/arungupta/entry/totd_128_ejbcontainer_createejbcontainer_embedded
In this post I will share my recent findings about Container Dependency Injection in Java EE 6, in particular how to decouple the processing threads of event producers and event consumers.
Java EE 6 introduces a very nice dependency injection framework (CDI) that has superb support for the Observer pattern in the form of event broadcasting.
An Event in CDI is just a regular POJO:
In my last blog I described the generic user procedures as used in CAFE.
These procedures can be used for registration and various parts of presence.
In this instalment I will go a bit deeper into the presence related user procedures, showing how to publish presence information on behalf of a user and subscribe to presence information.
And since presence information in CAFE is (currently) bound to the groups, I'll also show a bit of the group management.
In this short entry, I'd like to bring to your attention a nifty CMS engine built on top of JavaEE: flexive.
Content available at: http://blogs.sun.com/arungupta/entry/totd_136_default_error_page
GlassFish security book authored by Masoud kalali and published by Packt is now available for purchase. The book covers GlassFish, Java EE 6, OpenSSO and OpenDS.
Content available at: http://blogs.sun.com/arungupta/entry/totd_133_jpa2_jpql_criteria
Content available at: http://blogs.sun.com/arungupta/entry/totd_131_dynamic_osgi_services
In which our hero makes Jersey dance in ways that probably make the Jersey authors take to their sick beds with a headache.
Web Services and XML
Content available at: http://blogs.sun.com/arungupta/entry/totd_130_invoking_a_osgi