The Artima Developer Community
Sponsored Link

Java Buzz Forum
OrientDB in service mode with Java Service Wrapper

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fabrizio Fortino

Posts: 10
Nickname: fabriziof
Registered: Aug, 2014

Fabrizio Fortino is an experienced programmer and open source enthusiast.
OrientDB in service mode with Java Service Wrapper Posted: Jun 7, 2016 10:44 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fabrizio Fortino.
Original Post: OrientDB in service mode with Java Service Wrapper
Feed Title: Keep it HTTPS
Feed URL: http://fabriziofortino.github.io/feed.xml
Feed Description: No fluff just stuff weblog
Latest Java Buzz Posts
Latest Java Buzz Posts by Fabrizio Fortino
Latest Posts From Keep it HTTPS

Advertisement

Many companies heavily rely on the functions of database that their daily business operations can not be executed if the database is not available, making database management and maintenance a critical component of their business models.

OrientDB is an Open Source NOSQL database, written in Java, which nicely mixes Document and Graph features in a unique solution.

Java Service Wrapper is a configurable tool which allows Java-based applications to be installed, controlled and monitored as native Unix/Linux/MacOSX/Windows services in a painless way.

On a past project I have integrated JSW Community Edition for a critical application needed 24x7. Since the result was excellent I have decided to do the same with OrientDB. The complete integration scripts and related documentation on how to install and use it are available on https://github.com/fabriziofortino/orientdb-servicewrapper

Install orientdb-servicewrapper

Setup OrientDB home

To setup the integration between OrientDB and Java Service Wrapper, edit the file $ORIENTDB-HOME/bin/service/orientdb.conf and replace the placeholder for the variable set.default.ORIENTDB_HOME with the OrientDB installation full path.

Ready to go

Then, at this point the OrientDB service wrapper is ready to go, you can test it by directly invoking the service:

Daemonize and monitor OrientDB

As you can see, install or uninstall of the OrientDB daemon / NT service or retrieving useful information like the JVM dump are easy as pie. But JSW Community Edition gives us even more. Basically the wrapper will ping the OrientDB JVM every 5 seconds (you can change the polling time in orientdb.conf) to make sure the process has not frozen up. If the JVM does not respond the process will be automatically restarted. Moreover, it is possible to intercept any string coming from the OrientDB JVM output and execute any number of actions. By default, I have included in orientdb-servicewrapper a RESTART action triggered when an OutOfMemory exception occurs. You can easily add your custom trigger / actions just modifying the configuration file.

OrientDB in service mode with Java Service Wrapper was originally published by Fabrizio Fortino at keep it https on August 11, 2014.

Read: OrientDB in service mode with Java Service Wrapper

Topic: So If You’re Using Tag Libraries for Your View Models You Have To Test Them, Right? Previous Topic   Next Topic Topic: CUBA Platform – an open source Java framework for rapid application development

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use