DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Open Sourcing Eclipse Dropwizard Tools

Open Sourcing Eclipse Dropwizard Tools

A brief look at how Tasktop's newly open sourced tools allow you to use Dropwizard with the Eclipse IDE.

Holger Staudacher user avatar by
Holger Staudacher
·
Apr. 04, 16 · Java Zone · Opinion
Like (7)
Save
Tweet
6.65K Views

Join the DZone community and get the full member experience.

Join For Free

Here at Tasktop we really like industry standards. It’s important for us to use well known tools and frameworks to make transitions between teams easier. When it comes to creating a REST API there is no way around JAX-RS in the Java world. But JAX-RS (or one of it’s implementations) is not a full server stack. You always need to use some other technologies e.g. to access a database, do logging and much more.

Several projects exists providing such a stack. And one of the coolest projects in the last years is Dropwizard. Dropwizard combines some industry standard technologies like JAX-RS (Jersey), Hibernate, log4j, Guava, Jetty (and some more) and glues them together. We use Dropwizard here at Tasktop for several products because it just works and make things easy.

As you might know, we have a heavy Eclipse background and are using Eclipse as an IDE for all our projects. For this reason we also use Eclipse for our Dropwizard applications. While you can launch Dropwizard applications without special tooling in Eclipse, it has some drawbacks. These are:

  • You need to use system properties to point to your Dropwizard configuration.
  • You always need to terminate a previously launched instance of your application because the port used by the running instance will be occupied when launching the new instance.

Introducing the Eclipse Dropwizard Tools

To make our life easier we have created the Eclipse Dropwizard Tools. The tools contain a launcher to launch Dropwizard applications. You can select the Dropwizard configuration in the UI and it eliminates all previously launch instances before it launches a new one. So no more “address is already in use” error messages.

:auncher

Because of this, the tools contain a launch shortcut. This means you can just launch your main class as a Dropwizard Application and it will also pick the first .yml file in your project as the configuration to use.

Launch Shortcut

One other goodie we added is a YAML editor. YAML is an essential part of Dropwizard (e.g. for the configuration). We did not develop this by ourselves, instead we used the Eclipse YEdit plugin. It’s a very mature YAML editor for Eclipse that makes editing much easier.

Installation

The Dropwizard Tools are available in the Eclipse Marketplace. You can simply drag and drop the “install” badge below into your IDE to install it.

Drag to your running Eclipse workspace to install Dropwizard Tools

Alternatively you can also use the p2 repository url which is: http://tasktop.github.io/dropwizard-tools/

License and Contribution

The Eclipse Dropwizard Tools are licensed using the Apache 2.0 Software License and hosted as a github project. Feel free to open issues and create some pull requests. We would love to see your contributions and all feedback is welcome!

Eclipse

Published at DZone with permission of Holger Staudacher. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • After COVID, Developers Really Are the New Kingmakers
  • Synchronization Methods for Many-To-Many Associations
  • Don't Underestimate Documentation
  • Use Lambda Function URL To Write a Serverless App Backed by DynamoDB

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo