Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Friday, January 15, 2010

MyEclipse JavaDoc Editor

Does MyEclipse have a JavaDoc editor similar to NetBeans?  I don’t want to have to remember the available JavaDoc tags, but I want it to be easy to create the comments.

I see that MyEclipse has a JavaDoc view which allows you to see what the JavaDoc will look like after it is generated. 

Tuesday, December 29, 2009

Comparison of issue tracking systems on Wikipedia

Comparison of issue tracking systems - Wikipedia, the free encyclopedia

Not a lot of pretty Java based bug tracking systems out there. Several are proprietary or "free for non-commercial use". I've heard about JIRA, but in most environments I work in (work/home) I want to use an open source issue tracking system.

So Bugzilla and Mantis are there. I've used Mantis lately due to it's easy setup on a Windows machine. Not too sure I want to dig into Bugzilla yet since there are several steps including ActivePerl setup. Looks kind of crazy and I'm suppose to be getting a new laptop in Q1. :)

Monday, December 21, 2009

Upgrade NetBeans from 6.7.1 to 6.8

 

  1. Step 1 - What I’m installing
    1. Basic Java stuff with Sun Glassfish Enterprise Server
      1. not Java ME
      2. not Groovy
      3. not Tomcat (I’ve got other installations on my machine)
        image
  2. Step 2 – Accept terms
  3. Step 3 – Installation Location
    1. I’ve selected C:\DevelopmentTools\NetBeans 6.8 for my install folder
    2. Selected JDK 1.6
      image
  4. Step 4 – Install Glassfish
    1. Install to C:\DevelopmentTools\glassfish-v3
      image
  5. Summary
    image
  6. Press Install and wait for the install.
  7. Once complete, I started NetBeans 6.8 from my desktop and imported my settings from 6.7 when prompted.

Monday, November 30, 2009

SQuirreL Upgrade from 3.0.2 to 3.0.3

I just got notified in the GUI that this upgrade was available.  I started the upgrade process and received a list of Artifacts that will be upgraded.  I looked through the list and decided to add a few extra ones (sybase, mysql) and clicked Apply Changes. 

image

Once the JAR’s were downloaded, I was told that the changes would take effect once I restarted the application.  So I exited the application and then started SQuirreL back up.  Another prompt to verify that I want to upgrade, and then some backup’s occurred and we’re off and running.

 

First time I’ve done an upgrade for SQuirreL.  Smooth process for me.  And still a great tool.  Check it out. http://squirrel-sql.sourceforge.net/

Friday, November 20, 2009

JSPWiki is a wonderful tool

For a long time I’ve wanted a tool to help with general documentation on projects, coding, ideas, “things I’ve learned”, tips and tricks, and on and on.  It’s nice to have something at work to do this with, because frankly, I learn a lot of little things to help me in my job that sometimes I just forget.  And is there a possibility that someone else has learned those same things? yep.  Maybe they want to write about or tweak the same things I’ve documented.

Try a Wiki for your development team.  Whether it’s Java, PHP, or something else. Give it a try. I work in a Java shop, so I looked a almost went with a PHP based solution (because I work in PHP as a hobby), but decided it would be best to go with a Java solution.  Side goals regarding this include perhaps someday contributing back to the project.

I found JSPWiki. What Java based Wiki’s have you found?

JSPWiki is fairly straightforward to setup.  I’m running it in Tomcat 6.0.18.  I don’t suggest auto deployment, since the configuration information is stored in WEB-INF/jspwiki.properties and could easily be lost in an upgrade.  So I unzipped to the webapps folder and versioned the files with Subversion.  Easy enough.

What I did:

  1. Unzip WAR to the TOMCAT_HOME/webapps folder.
  2. Open a web browser and request “http://localhost:8084/JSPWiki/Install.jsp” (verify your port; watch the case on Install.jsp)
  3. Enter the config parameters making sure you enter at the very least the “Page storage” parameter.  Otherwise pages are stored in the web app folder
    image
  4. Enter the other parameters and press Configure! at the bottom of the page.
  5. A page will be displayed to enter an ADMIN user.  After this, you will have to be logged in as the admin in order to see the Install page again.
  6. UnZip “JSPWiki-corepages” for your language in the directory defined by “Page storage” above.  This is just a bunch of starter and help pages.
  7. Start editing your Wiki.

There are some plugins available for it. http://www.jspwiki.org/wiki/JSPWikiPlugins

You can use the triple braces for code, or you can install the plugin Code2HTML, giving a little better visual for code;  There’s a special syntax to use, but it’s nice.

JSPWiki-Install Code2HTML Plugin

Thursday, July 16, 2009

Onward with Java Coding

I’m helping keep my Java coding up to par by building a JSF app called MyMovies to help catalog the large library I have. Technologies I am using:

  • Hibernate
  • JSF
  • Struts?? – not sure on this one yet.

Thursday, October 30, 2008

EntityManager

Here's a doozy that I haven't come across yet....
Using JPA. Everything works great when going straight through the JPA application. Data gets retrieved and saved just fine.
If the data is changed in the database by some backend process (or just amnually throught some SQL tool), the JPA application does not refresh the data. It appears to be pulling it from a cache.

I found this great article
http://weblogs.java.net/blog/guruwons/archive/2006/09/understanding_t_1.html

amd info on TopLink JPA Caching
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#TopLinkCaching

and.......it worked!!!! :)
added "q.setHint("toplink.refresh", "true");" (where q is Query) to those queries where data could be updated from other process.