First we need to create a S3 bucket used to store two types of maven artifacts: stores two types of artifacts: releases and snapshots.
I’m currently working on a web application on Java EE7 stack and I’ve integrated Apache Shiro with CAS for security. Everything goes well, except the GlassFish 4.1 (build 13) server logs keep getting filled with following errors when calling
In this post I want to share how to setup SSO with CAS and LDAP authentication, and then demonstrate how to integrate Apache Shiro with CAS in the web application.
The following entry which represented in LDIF would be used to login the CAS. In this case, the
username will be the full email address (case-insensitive) and the
password is the value of userPassword attribute.
dn: cn=John Doe,dc=example,dc=com objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson cn: John Doe sn: Doe mail: firstname.lastname@example.org userPassword:: e21kNX1HaDNKSEpCekpjYVNjZDN3eVVTOGNnPT0=
Assume we have a naive User POJO class with a BSON Type ObjectId field, i.e., id.
1 2 3 4 5 6 7 8
We can expect the following outputs from our REST services which is not a
String with 24 hex characters.
1 2 3 4 5 6 7 8 9 10 11 12
Here’s quick share of converting the ObjectId to String in MongoDB Asynchronous Java Driver:
1 2 3 4 5 6 7
Allanbank’s driver is a good alternative when 10gen driver does not provide a better way for constructing arbitrary Aggregation pipelines. Now the official MongoDB Java driver also provides a new helper method,
DBCollection.aggregate() which can be used to create aggregation tasks since version 2.9.0.