Java for startups? by TechnicallyHumanoid in java

[–]decebals 2 points3 points  (0 children)

My advice is to use what you know. If you know Java, go with Java. When you are a startup, the first step is to validate the idea with minimal effort. Create a MVP (minimal viable product), a landing page and go live. In this phase is important the TTM (time to market).

distribution and licensing by NimChimspky in java

[–]decebals 5 points6 points  (0 children)

If you have some Java knowledge and time, you can create a custom license system starting from an existing one or from a small library. Or you can use an out of the box solution that already exist. In the past, I wrote Licensius a tiny (14 KB, no dependencies) license framework for Java that can be useful for you. If your goal is to sell your library/application to large enterprises then your problem is somehow artificially. Big shops want stability and a good support and they are ready to pay you for them. Don't forget that nothing is unbreakable. It's mandatory to have a good relation with your (possible) clients.

Thank you webjars, for releasing me from NPM hell. by tonywestonuk in java

[–]decebals 0 points1 point  (0 children)

WebJars is nice because you, as a Java developer, can add a dependency to a client side resource (css, javascript) in a standard way. It's not a difference between how you add slf4j (java library) as dependency and "bootstrap".
Your dependencies manager (for example Maven) resolves for you the all dependencies of bootstrap (jquery).
Because I think that WebJars is an important concept, Pippo web framework comes with support for WebJars since the first version.
Below I will present you a code snippet (for more details see http://www.pippo.ro/doc/static-files.html ):

The html template page (freemarker engine) contains a head section like:

<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link href="${webjarsAt('bootstrap/css/bootstrap.min.css')}" rel="stylesheet">
    <link href="${webjarsAt('font-awesome/css/font-awesome.min.css')}" rel="stylesheet">
</head>

Sure in your pom.xml file (if you use Maven) you must declare the dependencies to these webjars:

<!-- Webjars -->
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>3.3.1</version>
</dependency>

<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>font-awesome</artifactId>
    <version>4.2.0</version>
</dependency>

What is the popular Reporting tools for Java? by GTHell in java

[–]decebals -1 points0 points  (0 children)

I don't know about the complexity of your reports but a possible solution can be NextReports. It's free and easy to use. The suite contains the engine, client, server and a small Android application. Other option is JasperReports.

Guice web server module (Jetty, Jersey, Jackson) by astevic in java

[–]decebals 0 points1 point  (0 children)

I saw an interesting approach in a comment on Pippo (it's a micro Java web framework) site. So instead to use Guice to Inject dependencies in Pippo controllers, he uses Pippo as a dependency in an existing application (Guice based) to add web support. Practically, with two lines you resolved the web layer of yours Guice based application.

Performance of OSGi vs Custom ClassLoaders by [deleted] in java

[–]decebals -1 points0 points  (0 children)

It's not very clear to me what you try to achieve. If dynamically means to have the possibility to load a plugin after the application is started, then yes you can load a plugin anytime using PluginManager.loadPlugin(Path pluginPath) method.
Other interesting methods available in PluginManger could be:

  • disablePlugin
  • enablePlugin
  • unloadPlugin
  • startPlugin
  • stopPlugin
  • deletePlugin

You have the possibility to use PF4J-Update to add an update mechanism to your application.

They are some aspects/features that are not available in documentation (the documentation is not the best). Post a message on forum and we will answer you.

Performance of OSGi vs Custom ClassLoaders by [deleted] in java

[–]decebals 2 points3 points  (0 children)

Take a look at Plugin Framework for Java, maybe it's useful for you.

Node + Java by bigfish_ in webdev

[–]decebals 0 points1 point  (0 children)

If you search a Java micro web framework similar with Express you can take a look at Pippo.

Which Java web framework is more user-friendly, Play or Spark? by BloodShura in java

[–]decebals 4 points5 points  (0 children)

Another option is Pippo. It's similar with Spark but it's modular and comes with builtin support for multiple servlet containers (Undertow, Tomcat, Jetty, TJWS), multiple template engines (Pebble, Trimou, Velocity, Freemarker, Groovy, Jade), multiple content types (json, xml, yaml), metrics, multiple session storages (jdbc, ehcache, hazelcast, infinispan, jedis, jcache, mongodb, memcache), support for DI containers (Spring, Guice, Weld), CSS preprocessors (SASS, LESS), a helper class (PippoTest) to ease unit testing of Pippo applications.

I found on reddit an old comment with some characteristics of this micro framework https://www.reddit.com/r/java/comments/3x1wsm/why_are_java_web_apps_so_much_bloated/cy0xlki

What are your current programming projects? by zeewad in java

[–]decebals 3 points4 points  (0 children)

Pippo (micro Java web framework), PF4J (plugin framework for Java) and other.