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.
admin
Summary "Expert one-on-one J2EE design and development"
EJB CMP/CMR example with JBoss+Xdoclet
HSQL DB + JBoss + Ant
Do you want to fill/update the contents of the Hypersonic SQL database that is running under JBoss by running an Ant task?
Pro's + con's of EJBs
For a good “non-religious” argumentation on the advantages, drawbacks and points for improvement of EJBs, see this post by Nick Minutello.
Attribute Oriented Programming, a new programming paradigm?
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!).
Core J2ee patterns, session facade: always useful
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:
Core J2EE patterns, Abstract Factory: unit testing with Struts
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 […]
Import (non Eclipse-based) project from CVS into Eclipse
This post describes how to import a (non-Eclipse) based project from CVS into Eclipse.
Useful Eclipse-related links
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. […]
Struts and Resource Bundle problems
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 […]
A Practical Guide for Integrating EJB and Struts
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 […]
Logging quickstart: Log4j and Jakarta Commons logging
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:
MySQL, stored procedures and callable statements
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-line Java/J2EE courses!
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
JBoss EJB anomalies (JBoss 3.2.4, Eclipse, Xdoclet & Lomboz)!
Developing CMP entity beans with JBoss 3.2.4, Eclipse and the Lomboz plug-in, I encountered the following anomalies:
Logging with J2SDK 1.4 API or Log4J ?
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 […]
Working with Hibernate in Eclipse
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 […]
Eclipse 3.0 & Lomboz plugin download/installation
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 […]
Tip: free Struts book
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 […]
Callable statements supported in HSQLDB
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.
Database access using Eclipse
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!
Configure sendmail to forward all mails
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 […]
Quoting XML-based code excerpts in WordPress/XHTML
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.
Java One conference, 28-06/01-07 2004
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.
Eclipse intergration with JBoss J2EE application server using Lomboz plugin
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.
Comparison Oracle, PostgreSQL and MySQL
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 […]
Eclipse plugins
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.
First experiences Eclipse 3.0
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.
Getting started with MySQL
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.
Deployment in Tomcat 4.1.30 using Eclipse
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 […]
Database access with Ant!
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 […]
JUnit in action, Vincent Massol with Ted Husted
|*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 […]
Textism2 plugin activated
Activated textism2 plugin, which makes formatting HTML posts much more convenient: see also “this link”:http://textism.com/tools/textile/index.html