Technical Blog by Tomasz Muras Technical Blog
  • Search
Navigation bar avatar
✕

    Java

    • REST web services that authenticate against Alfresco with Spring Security and Apache CXF

      Posted on May 29, 2014

      Purpose of this blog is to show how to integrate Spring Security framework with REST web services implemented using Apache CXF. To authenticate user within Spring Security framework external authentication mechanism based on token is used. The idea is to authenticate Spring Security application against external application – in our… [Read More]
      Tags:
      • java
    • How to setup solr 4 on tomcat in Ubuntu server 12.04 LTS

      Posted on July 30, 2012

      Update on 2012.09.20: updated for Solr 4.0-BETA (from ALPHA, thanks for the comment Dorthe). Update on 2013.07.09: updated for Solr 4.3.1 Update on 2013.07.28: the guide works with Solr 4.4, Ubuntu server 13.04 and tomcat7, just replace tomcat6 with tomcat7 and /var/lib/tomcat6/shared with /var/lib/tomcat7/lib [Read More]
      Tags:
      • solr
      • java
    • Alfresco workflow – copy files attached to a folder

      Posted on July 1, 2012

      The purpose of this post is to present creation of new workflow that would copy attached file to selected location depending whether the document was approved or rejected. In addition, I explain in more detail wokflow console and show how to gather more information regarding workflows from it. [Read More]
      Tags:
      • Alfresco
      • java
    • Tomcat environment variables and run

      Posted on June 13, 2012

      This article describes few useful bits and pieces about running Apache Tomcat. [Read More]
      Tags:
      • tomcat
      • java
    • Monitoring of Tomcat with VisualVM and VisualGC

      Posted on May 5, 2012

      Sometimes it can be useful to monitor performance of Java Virtual Machine (VM) on remote host. To do so, a very nice tool – VisualVM – can be used. It can be run on local host and get information from jstatd running on a remote host. In addition, VisualVM comes… [Read More]
      Tags:
      • java
      • linux
      • tomcat
    • Print default Java performance options

      Posted on April 4, 2012

      Unless provided explicitly, Java VM will set up several performance-related options depending on current environment. This mechanism is called ergonomics. You can see what defaults would be used on the machine by invoking: [Read More]
      Tags:
      • java
    • Install soapUI on Ubuntu 11.10

      Posted on January 26, 2012

      This post describes how to install soapUI on Ubuntu 11.10 and solve potential issues with installation. [Read More]
      Tags:
      • java
      • linux
    • Create ant task for Hibernate tools

      Posted on July 27, 2011

      In this blog we’ll be looking at how to use hibernate tools with just ant. This may be useful if you need to plug some hibernate tasks into your build system or have them scripted in any way. We will create a stand-alone ant build file with the minimum number… [Read More]
      Tags:
      • java
      • hibernate
    • Remember me in Spring Security 3

      Posted on July 20, 2011

      Remember me functionality is a mechanism that lets users log in automatically, even when they re-start their browser. In other words: after their session cookie is deleted by the browser (which is normally after closing the browser). This is implemented by setting up another cookie that will live in the… [Read More]
      Tags:
      • java
    • Remote debugging of web application deployed on Tomcat server or using Jetty Maven plugin with Eclipse

      Posted on July 15, 2011

      Sometimes it might be very convenient to be able to debug application deployed on web server. This tutorial presents how to do it, if the application is deployed using Jetty plugin for Maven or Tomcat servers. [Read More]
      Tags:
      • java
      • tomcat
      • eclipse
    • Spring Security 3 – basic integration and access decision manager

      Posted on July 13, 2011

      In the tutorial below we will look at a basic integration of a Java web application with Spring Security 3. In this particular scenario we’ll be integrating Spring Security with existing web application that uses Struts & Spring. However, similar steps can be applied to any other web framework you… [Read More]
      Tags:
      • java
      • spring_security
    • Development environment setup for Eclipse, Maven, Spring 3, Struts 2, Hibernate and Jetty

      Posted on July 9, 2011

      When developing web application set up of convenient development environment might be crucial for more efficient work. Let’s consider web application that uses following frameworks: [Read More]
      Tags:
      • java
      • eclipse
      • jetty
      • hibernate
    • Using Apache log4j to log Apache CXF web service messages

      Posted on June 15, 2011

      Apache log4j is one of the most popular frameworks used for logging events within Java code. Apache CXF on the other hand is one of the most popular framework to support communication using web services. [Read More]
      Tags:
      • java
      • apache
    • Spring, Hibernate, Maven, and Struts2 integration tutorial – part 5 – Hibernate update

      Posted on June 6, 2011

      This is part 5 of the Java Technologies Integration tutorial. The purpose of this part is to provide updates to Hibernate configuration in existing project to make the maintenance of the project more straight forward. [Read More]
      Tags:
      • java
      • eclipse
    • Spring 3 transactions with Hibernate and AOP, without HibernateTemplate

      Posted on January 3, 2011

      In the tutorial below I will focus on transactions management with Spring 3. For the sake of simplicity, we will create a standalone Java application – but the same logic can be used in J2EE application. We will create: [Read More]
      Tags:
      • java
      • aop
      • spring
    • Simple AOP tutorial with Spring 3

      Posted on December 16, 2010

      In this tutorial we will create, from the very beginning, a simple application that uses Spring and its Aspect Oriented Programming capabilities. We will use schema-based approach from Spring 2.0 to define the AOP configuration. I am not going to cover here the AOP or Spring basis, if you are interested… [Read More]
      Tags:
      • aop
      • java
      • spring
    • Spring, Hibernate, Maven, and Struts2 integration tutorial – part 4

      Posted on October 10, 2010

      This is part 4 of the Java Technologies Integration tutorial [Read More]
      Tags:
      • spring
      • eclipse
      • hibernate
      • java
    • Spring, Hibernate, Maven, and Struts2 integration tutorial – part 3

      Posted on October 5, 2010

      This is part 3 of the Java Technologies Integration tutorial. [Read More]
      Tags:
      • spring
      • eclipse
      • hibernate
      • java
    • Spring, Hibernate, Maven, and Struts2 integration tutorial – part 2

      Posted on October 3, 2010

      This is part 2 of the Java Technologies Integration tutorial. [Read More]
      Tags:
      • spring
      • eclipse
      • hibernate
      • java
    • Spring, Hibernate, Maven, and Struts2 integration tutorial – part 1

      Posted on September 6, 2010

      The purpose of this tutorial is to demonstrate the technical solution for integration of 4 leading frameworks: [Read More]
      Tags:
      • spring
      • eclipse
      • hibernate
      • java
    • How to display all MySQL queries your application generates

      Posted on May 25, 2010

      Sometimes it’s a good idea to intercept the SQL queries exactly as they are generated by your Java application. One way to do it (in MySQL) is to enable general_log. Another really handy option is to use MySQL JDBC driver option: autoGenerateTestcaseScript. It will dump all the queries to standard… [Read More]
      Tags:
      • java
      • mysql

      Tomasz Muras  •  2026

      Powered by Hugo, styled with Beautiful Jekyll