Close

JAAS Notes

Java Authentication and Authorization Service, or JAAS, pronounced “Jazz” Configuration files for JAAS *.login.conf (e.g. form login) *.policy (which identity grant which permission) LoginModule (interface) LoginContext (Class) Kick off authentication process by creating a subject (if no subject passed to it will create a new one) Subject e.g. user, resource, system, … Principal Face of…

Sequence generation in JPA

@Entity@Table(name = “Facility”)public class FacilityEntity implements Serializable{ private static final long serialVersionUID = -5193920209461702399L; @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = “SEQ_FACILITY_ID”) @SequenceGenerator(name = “SEQ_FACILITY_ID”, sequenceName=”SEQ_FACILITY_ID”) @Column(name=”facilityid”) private Long facilityId;.. } It took me some time to figure this out, you have to have sequenceName in your SequenceGenrator annotation. It might work without it, and might…

Hudson – Continuous Integration

People (developers) pricierComputers CheaperWhy not use more computers than people? Hudson in many companies used (not in Google?) community release every week detects changesbuilds record resultssend notifications cron – before hudson (+some customization using perl)can send emails only not anymore hudson – aggregate results, from different platform, different JVMs and so on (great feature) hudson…

VM arguments

Have you ever wondered where that value came from in a Java program? One place to look for is the VM arguments. They are set in the system and not when you are writing your code. A code like this will give you some good understanding of VM arguments. import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; RuntimeMXBean RuntimemxBean…

Advanced JBoss Enterprise Development

I attended and successfully completed “Advanced JBoss Enterprise Development” course offered by Red Hat in April 2011. Advanced JBoss Enterprise Development – Certificate Red Hat JBoss Enterprise Application Development II(JB325) – Course The topics covered in this course were as follows: Introduction to JBoss JBoss Architecture Overview JMX Jaba Management Extensions AOP & JBoss Connectors…