Articles Tagged ‘eclipse’
Friday, September 8th, 2017
Sometimes I need to resolve Maven dependencies programmatically. Eclipse Aether is a library for working with artifact repositories and I’ll be using it in the following example to read dependency trees from a given POM descriptor file and download each dependency from a remote Maven repository to a local directory.
(more…)
Tags: aether, eclipse, maven, pom, reactor, repository, resolve
Posted in Java | 5 Comments »
Wednesday, June 1st, 2016
The MQ Telemetry Transport Protocol (MQTT) is a lightweight publish/subscribe messaging protocol developed in 1999 that experiences a growing popularity due to trends like the Internet-of-Things and the need to exchange information between low powered devices with aspects as CPU and bandwidth usage in mind.
In the following tutorial I’d like to demonstrate how to set-up a broker for this protocol with the help of the Moquette library and how to create a client and publish messages for a specific topic using this broker and Eclipse Paho as client library.
(more…)
Tags: broker, eclipse, iot, m2m, messaging, moquette, mqtt, paho, publish, subscribe, topic
Posted in Java | 9 Comments »
Wednesday, November 2nd, 2011
The MemoryAnalyzer Plugin for Eclipse allows us to quickly analyze heap dumps from a virtual machine and search for memory leaks. In the following tutorial we’re going to create and run a small application that is going to cause an OutOfMemoryException during its runtime.
In addition, we’re forcing the virtual machine to save a heap dump and finally analyzing this data using Eclipse and the MemoryAnalyzer plugin.
(more…)
Tags: analyzer, dump, eclipse, heap, hprof, Java, jmap, jps, jvm, memory, virtual machine
Posted in Java | 2 Comments »
Tuesday, August 23rd, 2011
Using the contract-first approach to define a web service offers some advantages in contrast to the code-first approach.
In the following tutorial we’re going to take a look at some details of this approach and we’re going to implement a real SOAP service using JAX-WS, Maven and the Eclipse IDE.
Finally we’re going to run our service implementation on an embedded Jetty instance and we’re going to take a look at soapUI and how to test our service using this neat tool.
(more…)
Tags: eclipse, jax-b, jax-ws, jaxb, jetty, maven, port, schema, soap, soapui, wsdl, xml, xsd
Posted in Enterprise, Java, Web Services | 4 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 »
Saturday, June 5th, 2010
In this short tutorial we are going to build a Java Server Faces Web-Application using JSF2.0, Facelets, Maven and Hibernate as ORM Mapper.
The goals for this first step are: Setting up the project structure using Maven, defining a frame template/decorator and a registration facelet, creating a managed bean and mapping it’s values to the facelet, adding some basic validation, displaying validation errors and finally adding a navigation structure.
In step2 of this tutorial we are going to add persistence using Hibernate, add some security, create a custom UI component and add some AJAX.
The Mojarra JSF implementation is used for this tutorial – perhaps I’m going to post more about the MyFaces implementation in another tutorial.
(more…)
Tags: eclipse, example, facelet, glassfish, hibernate, java server faces, jee, jsf, jsf 2, jsf2, maven, mojarra, mvc, servlet, tomcat, tutorial
Posted in Development, Java | 6 Comments »
Friday, April 2nd, 2010
With the Maven Android Plugin it is possible to build and deploy/undeploy your android app and start/stop the emulator – if you’re used to maven you won’t be going without it ;)
If you’re interested in signing your apk using maven – take a look at this article. (more…)
Tags: adt, Android, eclipse, ide, m2eclipse, maven
Posted in Android, Java | No Comments »