Skip to content
February 12, 2013 / techannotation

5 minutes with – EjbTimer

Have you ever had to scheduled some activities on web application? In this articles I’d like to show you how get this aim using JavaEE technology with a little example. I will  describe the use of programmatic and not programmatic timer in the same workflow process.

Read more…

February 1, 2013 / techannotation

5 minutes with – JGroup

In a cluster environment could happen that you need to replicate the cached information over all the nodes that are included in cluster.

For this purpose it’s very useful to use some replication system as Jgroups. In this articles we’ll see how configure and use that with easy configuration.

Read more…

January 22, 2013 / techannotation

5 minutes with – Jersey Producers

Have you ever tried to have to produce a multiple rappresentation of the same resources? I’m speaking about produce a common json and xml and, also, custom rappresentation like text/html which is not very common for data exchanging.

In this article I’d like to show you how produce multiple response format of Jersey resources. The type of response format will depend from resource extension request.

Read more…

December 5, 2012 / techannotation

5 minutes with – Spring Authentication and Authorization Service (JAAS)

In the large numbers of choices of how build an authentication and authorization service, Java community has defined a stardard of it called Jaas.

In this article I’d like to show you the integration of this standard with Spring framework. So, I’m going to show you how the two different layers of authentication and authorization are both integrated and used. As usual, we’ll see that by an example.

Read more…

October 23, 2012 / techannotation

10.000 visits

10.000 times thanks to everybody who visited  this website.
Thanks to everyone who came here …

…. by typing the wrong url address
…. has found what they are looked for
…. posted a comment or shared these information
…. smiled or laughed after reading some articles
…. tried to understand what I wanted to say with my English

That has been a goal which I’ve never thought to reach before starting writing this blog.

Stay connected , I’ll go on with other articles.

Marco.

October 5, 2012 / techannotation

Unit test with Mockito

Have you ever tried to build  a Unit Test about servlet, web services or REST services? Whatever is your answer I would like to illustrate how build it with Mockito framework with, as usual, a very easy example.
Read more…

October 4, 2012 / techannotation

Spring Jta with Jboss

Have you ever tried to have to link, in unique transaction, two or more datasources from different databases? Java Transaction API (JTA) helps you to achieve this result.

In this article I’ll try to show how use it with spring framework and Jboss application server, obviously, with a little practical example.

Read more…

September 10, 2012 / techannotation

Hadoop in practice

Speaking about cloud computing, I would like to introduce hadoop in very easy, practical, way.

After read a lot about this argument, I wanted to experiment, through example from source code and from my hands, whether the cloud computing will change our programming model in the next future.

Read more…

August 31, 2012 / techannotation

Rmi vs Web Service

There are so many technologies for connecting remote systems that is not trivial take a choice about which one using.

In this post I’d like to put the focus on Spring Rmi and Spring Jax-WS. I wanted to answer only at one question, that’s because it’s very long describe the pro and cons about these technologies; anyway, the question, very typical in IT world is “Which one is the faster ?”.

Read more…

August 24, 2012 / techannotation

Clustering Apache Tomcat Failover

Probably you’ve already heard about this topic and it’s very simple to apply. Whatever you’ve already known or not, I’d like to set a little list about how configure a couple of tomcat application server with apache server on your developer enviroment.

It can be very usefull for testing clustering application when something goes wrong…

Read more…

Follow

Get every new post delivered to your Inbox.