Archives

Archives / 2004 / May
  • [Java] Coding java (jsr168) portlets with Eclipse

    On my third and last day at the Vignette Application Portal coding course, and I'm glad I sat down last week to really learn the coding IDE Eclipse and the Lomboz plug-in.

    I can now code jsr168 portlets with full intellisense/code completion in Eclipse, package and hot deploy it in weblogic - really, really nice. Once you got the environment set up, coding java portlets isn't too bad. Pity it takes ages to learn and set up the environment, and all hell breaks loose if you get a stacktrace :/

    I still have to learn how to start weblogic in debug mode inside Eclipse so that I can debug the portlets. Not sure it will work at all actually...

    EDIT: I had spelled Lomboz wrong, sorry bout that :)

  • [Java] Attending a Vignette course...

    Vignette Application Portal (VAP) is a Java portal application that runs on most application servers out there, and I've been more or less forced into attending it :/

    Anyway, I'm on day 4 of this course, which is very much about how to administer VAP, and it's so boring it's killing me! I've had enough editing of property files and XML files and setting of permissions that it will last for a year... Thank God, there will be another course next week with 3 days of how to code portlets. It's not .NET, but it's coding anyway... I've not been to a course for years and years, usually it's me standing there talking about stuff. I prefer installing something I need to learn on my own machine and play with it for a week rather than attending courses, but my new manager wouldn't listen to that :/

    How on earth did I get involved into all this Java stuff??? I want to do .NET, not Java!! *sob*

  • How to list active connections for a process in win2k?

    I'm sure many people have been trying the same thing, but I need to get the name or id of the process that owns a certain ip port or connection on the machine. I found the undocumented API:s called AllocateAndGetTcpExTableFromStack and AllocateAndGetUdpExTableFromStack but as far as I know, they are only available for WinXP and possible Win2k3 as well, but my program should run on win2k as well. I've been looking for hours for a way do get open connections for a process in win2k, but it's impossible. I don't want to write my own device driver...

    Some tools do it, like Fport.exe, but I wonder how!


    So, any idea about how to solve this? Preferably in c# or vb.net...

  • PacManhattan

    I got this page from Jan-Erik, and it looks really fun. Real Life PACMAN around Washington square park! And it is software-related too! ...sort of ;) Quoted from their webby:

    Pac-Manhattan is a large-scale urban game that utilizes the New York City grid to recreate the 1980's video game sensation Pac-Man. This analog version of Pac-man is being developed in NYU's Interactive Telecommunications graduate program, in order to explore what happens when games are removed from their "little world" of tabletops, televisions and computers and placed in the larger "real world" of street corners, and cities.

    A player dressed as Pac-man will run around the Washington square park area of Manhattan while attempting to collect all of the virtual "dots" that run the length of the streets. Four players dressed as the ghosts Inky, Blinky, Pinky and Clyde will attempt to catch Pac-man before all of the dots are collected.

    Using cell-phone contact, Wi-Fi internet connections, and custom software designed by the Pac-Manhattan team, Pac-man and the ghosts will be tracked from a central location and their progress will be broadcast over the internet for viewers from around the world

  • [Java] JAX-RPC vs. ASMX (a few things I noticed)

    Note: This is just a reflection, not a full comparison between the two. I don't have time to do a full review of JAX-RPC I'm afraid ;)

    I dedicated yesterday to looking at JAX-RPC, which is supposed to be a pretty good and standardized way to build web services in Java. I didn't want to use a vendor specific implementation of JAX-RPC, so I downloaded Java Web Services Developer Pack (Java WSDP) from Sun, which has a decent tutorial and numerous examples. It took some hours to get everything going, but the Java WSDP has EVERYTHING you need to get going, except for the Java SDK and a proper editor.

    Well what can I say. It's far from simple. Without proper tools that does the mapping and generation of class-files for you, it is more or less a mess and it's a total pain compared to how easy it is on the .NET platform. Even if you're not using VS.NET and doing it by hand using Notepad.

    Good things about JAX-RPC is that most things seems to be doable with it. The coding part is dead easy and you can do Handlers (just like SoapExtensions in .NET) and stuff too. I noticed that default encoding seems to be rpc/encoded though.

    What I need to stay sane is a good JAX-RPC plugin to intelli-j, eclipse, NetBeans or something. I'll continue to write small stuff about what I find in this field.