JPA persistance best practices and orm configuration….Tomcat configuration tips

The issues of persistance have taken the most of my sparetime recently as I have planned the implementation details of JPA entity layer…
good basis for investigation have provided the 2 series of peristance provided by IBM Developerworrks articles..namely

Patterns of persistence, Part 1: Strategies and best practices for modern ORM tools

and Patterns of persistence, Part 2: Increase code reuse and enhance performance,other useful links are oracle’s best basic Java
Persistance API practices
article and the JEE blueprints of persistance….

 as recommeded in the basic Java Percstance API practices the Integration with Spring is fabulous combination ….in addition if you utilize hibernate enity interceptors as was the case in IBM persistance series the configuratio with spring is done in the folllowng way http://forum.springframework.org/archive/index.php/t-10512.html  and voila you get the benefit of the auditing features of JPA enity modifications and updates…

Enabling compression on the web server will make data be transferred in compressed form. The browser will decompress the data on the fly, making the application faster. If your application uses Ajax, what usually increases the volume of data transferred from server to client, compression of data will significantly improve your application performance.

Here is how to enable GZIP compression on Tomcat: edit file /conf/server.xml and add to the HTTP Connector configuration something like this:

 

10 tomcat configurataion tips

Add comment June 24th, 2008

Continuous Integration….

Recently I have tackled with issues related to Continuous Integration….what would be the perfect match for choocing the Continuous Integraton tool…would it be Luntbuild …which is chosen as the Continuous Integration tool in Oracle SOA Build, Deployment, and Test Automation article. Other Continuous Integration tools,which are available are CruiceControl,Continuum and Lutdbuild…read the Paul Duvall’s article - Automation for the people: Choosing a Continuous Integration server

or if you only need to modify your ant build-xml file try tuning it by following the hints given in this new features in ant 1.6 Stefan Bodewig’s article New Ant 1.6 Features for Big Projects
or try hints to create your release

 happy tuning…and you could also take advantage of the google’s free repository hosting for subversive projects Google Code

Add comment May 11th, 2008

SOA session in Parley’s site

The SOA world as definiton is depicted in detail in these sessions provided by Parley…Soa Lite and Soa Sans SOAP by Dennis Sosnoski. So keep your head calmn and your puts up when diving into the deep sea of SOA methology and acronyms. In addition, SOA methology by Cap Gemini consultant Steve Jones highlights that is is not the technology that plays the vital role in SOA…it is eventually the business needs…the needs of the customer. I found a real good article describing the XFire web service implementation ….Web Services on XFire – Fast Forward to 2007 by Sing Li

Securing XFire Webservices can be accomplished by using Acegy - read Using Acegi With XFire For Web Service Authentication & Authorization. And in case you would need JAXB 2 Schema validaiton…set the XFire to use JAXB2…you need 1.5 JVM to be able to use it thought

I attended 3 days Web Services training course organised by ICT-training house- Tieturi oyj. The web service project is now accomplished and it is time to seek other coding challenges….only limitation in using XFire is the support for Complex types mapping…as it doesen’t provide out-of-the-box support for Collections…only Arrays of objects are the esasiest way of dealing Collections…or not so fancy way of creating aegis specfic xml-mappings file into the same package where the equilent source code is located….”/org/codehaus/xfire/Employee.aegis.xml

Add comment February 12th, 2008

my first web service implementation…wicket in action early access pdf-edition by manning

Hi,

I was given a web service implementation request to faciliate one specific order process and give it entry into the Web Service hemisphere. Well, learned from previous experiences from pervious employer I had itching feeling about the technologies that might help me to find solutions to the given problem given the limitation of not been able to use JEE specific implementations and the light web-container specific environment like apache tomcat and my lack of experience of implementing web services.  Fortunately, Myeclipse provides good tooling to utilize Xfire impelentation…so I take a look at the Xfire user guide and the job was done in no time….but also Matt Raible’s Appfuse specific web services section implemented in appfuse gave me good starting point. The Xfire is nowdays known also as Apache CFX..but given the JVM 1.4 limitaitons I could not implement the web service interface using annotations as in the simple CFX web service sample…so XFire specific quick start guide provieds the steps needed  to take in order to implement and test the web service WSDL file. I carried out the testing using SOAPUI- free testing tool for web services.

 

Other given task at hand is about implementing user interface using Apache Wicket framework - the Serverside article Introducing Apache Wicket by Nick Heudecker gives good head start…and good companion to that is also Mannings early access editon of Wicket in action…fortunately appfuse-light specific implemantation provides good code base to start impelenting your wicket project…other possibility is to create wicket quick start templete using maven2. Maven specific issues are explainde in guite in detail in Java World article Maven 2 POM demystified….and read also the follow-up article Get the most out of Maven 2 site generationor you could also use ant with maven ..to enable maven to take care of the jar depenencies and then to the excat beploy phase using ant maven tasks…as was done in appfuse-light implementaiton.  I faced still the diallemma of how to enable the usage of maven with Weblogic server 8.1…the problem was solved in an blog post- How to deploy Weblogic 8.1 Portal on Cargo Maven2. Those who use Weblogic server 9.x might find maven2 article Using Appc with Maven on Hussein Badakhchani’s Blog or using maven 2 to build bea weblogic portal applications …bood online maven book - nicly categorized .

