As a (promised) follow-up on the uni-direcional CMP/CMR example in EJB CMP/CMR example with JBoss+Xdoclet, we present a many-to-many (m:n) relationship example here, albeit in much less detail. For more details the reader is referred to the above post.
This post contains a summary of the book: “Expert one-to-one J2EE design and Development” by Ron Johnson, Wrox 2002. I did not put any effort in finding my own words, so it basically consists of quotes from his book. This post is meant as a reference, you may browse through […]
In this post I’ll first discuss how to implement a unidirectional one-to-one relationship with EJBs, JBoss and Xdoclet in abstracto, using two tables called table1 and table2. Thereafter I’ll present a concrete example, illustrated with (more detailed) code excerpts.
Do you want to fill/update the contents of the Hypersonic SQL database that is running under JBoss by running an Ant task?
For a good “non-religious” argumentation on the advantages, drawbacks and points for improvement of EJBs, see this post by Nick Minutello.
In this post I want to give some pointers to/an overview of technologies for developing server side software in general, as well as one in particular: Attribute Oriented Programming, also known as AOP (is not the same as aspect oriented programming, by the way!).
Any non-trivial EJB-based application should incorporate the session facade design pattern, since the overhead to implement it is negligible and the benefits are great, as can be read on e.g. java.sun.com:
During development of your Struts-based web tier, you want to be able to test your page flow, action forms and validation independent of your persistency layer, which may be implemented with any Object Relational framework. That is were the abstract factory design pattern comes in handy. Suppose we want to […]
This post describes how to import a (non-Eclipse) based project from CVS into Eclipse.
In Nancy Chen Junhua’s article on Developing Struts with Easy Struts for Eclipse she has some interesting pointers to documents on “Eclipse Aided Development” on IBM’s developerworks. In my experience, the articles found on IBM’s developersworks are of good quality. Articles for Eclipse users in the Open source projects zone. […]
Working my way through the first chapter of Jakarta Struts Live book, I could not get my own application working, failing at the <bean:message key=”welcome.databaseSelection”/> The annoying thing was that the JSP page containing this statement remained blank! Inspection in the Tomcat log files showed that there was a problem […]
Playing with EJBs at home and programming with Struts at work recently, I wondered how you would integrate those, preferrably with the Eclipse environment: EJB and the Struts framework each have received plenty of coverage individually, but what about leveraging EJB and Struts together? This tutorial lays out a complete […]
Jakarta Commons logging is a wrapper around Log4j (Log4jLogger), the Java native logging system(Jdk14Logger) and the built-in fall-back logger SimpleLog. Depending on which one is on the classpath, that logging system is addressed transparently via the easy-to-learn commons logging API. Recipe:
The stable 3.x versions of MySQL don’t support stored procedures. Consequently the associated JDBC driver can’t support callable statements. The alpha 4.x versions don’t support stored procedures either, but support for stored procedures (and therefore callable statements) is announced for the development 5.x versions at this time of writing. This […]
On Sang Shin’s J2EE Programming with Passion! page, you can find many good (introductory) courses on J2EE (and related topics). Courses taught include J2EE Programming with Passion! Advanced J2EE Programming with Passion! Web Services Programming with Passion! Distributed Programming using Jini and JavaSpaces Technology XML
Developing CMP entity beans with JBoss 3.2.4, Eclipse and the Lomboz plug-in, I encountered the following anomalies:
According to this article: After examining the standard logging API, my opinion is to stick with the log4j package if you are looking for a robust logging implementation. The logging API is adequate, but it is missing many of the features available in log4j. For instance, log4j already has a […]
In my search for an XML plug-in for Eclipse, I stumbled upon the following article: Working with Hibernate in Eclipse It contains a reference to such a plug-in (XMLBuddy), but more importantly, it seemed like a nice introductory article on Hybernate+Eclipse. I did not read it in detail yet, but […]
The Lomboz 3.0rc2 release works perfectly together with Eclipse 3.0. You can download it here (lomboz.3rc2.zip). Please make sure to download the accompanying Eclipse Modelling Framework (EMF) plug-in too (emf-sdo-runtime-I200406100948.zip)! EMF by the way, seems to be an excellent tool used to define and implement structured data models see Using […]
The Apache Struts web application framework is is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm. Want […]
Recentely I noticed that MySQL 3.x lacks support of callable statements via the JDBC API. The good news is that the Hypersonic DB (ships standard with JBoss) does support it.
Want to see what’s residing in your database from Eclipse? Get the QuantumDB plug-in, and create a DB connection using a driver suitable for your database. From then easy browsing of tables/views and their contents is available to you!
Go to /etc/mail/ and look in the sendmail.mc file. Uncomment and change the entry define(`SMART_HOST’,`forward.host.domain’). Additional info: The sendmail.cf is generally considered to be too difficult to be changed by hand. Therefore a set of macros have been defined to ease this task. In order to be able to use […]
Please note that when you want to quote code snippets from an XML-based file, such as a build.xml, you have to convert this file to HTML, i.e. convert the “<” and the “>” symbols to the < and > codes.
A nice summary of the topics of the 2004 JavaOne Conference held in San Francisco (CA), June 28th till June 1st is already presented at the web site. For us the following topics are of special interest.
I have tested JBoss via Eclipse with the Lomboz plugin along the lines of this great tutorial. I got it relativerly easy up and running and it is a recommendation for developing/deploying/running J2EE-based applications in a pure OSS-driven environment.
A research team of the Alice project from the Dutch Institute for Nuclear and High Engery Physics (NIKHEF) wrote a very elaborate comparison on Oracle, PostgreSQL and MySQL. This document can be found here. At the end of the page there is a table with a very nice summary of […]
Currently, plugins for the 3.0 release of Eclipse are only sparsely available. However, I already discoverd two interesting ones: a subversion Eclipse plugin (CVS support is already present in the vanilla version, including CVS over SSH2) and the QuantumDB Eclipse Plugin, a database access plugin.
Eclipse 3.0 is available for download from the 25th of June. I downloaded and installed it. It looks great and has some great new features, among others integration with JUnit.
If you have just installed the MySQL RPMs and wonder what to do next, check out Getting Started with MySQL. This is a wonderful concise to-the-point comprehensible “getting started”, including an intro to the MySQL privilege tables.
With Eclipse 2.1.3 using the SysDeo plugin for Tomcat (I’m using Tomcat 4.1.30) I am not able to un/redeploy an application: the old code isn’t replaced by the new. Consequently, I have to manually remove my application in TOMCAT_HOME/webapps before deploying my newly modified code. Anyone had similar problems and/or […]
You can access a database with Ant. This can be useful when you want to create a database and fill it with some default data at the start/deployment of a project, but also when you want to reset the contents of your database just before invoking your tests! Example of […]
|*Title*: |JUnit in action| |*Authors*: |Vincent Massol, Ted Husted| |*Published by*: |Manning Publications Co.| h3. Abstract Although the emphasis in _JUnit in action_ is on unit testing (of course!), it offers more. It details the JUnit test framework, while at the same time putting unit testing in a broader context […]
Activated textism2 plugin, which makes formatting HTML posts much more convenient: see also “this link”:http://textism.com/tools/textile/index.html