Posts

List of instantiable and non-instantiable portlets

A nice to have list of instantiable and non-instantiable portlets: Non-Instanceable:- 1. Collaboration Blogs Blog Aggregator Calendar Message Boards Recent Bloggers Wiki 2. Community Bookmarks My Communities Page Comment Invitation Page Comments Page Flags Page Ratings 3. Content  Management Document Library Image Gallery Recent Documents Web Content Search  4. Entertainment Words 5. Finance Currency Converter Loan Calculator

Splitting Mongo Driver

Image
In our application we decided to split the mongo db driver to improve performance of a certain module. This is how it was done: "mongo" is the default ID of a mongo driver. So we need to set the ID to a different value for the second declaration. It worked like a charm.

Mongo Db - First Look

Definition Mongo db is a scalable, high-performance, open source, schema-free, document-oriented database. Advantages Here are some of the advantages of MongoDB for building web applications: A document-based data model. The basic unit of storage is analogous to JSON, Python dictionaries, Ruby hashes, etc. This is a rich data structure capable of holding arrays and other documents. This means you can often represent in a single entity a construct what would require several tables to properly represent in a relational db. Deep query-ability. MongoDB supports dynamic queries on documents using a document-based query language that's nearly as powerful as SQL. No schema migrations. Since MongoDB is schema-free, your code defines your schema. Better performance. There are many reasons for this. One is that, since the document model frequently doesn't need joins, MongoDB doesn't support them; another is that MongoDB uses memory-mapped files and a different consistenc...

Cardspace issues

I wasted 2 days over this Cardspace issue . Which require us to " strip whitespace from xml signatures - a need of MicroSoft's CardSpace identity selector ". See the exact steps to enable this patch here . You would also need JCE security policy to be upgraded. Here are the installation instruction:

Maven script to deploy War file

Image
I hate copying the war file manually to the tomcat dir. Such a waste of time. So, decided to get this script handy. Sample maven script for auto deploying into deployment dir:                                

Dependency Injection of REST in Spring

Image
The configurations required in the Application context file is as below:

Group filter in LDAP import

Adding a group filter in LDAP import can be done as mentioned in this article . However I had to do a minor change. I had to use (name = myLDAPGroupName)            instead of (objectClass=Group) for the search filter under Setting->User->Edit LDAP config->Group section.