In this post I show how simple is to integrate mybatis and spring framework.
The requirements are:
Spring Framwork 3.0.5 + dependencies
Mybatis 3.0.3 + dependencies
CoreJavaBeans1.0.1 + dependencies
First of all, let's define a model bean:
<span class="line-number"> 1</span> <span class="comment">/*...
on Dec 23, 2010
Google maps was a useful hit from the moment it went on line. Since then thousands of web pages have added map capability to their sites, courtesy of Google. Let me illustrate how you can add Google maps to your Java application.
Google furnishes its maps via a simple REST request. Does this mean you need to add some fancy REST framework to your application? Not at all! Java provides...
on Oct 16, 2010
It seems that when we develop a trait (that includes both abstract and concrete methods) in Scala and compile it, the outcome includes two jave byte code files. The first includes the definition of an interface with an identical name to the one we gave our trait. The abstract methods that interface includes are the same methods defined in our trait. The other file includes the definition of a...
on Oct 16, 2010
Mark Reinhold announced today that the JDK 7 / JavaSE 7 project has slipped once again: mid-2011 without Jigsaws and Lambdas, late 2012 for JavaSE 8 with those. The delay (or some other bad news like dropping features) was already expected by anyone who tracks the project. But really, how big and bad is this delay?
As a big enthusiast of both Jigsaw and Lambdas - and as a tech writer who just...
on Sep 8, 2010
Content available at: http://blogs.sun.com/arungupta/entry/2_day_java_ee_6
on Sep 1, 2010
Content available at: http://blogs.sun.com/arungupta/entry/java_ee_6_glassfish_workshop
on Aug 14, 2010
Content available at: http://blogs.sun.com/arungupta/entry/fisl_2011_trip_report
on Jul 28, 2010
My name is Haim Michael, I am the General Manager for Zindell Technologies and I am an eternal student and a lecturer. I chose to develop the abelski web site for the benefit of all people world wide. I have started to develop it in November 2007 and I continuously update its courses and add new ones. All courses on this web site are available for free personal and academic usage.
on Oct 4, 2010
Does anyone one have an answer for this problem ?
I'm trying to clone a repository from my computer to my computer. I,m using cygwin 1.7. I,m able to clone all my others projects without problems. This project is 900k.. and the others are better than that.
I have no idea what going on. I deleted the project and repush it.. always the same problems.
on Sep 27, 2010
If you have problems installing Gitosis on Windows, I suggest that you read that guide : : Git Repository Server Gitosis on Win7 (100% working), maybe you will be able to find what you missed.
In this guide, I'll describe raw problems that I found with the solution. Before I came with this guide, I try to install Gitosis on 3 computers and 4 Virtualbox installation by follow tutorial that I...
on Sep 6, 2010
If you are here, it's because you're lost or you have problems installing a git repository server on Windows. I really hope it's for the second reason :) .
I choose the wrote this blog even if I know there are a lot of blogs about this subject, because none of them worked for me. Before I came with this guide, I try to install Gitosis on 3 computers and 4 Virtualbox installation by follow...
on Sep 6, 2010
I want to let you know that since the release of Caucho Resin 4.0, Atmosphere applications can be deploy on Resin and will be supported natively. Resin 4.0 implements Servlet 3.0.
That's really good. Another web server that is supported.
What about the Websocket's Caucho implementation... nah ! There implementation is too buggy right now. I suppose the code it using a early release of the...
on Aug 10, 2010
Just a little note that we try to add Websphere native support for Atmosphere. We work really hard to find an API that could allow us to do that, but is simply impossible.
We were able to get in touch with the dev team of Websphere and the dev team of WebSphere Application Server Feature Pack for Web 2.0. They have demo that used bayeux for comet application or JMS to simulate asynchronous...
on Aug 9, 2010
Just to let you know that Grizzly Deployer was adopted (almost) by another framework : Akka.
Since May 22, 2010, viktorklang is working in a branch : deployer. here the description in the commit "Starting to add Deployer [viktorklang]"
You can browse the code on github : http://github.com/jboner/akka/tree/deployer/akka-core/
I hope to see that included in a next release.
You can follow me on...
on Aug 8, 2010
Just to let you know that Grizzly Deployer was adopted by another framework : Atmosphere.
Since Atmosphere-0.6, Grizzly Deployer is in the module : spade-server
To launch Atmosphere application you could use Grizzly Deployer or use Atmosphere-Spade-Server (that used Grizzly Deployer under the hood).
You can browse the changes on github : http://github.com/Atmosphere/atmosphere/tree/master/...
on Aug 8, 2010
It has been a while since a blog about Grizzly, I was too busy adding new features. The Grizzly Deployer's community grows and requested theses new features.
Here a quick list of the changes :
Can starts without applications to deploy
Can be embedded and extended easily
and few bug fixes (thanks to the community)
A little overview or remainder of what is...
on Aug 7, 2010
I feel a bit guilty saying bad things about Apache Ant. It's free, it's available everywhere, and a lot of volunteers have put a lot of work into making it what it is. You can very quickly and easily make a build file for simple Java projects. But. It seems to have been more accreted than designed, and if you try to use the core system to accomplish...
on Sep 20, 2010
I want to share a problem that we had in our project. We were doing a real-time "Profits and Loss" server (P&L). The server sends stock updates to all the users subscribed to the stocks, basically as Google Finance or Yahoo Finance.
I will used a basic approach (no aggregation and no optimization) to explain the problem that we had with Serialization and...
on Aug 6, 2010
Content located at: http://blogs.sun.com/arungupta/entry/screencast_31_java_ee_6
on Aug 2, 2010
In the previous installment of Effective Architecture, I covered TDD with Model-View-Presenter. However the code I presented had synchronous server calls. In JavaFX (like Swing), the UI code runs in the Event Dispatch Thread (EDT). It is unwise to block the EDT. Hence it is encouraged to execute all server calls on a separate thread.
Swing provides SwingWorker to execute tasks off the...
on Jul 23, 2010