TechnoBuzz

A Techno Blog, mainly about Java

Java Reporting

http://jasperforge.org/projects/

http://jasperforge.org/projects/jasperreports – The world’s most powerful and widely used embeddable Java reporting library for report designers and developers. [getting started]

prompt> cd \program files
prompt> cd jasperreports-<ver>\demo\samples
prompt> dir
prompt> cd barbecue
prompt> ant –p
prompt> ant  javac
– Compiles the java source files of the test application
prompt> ant compile
– Compiles the XML report design and produces the .jasper file
prompt> ant fill
– Fills the compiled report design with data and produces the .jrprint file.
prompt> ant viewDesign

http://jasperforge.org/projects/ireport – iReport gives administrators and report designers total control over the contents as well as the look and feel of every report

Jasper reports includes some nice samples and tutorials:

http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/tutorial.html

http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/samples.html
Studio

http://www.jaspersoft.com/sites/default/files/jw-presentations/JW11_JaspersoftStudioinAction_GiulioToffoli.pdf

August 28, 2011 Posted by | J2EE, Open Source, SW Tools, XML | Leave a comment

Battle Android

In the news lately is the lawsuit of Oracle vs Google over the JVM with the Android platform. I recently jumped on the Droid bandwagon with the purchase of Ed Burnette’s book Hello Android which was updated for Android 2.2. Also, this week I attended the @tridroid meeting here in the area.

