1. Making Jersey-based web-services be JSONP friendly

    It's pretty easy to make web-services answer with JSONP callbacks if you're using Jersey. Adding single filter you can make all web-services' resources add callbacks to their response.

    Here is the code of such filter. Note that it's Jersey-based.

    package net.sukharevd.ws.rs;
    
    import javax.ws ...
    Tagged as : Java
  2. Using JNI for calculations

    I had plenty free time lately. Out of boredom, I decided to try something new and interesting, something what I wouldn't probably use for my job. Something like JNI.

    JNI enables programmers to run native code from Java and vice versa. It can be used to improve performance of ...

    Tagged as : Java C
  3. JBoss AS 7 Configuration

    It's kind of not trivial to use JBoss AS after usage of containers like Apache Tomcat or Jetty. And unfortunately JBoss AS isn't distributed in the way that let it be easily set up as service. This article is just a remember for me how should I install ...

    Tagged as : Linux Java
  4. Performance Overview of String Concatenation

    Today I decided to test different ways of concatenation. I chose concatenation with "+" operator, String.format(...) and StringBuilder. I wrote simple code for determining time in milliseconds for each test.

    Source Code:

    package test;
    
    import java.util.Iterator;
    import java.util.TreeSet;
    
    public class Main {
        private static final double A ...
    Tagged as : Java
  5. Usage of Oracle Database via JDBC

    In this article I want to show you how to use Oracle Database via JDBC. I'm going to describe the easy way of connection to database, creation of table, and fetching, inserting, updating and deleting rows in created table (CRUD).

    What do you need for this?

    First of all ...

    Tagged as : Java SQL

Page 1 / 1