Articles Tagged ‘jndi’
Monday, July 4th, 2016
When writing applications that interchange information with LDAP directory services there is always the need to write integration tests for these components and services.
Therefore we need a the possibility to start-up an embedded LDAP server, fill it with test-data and control its life-cycle during the test-phases.
In the following tutorial I’d like to demonstrate two candidates that fulfil this purpose, the ApacheDS test integrations and a small library named embedded-ldap-junit.
(more…)
Tags: active directory, ad, Apache, apacheds, ds, embedded-ldap-junit, jndi, junit, ldap, ldif, tdd, test
Posted in Java, testing | No Comments »
Monday, June 13th, 2011
I am currently working on a plugin that needs to receive some information from an LDAP/Active Directory using JNDI. That’s why I needed to set up a directory server in a short time and I didn’t want to waste much effort for here.
Luckily for me the Apache Directory Studio saved my day and allowed me to set up everything I needed in a few minutes.
Short and sweet: In this tutorial I’m going to show you how to configure everything you need in your Eclipse IDE and finally how to query the created LDAP server with a tiny java client using JNDI.
(more…)
Tags: active directory, ad, Apache, apacheds, eclipse, jndi, ldap, ldif
Posted in Development, Java | 3 Comments »
Tuesday, February 8th, 2011
Java EE 6 is out and it indeed offers an interesting stack of technologies. So in today’s tutorial we are going to build a small sample web application that builds on this stack using Enterprise JavaBeans, Java Persistence API, Bean Validation, CDI and finally Java Server Faces and PrimeFaces.
The application we’re going to develop is a simple blog app that allows us to create new articles, list them and – finally delete them. We’re also covering some additional topics like JSF navigation, i18n, Ajax-enabled components and the deployment on the GlassFish application server.
(more…)
Tags: bean, bean validation, cdi, eclipselink, ejb, example, glassfish, hibernate, IoC, java ee, javaee, jee, jndi, jsf, jsr-303, jsr-316, jsr-317, jsr-318, maven, mojarra, primefaces, toplink, tutorial, validator, weld
Posted in Java | 85 Comments »
Saturday, January 1st, 2011
Are you playing around with the shiny new 3.1 EJB API?
Using Maven for your Java projects?
Need an easy way to write and execute tests for your EJBs that depends on an Java Application Server?
No problem using Maven Archetypes, the Maven EJB Plugin and the GlassFish embedded Application Container..
(more…)
Tags: application server, arquillian, bean, ejb, embedded, enterprise java bean, example, glassfish, java ee 6, jee, jeeunit, jndi, jsr-318, junit, maven, testing, tutorial
Posted in Java | 8 Comments »