In the Burnette book, his first chapter is dedicated to getting started with the sdk and the eclipse plugin (https://dl-ssl.google.com/android/eclipse) and the emulator. Much like this blog post and the android developer Hello World.

[wiki] [forum]

August 22, 2010 Posted by | Mobile, SW Tools | Leave a comment

The IDE Challenge

I have been an Eclipse user most of my Java career. Though, I do have limited experience with Visual Age, Forte, JBuilder, and Netbeans.  In the Eclipse space, it has been WSAD, MyEclipse, Eclipse WTP (2.x,3.2, Europa 3.3), and RAD 6/7.

Part of NFJS exposed me to IntelliJ.  Here is one take on this IDE.

July 17, 2008 Posted by | SW Tools | Leave a comment

Derby Again

I have used derby a while back. Several years later, I wanted to get it installed again on my machine.

In short, Derby is the Java Database that IBM contributed to the open source community. It was known then as cloudscape.

I start off by getting the bin download from the derby database

create DERBY_HOME environment variable : C:\JAVA\derby10\db-derby-10.2.2.0-bin\
Make sure I have my JAVA_HOME environment variable properly set
add to the PATH: C:\JAVA\derby10\db-derby-10.2.2.0-bin\bin\

from the command line:

>sysinfo

>ij

ij is the derby sql client command line

ij>connect ‘jdbc:derby://localhost:1527/mydb;
create=true;traceFile=trace.out;user=user1;password=secret4me’;

C:\JAVA\derby10\db-derby-10.2.2.0-bin\bin>

setNetworkClientCP.bat

C:\JAVA\derby10\db-derby-10.2.2.0-bin\demo\programs\simple>set CLASSPATH=.;%DERB
Y_HOME%\lib\derby.jar;%DERBY_HOME%\lib\derbynet.jar;%DERBY_HOME%\lib\derbyclient
.jar;%DERBY_INSTALL%\lib\derbytools.jar

C:\JAVA\derby10\db-derby-10.2.2.0-bin\frameworks>startNetworkserver.bat

C:\JAVA\derby10\db-derby-10.2.2.0-bin\demo\programs\simple>java org.apache.derby
.tools.sysinfo -cp embedded SimpleApp.class
FOUND IN CLASS PATH:

Derby embedded engine library (derby.jar)
C:\JAVA\derby10\db-derby-10.2.2.0-bin\lib\derby.jar

user-specified class (SimpleApp)
C:\JAVA\derby10\db-derby-10.2.2.0-bin\demo\programs\simple

SUCCESS: All Derby related classes found in class path.

get ibm jars for derby
C:\JAVA\derby10\db-derby-10.2.2.0-bin\demo\programs\simple>set CLASSPATH=.;%DERB
Y_HOME%\lib\db2jcc.jar;%DERBY_HOME%\lib\db2jcc_license_c.jar

C:\JAVA\derby10\db-derby-10.2.2.0-bin\frameworks>startNetworkserver.bat
C:\JAVA\derby10\db-derby-10.2.2.0-bin\demo\programs\simple>java SimpleApp jccjdb
cclient
SimpleApp starting in jccjdbc mode.
Loaded the appropriate driver.
Connected to and created database derbyDB
Created table derbyDB
Inserted 1956 Webster
Inserted 1910 Union
Updated 1956 Webster to 180 Grand
Updated 180 Grand to 300 Lakeshore
Verified the rows
Dropped table derbyDB
Closed result set and statement
Committed transaction and closed connection
SimpleApp finished

/* the default framework is embedded*/
public String framework = “embedded”;
public String driver = “org.apache.derby.jdbc.EmbeddedDriver”;
public String protocol = “jdbc:derby:”;

public static void main(String[] args)
{
new SimpleApp().go(args);
}

void go(String[] args)
{
/* parse the arguments to determine which framework is desired*/
parseArguments(args);

System.out.println(“SimpleApp starting in ” + framework + ” mode.”);

try
{
/*
The driver is installed by loading its class.
In an embedded environment, this will start up Derby, since it is not already running.
*/
Class.forName(driver).newInstance();
System.out.println(“Loaded the appropriate driver.”);

Connection conn = null;
Properties props = new Properties();
props.put(“user”, “user1”);
props.put(“password”, “user1”);

/*
The connection specifies create=true to cause
the database to be created. To remove the database,
remove the directory derbyDB and its contents.
The directory derbyDB will be created under
the directory that the system property
derby.system.home points to, or the current
directory if derby.system.home is not set.
*/
conn = DriverManager.getConnection(protocol +
“derbyDB;create=true”, props);

System.out.println(“Connected to and created database derbyDB”);

conn.setAutoCommit(false);

/*
Creating a statement lets us issue commands against
the connection.
*/
Statement s = conn.createStatement();

/*
We create a table, add a few rows, and update one.
*/

private void parseArguments(String[] args)
{
int length = args.length;

for (int index = 0; index < length; index++)
{
if (args[index].equalsIgnoreCase(“jccjdbcclient”))
{
framework = “jccjdbc”;
driver = “com.ibm.db2.jcc.DB2Driver”;
protocol = “jdbc:derby:net://localhost:1527/”;
}
if (args[index].equalsIgnoreCase(“derbyclient”))
{
framework = “derbyclient”;
driver = “org.apache.derby.jdbc.ClientDriver”;
protocol = “jdbc:derby://localhost:1527/”;
}
}
}

July 5, 2008 Posted by | SW Tools | Leave a comment

A Roller 4.o experience

Just last week, I learned about what’s new with Roller in 4.0

Thought it was finally time to try my own installation after being a one time user of this Roller platform on JRoller as user on http://www.jroller.com/interjavanet/ . I had forgotten my password over on that blog, and it did not seem to be stright forward on how you get your password reset.

Did I mention that Roller is now on Apache at http://roller.apache.org ?

They have their own wiki now at http://cwiki.apache.org/confluence/display/ROLLER

Anyway, I am using the mysql database (5.0.41 community edition) with roller 4
(apache-roller-src-4.0-rc9) which i placed in Tomcat’s webapps directory naming the folder roller4_0 .

I am using tomcat 5.5 with java5.

Setup: Tomcat’s common/classes folder have placed file roller-custom.properties:
installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
database.jdbc.username=root
database.jdbc.password=admin
mail.configurationType=properties
mail.hostname=smtp-server.nc.rr.com
mail.username=x
mail.password=x

Important: You need to put the mysql driver, and two other jars into Tomcats’s common/lib directory:

  • mysql-connector-java-3.1.13-bin
  • activation (obtained from my java 5 lib folder)
  • mail (obtained from my java 5 lib folder)

 

AFter starting Tomcat, I go to the main screen via url http://localhost:8080/roller4_0/index.jsp

which says I have a successful connection but have no tables . So I click the button to create the tables.

image01.jpg

Then, I get the page to create users and the blog.
image002.jpg

References :

November 25, 2007 Posted by | Blogging, Struts, SW Tools | Leave a comment

Design choices and Tools roundup

softarc – the anti- experienced Coding Architect

Using NetBeans Open Source Toolbox , and More Netbeans

You are doing more modeling than you think

July 2, 2007 Posted by | J2EE, SW Tools | 1 Comment

Agile Software Process

AMIS on Deliver valuable software: “Other posts about the AGILE Principles soon to come:
1. Our highest priority is to satisfy the customer through early and continuous delivery of valuable software. (This one).
2. Welcome changing requirements, even late in development. Agile processes harness change for the customer’s competitive advantage.
3. Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.
4. Business people and developers must work together daily throughout the project.
5. Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.
6. The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.
7. Working software is the primary measure of progress.
8. Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.
9. Continuous attention to technical excellence and good design enhances agility.
10. Simplicity–the art of maximizing the amount of work not done–is essential.
11. The best architectures, requirements, and designs emerge from self-organizing teams.
12. At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.

Forget those fancy tools, and try just enough information in requirement gathering.

June 8, 2007 Posted by | Patterns & UML, SW Tools, Web Design | Leave a comment

thats why they call it work

The Furious Purpose has a good outline on what makes an ideal software job.

  • The Team
  • The Process
  • The Company
  • The Product
  • The Technology
  • The Location (i.e. work at home)

For me, having a software quality plan in place is what you would like to see. Just saw this free (without customizations) for managing the software development process.

Also, collaboration is key for a job where people share knowledge and experiences so that you don’t have to reinvent the wheel everytime. Like this here wiki.

May 31, 2007 Posted by | SW Tools | Leave a comment

Jasper Soft Open Source News

Business Intelliegence Tool  JasperETL – “JasperETL will be available in Open Source and Professional editions, and was developed through a technology partnership with Talend. Led by a team of veteran data integration industry experts, Talend is the first open source software provider for data integration tools.”

ETL is an essential tool that guarantees consistency and fluidity of information in increasingly diverse IT systems. At the center of the decision- making process, ETL allows organizations to move, cleanse, standardize and transform data according to their business needs. JasperETL can be used for both analytic decision support system tasks such as updating data warehouses or marts, as well as for operational solutions such as data consolidation, duplication, synchronization, quality, migration, and change data capture. Performance tests indicate performance up to 50% faster than other leading commercial ETL tools.

JasperETL Open Source edition is available immediately direct from JasperSoft

January 31, 2007 Posted by | Open Source, SW Tools | Leave a comment

Apache

I just downloaded the Apache Server on Windows which I have done a while ago alongside IBM’s websphere where they call it Http Server.

I ran the download program that pretty much self installs it. The executable for the Server can be found  here
C:\Program Files\Apache Software Foundation\Apache2.2\bin

It appears a bunch of the configuration for server can be found here

C:\Program Files\Apache Software Foundation\Apache2.2\conf

httpd.txt: This is the main Apache HTTP server configuration file.  It contains the
configuration directives that give the server its instructions.

Documentation gives details on the meaning of the information in the config file.

November 21, 2006 Posted by | SW Tools, Web Design | Leave a comment

webtest canoo

I downloaded webtest to c:/java/webtest and started the install . Note that manual for webtest. I believe it makes use of clover the coverage tool.

webtest -buildfile installTest.xml

installTest.xml:

..

<target name="checkWebTest">

        <echo message="webtest.home is ${webtest.home}"/>
        <testSpec name="check calling and parsing a local file">
            <config
                host=""
                port="0"
                basepath="/"
                summary="false"
                saveresponse="false"
                haltonfailure="true"
                protocol="file"/>
            <steps>
                <invoke
                    description="get local file"
                    url="${basedir}/testfile.html"/>
                <verifyTitle
                    description="check the title is parsed correctly"
                    text="Test File Title"/>
            </steps>
        </testSpec>
    </target>

testfile.html:
<html><head>

<title>Test File Title</title>
</head>
<body>
empty
</body>
</html>

November 10, 2006 Posted by | SW Tools | Leave a comment

Web Test

October 16, 2006 Posted by | SW Tools | Leave a comment

Security Server

RACF is now
called "Security Server"
[1]
Putting Latest Security Features to work [redbook]
RACF schema
What is RACF:


            RACF stands for Resource Access Control Facility.  RACF is a software security product that protects information
            by controlling access to it.  RACF also controls what the user can do and protects all of the operating system’s
            resources.  RACF provides this security by identifying and verifying users, authorizing users to access protected
            resources and recording and reporting access attempts.


            RACF helps meet the needs for security by providing the ability to:
            

  • Identify and verify users
                 
  • Authorize users to access the protected resources
                 
  • Control the means of access to resources
                 
  • Log and report various attempts of unauthorized access to protected resources
                 
  • Administer security to meet the goals of security

RACF mag

LDAP integrate

example operation

[1]
[2]

October 10, 2006 Posted by | SW Tools | Leave a comment

BIRT

Autuate BIRT (Business Intelligence and Reporting Tools)

Reporting and Business Intelligence for Java using Eclipse and RAD

Crystal Reports has dominated Business Reporting in Java until now.   
It has even been distributed by IBM with WebSphere and RAD.   

That is about to change.  On June 30, Eclipse will release
version  3.2 and Callisto.  Later this year, IBM will release RAD 7 including
Eclipse 3.2, and also supporting BIRT.

June 27, 2006 Posted by | SW Tools | Leave a comment

Using SVN

Here is a nice reference link to some of the commands.

svn update brings changes from the repository into your working copy
   A – added
   G – merged
   U – updated
   C – conflict

svn revert reverts any local changes to a file or directory and resolves any conflicted states.

svn log Display commit log messages

svn merge Merging is where you submit your code in one release and you want it prop’d to another.
   svn commit ….
    Committed revision 1001.
 
svn merge –dry-run -r 1000:1001 /usr/svn/product1/trunk/main/product1a
svn merge -r 1000:1001 /usr/svn/product1/trunk/main/product1a

June 26, 2006 Posted by | SW Tools | Leave a comment

plugins

User Agent Switcher Extension– The typical usage is to allow access to sites that
        restrict access based on the type of browser

http://tersesystems.com/code/mockobjects/

WML Browser Extension

May 3, 2006 Posted by | SW Tools | Leave a comment

mock objects

I am again looking at mock objects
Mock Objects [pdf]

There are choices like mockobjects , easymock, jmock.

org.easymock.MockControl

Version 1.2 Docs w API

[Examples ]

mvn clover:clover

Here is an easymock like example:

public class MyClass extends
{
    private FirstObject       theObject;

    public  SecondObject createWorkItem(String name)  {
        SecondObject data = getTheObject().createObject(MyConstants.FIRSTVALUE);
        data.setPropertyValue(MyConstants.NAME, name);
        return data;
   }
   public FirstObject getTheObject() {
        return theObject;
    }
   
    public void setTheObject(FirstObject theObject) {
        this.theObject = theObject;
    }
}
———————————–

public class ExampleTest extends TestCase {

    private MyClass classUnderTest;

    private MockControl controlFirstObject;
    private FirstObject mockFirstObject;

   private MockControl controlSecondObject;
   private FirstObject mockSecondObject;
    setup
    —–
    classUnderTest = new MyClass();

    controlFirstObject = MockClassControl.createControl(FirstObject.class);
    mockFirstObject = (FirstObject) controlFirstObject.getMock();

   controlSecondObject = MockClassControl.createControl(SecondObject.class);
   mockSecondObject = (SecondObject) controlSecondObject.getMock();

    testCreateWorkItem
    ——————
    classUnderTest.setTheObject(mockFirstObject);
    controlFirstObject.expectAndReturn(mockFirstObject
                .createWorkItem(MyConstants.FIRSTVALUE),
                mockSecondObject);
   
    mockSecondObject.setPropertyValue(MyConstants.NAME, "name");

    controlFirstObject.replay();
    controlSecondObject.replay();
       
       
    controlFirstObject.verify();
    controlSecondObject.verify();
   

May 1, 2006 Posted by | SW Tools | Leave a comment

Maven 2

Download

Getting started

M2_REPO variable: /usr/local/.m2/repository/"

Setup Plugin :

Set up a variable where your executable for maven is
– select Window > Preferences. Select the Run/Debug > String Substitution. Add a new variable
     maven_exec set to /usr/local/maven-2.0.4/bin/mvn
– create a new external tool : Run-> Extrenal Tools -> New
    Location: ${maven_exec}
    Working Directory: directory you are working out of
    Arguments (i.e package)

Eclipse Plugin

Book

Article

Blog

mvn -help

mvn eclipse:eclipse

mvn package

mvn -P dev clean install

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   
    <modelVersion>4.0.0</modelVersion>
    <groupId>project.company.y.z</groupId>
    <artifactId>appName1</artifactId>
    <packaging>jar</packaging>
    <name>MyJar</name>
    <description>MyJar Description</description>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.8</version>
        </dependency>
    </dependencies> 
</project>

groupId - organization that created the project
artifactId - the unique basename for the artifact being generated for this project
packaging - package type used by this artifact

April 21, 2006 Posted by | SW Tools | Leave a comment

ANT

link :"This article discusses a technique for managing the build order of
    separate sub-projects in a large software system purely using task
    dependencies within Ant scripts."

http://www.developertesting.com/

March 21, 2006 Posted by | SW Tools | Leave a comment

Eclipse Proposal

Link: AJAX Toolkit Framework (ATF) .

January 21, 2006 Posted by | SW Tools | Leave a comment

MySQL database

Link: Xooglers: Let’s get a real database:”It is by now also nearly as full-featured as the best commercial databases, but back in 2000 this was not the case. MySQL was quite a capable system, but missing a few (what some would consider basic) features.”.

January 17, 2006 Posted by | SW Tools | Leave a comment

Ant201

I have been using ant for years without paying attention to the syntax.

Eclipse has it built in , pdf, Intro wiki.

Sun newsletter, onjava, practices

January 1, 2006 Posted by | SW Tools | Leave a comment

reader and web tools

I am trying out this free newsreader that does feeds.

Eclipse Web Tools 1.0 is out.

December 29, 2005 Posted by | SW Tools | Leave a comment

JNDI conflicts

Link: Naresh Jain’s Weblog : Weblog:”If you are using Websphere, this might help”.

December 12, 2005 Posted by | SW Tools | Leave a comment

AutoSave?

Link: I’m Tired Of Saving!:”I guess there are a couple of reasons why manual save has persisted. One reason is because having a sandbox gives us a feeling of security.”.

December 10, 2005 Posted by | SW Tools | Leave a comment

reading list WebSphere Application Server

Link: Recommended reading list: WebSphere Application Server.

September 28, 2005 Posted by | SW Tools | Leave a comment

Cluster-mania

Server side article on topic

clustering — that is, sharing of session data across multiple load-balanced web servers

[part 1] [part 2]

with JBOSS

what about caching

August 14, 2005 Posted by | SW Tools | 1 Comment

MyEclipse

Link: MyEclipse Forum

Link: Wayne Parrott’s Weblog : Weblog.

July 26, 2005 Posted by | SW Tools | Leave a comment

web tools on eclipse 3.1

I had checked out eclipse 3.0 with the web tools  last year.  Now, Its 3.1 time.

On Eclipse download page,  Get eclipse-SDK-3.1-win32 (The Eclipse SDK
includes the Eclipse Platform, Java development tools, and Plug-in Development
Environment, including source and both user and programmer documentation. If you
aren’t sure which download you want… then you probably want this one.)

Get the other Web Tools Platform prerequisites.

  • – The EMF driver used in this build is emf-sdo-xsd-SDK-2.1.0.zip
  • – The GEF driver used in this build is GEF-SDK-3.1.zip
  • – Java EMF Model Runtime driver used in this build is JEM-SDK-I20050715.zip
  • In the Web Tools Platform; Runtime section there are two downloads. Select the first one. (The second one also includes the WTP source and is useful if you are developing the WTP or developing on top of the WTP)

    Stable Build: 0.7RC2    WTP Runtime module includes the WST and JST builds in one package wtp-0.7RC2.zip

    Tomcat tutorial (old)

    Tomcat 3.1 tutorial

    wiki

    http://www.eclipseplugincentral.com/index.php

    July 22, 2005 Posted by | SW Tools | Leave a comment

    WSCentral

    The site is called WebsphereCentral.  I am particularly interested in the RAD V6 series.

    July 11, 2005 Posted by | SW Tools | Leave a comment

    Database shootout

    Part one of the blog entry on the IDUG DB2 vs Oracle

    Part Two of DB2 vs Oracle.

    June 4, 2005 Posted by | SW Tools | Leave a comment

    IBM WS 6.0

    Link: developerWorks: Plenty of coverage on RAD6 / WAS 6.0

    April 8, 2005 Posted by | SW Tools | Leave a comment

    Mock Objects

    A mock object conforms to the interface of the real object, but has just enough code to fool the tested object and track its behavior.

  • Target object: The object being tested
  • Collaborator object: The object created or obtained by the target
  • Mock object: A subclass (or implementation) of the collaborator that follows the mock object pattern.
  • Specialization object: A subclass of the target that overrides the creation method to return a mock instead of a collaborator
  • Unit testing is the testing of software units in isolation. However, most units do not work alone, but they collaborate with other units. Mock objects are Replacements for collaborators.

    EasyMock provides an easy way to use Mock Objects for given interfaces in  JUNIT tests.

    February 25, 2005 Posted by | SW Tools | Leave a comment

    Managing J2EE Projects

    J2EE Application Development Series
    Ant or Maven?

    Maven for Portal Projects.

    November 28, 2004 Posted by | SW Tools | Leave a comment

    setting websphere studio 5 runtime path

    websphere+studio+5+runtime+path

    RTPWUG presentation on topic

    Visibility defines which classes are "reachable" Normally, visibility extends "up" but not "down"

    J2EE Java Classloader  (classpath environment variable)
    ^
    Websphere Extension Classloader (ws.ext.dir for use by any application)
    ^
    EAR Classloader
    ^
    WAR Classloader (module classloader)
    Delegation defines the "preference" order of classloaders
    Parent First - "down"
    Parent Last - "up" 

    WebSphere uses several classloaders to load the application code from the modules deployed to the server. The number and function of these classloaders depends on the classloader isolation mode.

    Do use the new J2EE application visibility provided in WebSphere 4.03, as it conforms to the J2EE 1.3 specification, and is therefore the least likely to change in the future.

    com.ibm.ws.classloader.J2EEApplicationMode = true

    New J2EE Application visibility – PARENT_FIRST : the .war module classloaders delegate to the parent classloader before attempting to load classes. You can change this behavior by setting the JVM system property:

    com.ibm.ws.classloader.warDelegationMode

    New J2EE Application visibility – a separate classloader for each Web module. Classes in one Web module cannot reference classes in other Web modules .Web modules can reference classes in any utility JAR files and EJB modules.

    New J2EE Application visibilitya single shared classloader for dependencies (manifest classpath entries),  utility  JAR files and EJB modules. EJB modules can reference classes in all utility JAR files, but cannot reference classes in Web modules.

    The main difference between Application visibility and new J2EE Application visibility is that Application visibility lets classes in EJB modules reference classes in Web modules, and classes in   one Web module reference classes in another Web module. If you need to do this,   you will need to use Application visibility.

    Applications classloader policy: how applications share classloadersor not – Single (shared) or multiple.

    WAR classloader policy: how war files are loaded per application – Application (dictated by application classloader plicy), or Module.

    Sample classloading issue with WAS5

    November 23, 2004 Posted by | SW Tools | Leave a comment

    WAS 5 connection manager

    In Websphere version 5, its supports a new connection manager connector. It is implemented as JCA style connector.

    http://localhost:9090/admin

    Resources -> JDBC Providers : On this screen you can create a new JDBC provider or click on an existing provider (i.e DB2Universal JDBC Driver).

    By clicking on the Provider name brings up a new screen (General Properties):

    classpath: location of db2cc.jar

    implementation classname: com.ibm.db2.jcc.DB2ConnectionPoolDataSource

    On this same screen, there is a title of additional properties which should have data sources, click on that link which brings up a new screen.

    This page has a title of Configuration. Here is where you configure the data source name and JNDI name.

    name: test

    jndi name:jdbc/test

    Also, on this page is a button to test the connection.

    Now, you are all set to go in java with your pooled connection.

    ctx = new InitialContext();
    ds = (DataSource)ctx.lookup("jdbc/test");

    try {
    Connection con = ds.getConnection("","");
    }
    catch (Exception ex){}
    finally
    {if (con!=null) con.close();}

    November 16, 2004 Posted by | SW Tools | Leave a comment

    CVS in WSAD/Eclipse

    CVS is one of the early code versioning systems. I am going to first run thru some resources [1] [2] on how to use this within wsad/eclipse.

    Versions and Branches

    CVS setings can be accessed in eclipse : Windows -> Preferences -> Team -> CVS
    To enter the CVS perspective in eclipse: Windows -> Open Perspective -> Other -> CVS
    To check out a project into eclipse using CVS from Apache , see this link

    October 26, 2004 Posted by | SW Tools | Leave a comment

    SVN on RedHat Linux

    from command line: lynx http://summersoft.fay.ar.us/pub/subversion/latest/redhat-8.0/bin/

    download all the apr rpm files, all the neon rpm files, and subversion-1.0.6-1.rh80.i386.rpm , and subversion-tools-1.0.6-1.rh80.i386.rpm

    rpm -Uvh *.rpm

    I am using JSVN as client.

    Just download the jar , and to invoke : java -jar jsvn-0.8.jar

    October 20, 2004 Posted by | SW Tools | Leave a comment

    Subversion (SVN)

    Subversion : Next-Generation Open Source Version Control [book]
    tigris: A Subversion Eclipse Plugin

    There is a windows explorer plugin called tortoise for SVN.

    Steps to install:
    1. Go to : http://tortoisesvn.tigris.org/download.html and download the version you need.
    2. Install the application and reboot

    Steps to use:

    1. Pick any working directory. For example: C:\Workbench
    2. Go to C:\Workbench in the Windows File Explorer
    3. Right click in the whitespace in C:\Workbench
    4. Select the “Checkout Option”
    5. In the prompt enter: svn://url1/project1 (for only project1) or svn://url1/project2 (for only project2) or svn://url1 (for both projects)
    6. Password and usernames follow. This allows us to track who added or changed files in the repository.
    7. Be sure to check the box that says to save your credentials so you don’t have to re-enter them.
    8. To begin working with the repository you can add files and directories using the right-click mouse menu.
    9. Check out creates the “Working Directory”.

    To Add files:

    1. Checkout your desired repository to a working directory.
    2. Go to the working directory and create the file or folder.
    3.IMPORTANT: You should in the Working directory area to create files/folders.
    4.When you have created your files and are ready to add them to the repository
    a. Right-click on the file/folder and select “Add”.
    b. The select commit.
    c. TortiseSVN automatically submits any subfolders and files for you.
    5. when everything has a green check mark, you know everything has been committed successfully.
    6. when you add files in Windows you may want to hit F5 to refresh you folder view if it doesn’t update fast enough for you.

    To Edit/Change Files:

    1. Checkout your desired repository to a working directory
    2. Modify the files.
    3. Select the files are the containing directories and select “Commit”.
    4. when all files/folder show the “Green Check Mark” you are done.

    To get the latest changes:

    1. Right click on the working directory you created and select Update.

    [other version control options]

    October 8, 2004 Posted by | SW Tools | Leave a comment

    WSAD – set workspace dir

    C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2>wsappdev -setworkspace C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\ecl
    ipse\workspace

    September 9, 2004 Posted by | SW Tools | Leave a comment

    Eclipse on Linux

    So eclipse can now be had on linux. I thought this was already the case. News of this here and here.
    I guess this quote explains the change: “Previously, developers had to download the SDK and runtime separately. “Now, we’ve made it much simpler. You can get both of them at the same time”

    August 23, 2004 Posted by | SW Tools | Leave a comment

    BAM, kick it up a notch

    IBM Readies Software for Real-Time Reports withBAM.

    August 13, 2004 Posted by | SW Tools | Leave a comment

    CVS with WSAD for apache

    CVS > CVS Repositories from the Show View dialog
    New > Repository Location
    host name = cvs.apache.org
    path = /home/cvspublic
    userid = anoncvs
    click finish, should be connected

    August 4, 2004 Posted by | SW Tools | Leave a comment

    More web tools for eclipse

    So IBM has added Derby to Eclipse. I believe cloudscape comes with IBMs Portal project. In the Hibernate developers notebook, they use hsqldb as their database.

    August 4, 2004 Posted by | SW Tools | Leave a comment

    ANT & MAVEN

    ANT by Apache:
    lets you construct your build scripts in much the same fashion as the “make” tool in C or C++.

    Download the ANT src apache-ant-1.6.2-bin.zip
    Extract the zip files to C:\ant
    Refer to C:\ant\docs\manual\index.html for installation instructions
    – set ANT_HOME=c:\ant
    – set JAVA_HOME=C:\WebSphere\AppServer\jdk
    – set PATH=%PATH%;C:\apache\apache-ant-1.6.2\bin
    – ant -h

    Maven tool:
    Maven builds, documentation creation, site
    publication, and distribution publication.
    release

    July 30, 2004 Posted by | SW Tools | Leave a comment

    ANT & MAVEN

    ANT by Apache:
    lets you construct your build scripts in much the same fashion as the “make” tool in C or C++.

    Download the ANT src apache-ant-1.6.2-bin.zip
    Extract the zip files to C:\ant
    Refer to C:\ant\docs\manual\index.html for installation instructions
    – set ANT_HOME=c:\ant
    – set JAVA_HOME=C:\WebSphere\AppServer\jdk
    – set PATH=%PATH%;C:\apache\apache-ant-1.6.2\bin
    – ant -h

    Maven tool:
    Maven builds, documentation creation, site
    publication, and distribution publication.
    release

    July 30, 2004 Posted by | SW Tools | Leave a comment

    eclipse web tools

    IBM contribution to the Eclipse Web Tools Platform Project is now live. Here is the link. Scroll down to the end of the page and see IBM getting started guide.

    Lomboz contribution to the Eclipse Web Tools Platform Project is also now live. Here is the link. Scroll down to the end of the page and see ObjectWeb getting started guide.
    Note that after extracting the zip file you got from eclipse.org to the same location as used above, it gives you a lomboz.zip file which must be extracted to your eclipse home directory. Thsi directory is the directory that is directory above the plugin folder. The lomboz tutorial is here.

    [blogs]
    [serverside]
    [Bill Dudney]

    Attended Websphere meeting with Gili Mendel / Jim Zhang

    VEP

    Java Visual Editor (JVE)

    JFACE & SWT

    XMI Toolkit is available as Eclipse Modeling Framework, which is part of the Eclipse open-source project.

    GEF

    July 26, 2004 Posted by | SW Tools | 1 Comment