What’s next

February 4, 2009

Debugging Java web applications

Filed under: Java — stigl @ 10:56 pm
Tags: , , , ,

Debugging Java web applications is often necessary, but setting it up on different vendors can be difficult.
However, there is a generic, easy way to do this by setting the JVM running the web server in debug mode.

Jetty and Maven


export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
mvn jetty:run

Set up your IDE for remote debugging on port 4000 and you’re laughing!
idea-remote-jetty-debugging

December 9, 2008

Setting up a BD-J development environment sucks!

Filed under: Uncategorized — stigl @ 11:38 am
Tags: , , , , ,

I’ve recently looked at how one can set up a Blu-ray development environment for developing Java apps on a PS3.
The HDCookBook project seems like a good starting place, since you need alot of files to surround your BD-J Java apps when on the disk. Fine enough, but expect some hassle of changing file names if you want to put them on a memorystick.
Next step, run ant for compiling the project… You need to download “BDJ.jar”. You can find it AFTER INSTALLING NERO ON WINDOWS. Aaargh. Three hours later, we’ve found our bdj.jar.
Java ME SDK? It requires you to register at Sun… Ok, done that. Next step, Install sun_java_me_sdk-3_0-ea-win.exe on Windows. I HAVE A MAC!!! AHRG! Who needs multi-platform portable javacode when you can distribute it as .exe files!?

Do they even want people to develop on their platform? This is not inviting! And stop the stupid Ant stuff. Maven is the only way of distributing sourcecode and knowledge that works.

December 6, 2008

Groovy does Neo4J thanks to Maven Simplicity

Filed under: Groovy,Java — stigl @ 11:54 pm
Tags: , , , , ,

Guillaume Laforge, Groovy Project Manager, kicked off a debate on the Neo4J mailing list with his post Groovy and Neo4J. He stated some examples of how Neo4J could be more Groovy. However, since most Neo4J developers aren’t familiar with Groovy, the topic wasen’t tested out further.

Therefore, with of my L337 skillz in Groovy, Neo4J and Maven, I saw it my destiny to create a simple Neo4J test in a Groovy environment to validate Guillaume’s propositions. Along the way, I had to add some GMaven magic, embedded Neo4J, Mercurial version control and Maven Archetype for distribution. No wonder why I didn’t get this out the door yesterday! 😉
(more…)

November 30, 2008

On demand development IDE plugin as a resource to the source code

Filed under: Uncategorized — stigl @ 10:41 pm
Tags: , , , , , ,

A cumbersome task which everyone who wants to join a software development project, opensourcy or enterpricy, is setting up the development appropriately. This is becoming more apparent due to the new programming and scripting languages and frameworks like Rails which pop up every now and then. We are getting somewhere (Maven 2)when it comes to making sure the source code compiles and runs out of the box. But the development environments still need to be downloaded, installed, and configured (allthough Maven can help here) and license keys entered.

However, there is hope! (more…)

November 12, 2008

Grails 1.1 got Maven support – So What?

Filed under: Groovy — stigl @ 12:07 pm
Tags: , ,

You know you’ve been wasting too much time blogging in the sphere when, renowned developers start stalking YOU 🙂
Anywho, the comment I recieved informed me that Grails 1.1 Maven support is out, giving Maven developers much needing air-mileage towards a Grails firstclass-citizen-goldcard. Predecessor Octo was, what I reckon, a shell around Ant scripts for doing Grails tasks, distancing Maven from responsibility of doing the nitty-gritty building and wiring.

So why should you care who builds your Grails project?

Because of the nifty reusable plugin functionality you get out of the box from maven. And more importantly with Grails, control of how you wire your app together.

The current state of the new Maven plugin

I can’t see no Ant anywhere. It might be because I’ve been lazy and havent poked around the poms, but until contradicted, I choose to believe that Maven is in charge. One difference is the added folders, src/main/webapp aso. Does it work as it should yet? Of course not, it wouldn’t be bleeding edge if it did, but well enough for me to get a good impression and a list of issues to report back on.

Conclusion

If the Maven plugin picks up speed inside GrailsDev, I’m a happy camper! Good Work!

Idea for create-archetype-from-existing-project plugin

Filed under: Idea,Java — stigl @ 8:27 am
Tags: , ,

The project I’m working on is teh best, and I don’t have time to create an archetype from it! Why should I need to structure the project in a different way to create the archetype? If I do that, I cannot continue working on the code. The plugin should be able to rip out all the non-generic stuff, like groupId, projectId, folders, wrap them in templates so they are automatically filled and presto, you have a new archetype.

Idea for simple-jar-lib plugin

Filed under: Idea,Java — stigl @ 8:23 am
Tags: , , ,

Often, when one looks at someone elses project, the artifact dependencies are a mess! The jars litter a lib/ folder, and often have no version or groupId, and it would be beneficial to structure them into a local repository. Another case is when you wish to supply an artifact which is not located in any external repository, but wish to have it close to your project in the VCS, for convenience. And the artifact has no pom. I believe the maven-dependency-plugin has a similar functionality which can be used with legacy maven1 projects, which do not require the advanced folder structure, but still requires a pom present.
(more…)

September 30, 2008

What I’m into right now

I thought I’d post updates on what I’m interested in, to give a glimpse of what I’m looking into and have moved away from. Perhaps I’ll have enough data to create a graph someday 🙂

Up and coming

  • Neo4J – A graph store – no more ORMappings
  • Qi4J – A composite development framework, a new way of writing Java applications, a way of life
  • Groovy GRAILS – Excellent for prototyping Java stuff
  • Mercurial – When thinking different, why not Version Control as well?
  • Swing Appframework, Java6u10 – Propably the next big thing in Rich Internet Applications
  • Visualization of graphs – Am looking for a nice, easy API for creating several hierarchical trees that I can drag and manipulate
  • Amazon EC2 – Java enabled servers on demand!
  • Twitter, Blog, IRC -New (and revisited) ways of communicating intra-project/company
  • javaBin, JavaZone – Working with the JavaZone conference for a year was damn fun!
    (more…)

September 29, 2008

Mavenized Neo4J example

Filed under: Java — stigl @ 10:12 am
Tags: , , ,

The weekend after JavaZone, I was one of the participants on a “GeekCruise”, where we looked into emerging technologies such as Qi4J, Neo4J and Enterpricy stuff.
Matrix diagram
In short, Neo4J is a network/graph database that promises to deliver Web 3.0, Semantic Web and RDF greatness.  (more…)

July 19, 2008

Pre and post condition validation with OVal as intruments of software architecture

Filed under: Java — stigl @ 3:58 pm
Tags: , , ,

I have for the past couple of weeks been fiddling around with OVal – the object validation framework for Java™.
Setting up a project to utilize OVal for the first time wasn’t easy, as you can read in my post “Problems with IntelliJ AspectJ plugin”.
I’ve created a simple Mavenized project, which should ease setting up, testing and getting an impression of the potential of OVal.
(more…)

Next Page »

Create a free website or blog at WordPress.com.