Or in case you are not much fun of learing the maven internals–you could either use maven plugin with netbeans…it has wonderful integration with netbeans….as written in Maven is Magic in Netbeans in Gertjan blog

Add comment February 9th, 2008

new enchancments to EJB 3 in the form of Singleton pattern

The article about the futher enhancments in EJB 3 specific spectrum by Reha Rahman highlits the new dimensions the EJB 3 specification is heading…added pattern of Singletons…you could send your feedback about the planned new features of EJB 3.1…give your feedback….also big influence in the whole was the Oracle’s Bea aqusition…the the Spring supporters are now one mammunt….read more about Rod Jhonsson’s feelings about this merge. Planning to attend some major Java seminars in Europe…why not to attend Java Sympohisum held In Prague during next Summer -

 

Add comment January 26th, 2008

open source JEE Application server/web server comparision

hi,

just brief overview of the different features common for open source JEE application servers

jboss,geronimo and Tomcat  on JavaWorld article - Jboss,Geronimo or Tomcat ?

I just found out that Red Hat provides Jboss Developer Studio for 99 $ ..is it worth the investment…well give it a try and …..give feedback…

Add comment December 11th, 2007

Comparing the wide spectrum of open source frameworks…

Hi,

As a java developer there are plenty of open source frameworks to choose from…the streaming insight analysis into the subject in form of streaming video session under the tile of Comparing Java Web Frameworks presented by Matt Raibles …the author of Spring Live and Struts Live books. Based on the conclusion from this presentation one doesn’t have to be worried whatever you are implementing right frameworks…use whatever frameworks you are currently using and you are fluent with using it….that’s good news…

I have tried to come to terms with Stripes framework…and have also found intresting articles how to integrate JSF with EJB3 and how to itegrate google maps with it….Carol MacDonald’s Blog

happy tuning with whatever frameworks you have chosen to play with on you desktop —sandbox development environment..

Add comment December 3rd, 2007

suse specific java jvm bug…solution to the problem guite simple…but weard

Hi,

I faced very strange Sun’s java JVM specific problem - xcb_xlib.c:50: xcb_xlib_unlock: Assertion ‘c->xlib.lock’ failed. when trying to install some IDEs to my laptop on OpenSuse 10.3 distribution…well, I tackle with it for a while…but fortunately some other users also have had similiar problems with their Suse distros...also tackling the same sun JVM bug….see solution about the issue for that problem…

Add comment November 19th, 2007

configuring the seams to be run under tomcat

The tooling support for Seams is a bit buggy, and also not all the features what seam claims to have do not neccsarilly are not bullet proof…so it might be only functioning in Jboss…redhat propiertary application server….I managed to run the jpa-specific application example under tomcat 6…how to run seams in non-jee application runtime environment …

I wouldn’t relay on this guide though….haven’t tried it

Add comment November 17th, 2007

Jboss 4.22 realased prior the release of 5.0 version

In the dark and long hours of Fall one waits for the arrival of Jboss 5.0 rease - at least I’m. The release of 4.22 provides not the full flavours of JEE but at least support for EJB 3 as you can yourself take notice of by reading Dimitris BlogB

The supported feateures of Jboss 4.22 release are summarized in relase notes.

Detailes how to configure Jboss relase 4.22 are available on RedHat site configuration, clusterinng

Combined with the beta2 version of Red Hat Developer Studio you are ready to try out the Seams framework featrues and JEE features provided by Red Hat’s Jboss division. You my also try out how it is possible to desing Jboss specific richfaces by following Richfaces tutorial

Consulting in Jboss related technologies are provided by Jab in Finland.

Take a brief climpse of the Jems lead developer at Java One 2007 confrence…but more developer oriented streaming video refactoring to Seam by Brian Leonard ..how to get rid of managed beans configuration in JSF.
Books available about Jems-Beginning Jboss Seams from Novice to Professional

New Seams version 2.0 relased just during this week - good and precise introductive and illustrative overview about Seams is presented in video session provided by Christian Bauer  - don’t f orget to see the pdf-presenation file incudes the powerpoint presentation files shown during the session.
also worth of intrest is to read Michael Yuan’s Seam book

and not that it all would be just about seams….read the Intro to Spring 2.5 article in the serverside site.

Add comment November 1st, 2007

Previous Posts