Browse by Tags

All Tags » Java (RSS)

JUnit with Netbeans by lamia

In my office, TDD is a new methodology that we've just began adopting. My senior wrote a TestCase class before he left the company. Thanks to him, I got some sample codes to study. After baby sitting, I decided to open my computer and fire up netbeans...
Filed under: , , ,

JBible - A Java based Bible Application by lamia

Well... It was one hell of a week for me and I needed something to remind me how fun programming is. Or used to be hehehe. This was supposed to be an entry to Keith's contest, I unfortunately fell ill a few days before the deadline and wasn't...
Filed under:

Parsing Excel Date with POI - JXLS by lamia

Just a quick post from me here. I couldn't find any resources on the internet, I couldn't remember how I found this solution. Here's the scenerio. When you try to parse and Excel sheet using JXLS, unless your Excel sheet column is formatted...
Filed under: ,

If-Else vs Throwing an Exception to handle errors by lamia

Note: In reading this post, please disregard for a moment the difference between an exception and an error. I mainly used the word error for convenience. Thank you. Yesterday, I was given a tip by my team lead which I found nice and quite elegant to do...
Filed under: ,

Should Scala Extend the Java Language Capability? by lamia

While reading Bruce Eckel's article, Java: Evolutionary Dead End, he mentioned of another programming language which is somehow based on Java(and runs on the same VM) but has the feel and construct of a Scripting language(e.g. Ruby). I got interested...
Filed under: ,

Deploying your Jar with your War in Eclipse by lamia

Note: I've done the following using Rad7 but should also be applicable to Eclipse(since RAD7 is basically made on top of Eclipse). When you have total control of you web container/app server, deploying jar files is as easy as dropping the folder in...
Filed under: ,

Annoying requirement for an EJB Session Bean method by lamia

I'm a bit irritated about Session Beans because I have to implement the Serializable interface for every object that I pass to a Remote method. Of course, it totally makes sense to do that when you're making remote invocation but I'm thinking...
Filed under: , ,

EJB and Java EE Design Patterns by lamia

I'm still not doing much here in my new job. There's still a lot of things to be set up. I finally got to meet with our very own Nards (N.Ocampo). Aside from that, I've been reading on Java Enterprise Design Patterns for the past one week...
Filed under: , ,

Bitshifting for dummies by lamia

Disclaimer: The writer is a dummy in bit shifting and therefore this post does not come with any warranty of replacing your job if you replace all the business calculations in your system with the methods mentioned here. The below examples only work for...
Filed under:

My observation on how a JAX-WS Webservice is deployed to Tomcat when creating a Webservice End-Point in Netbeans by lamia

I was playing with Netbeans today and wanted to see how I would be able to deploy a Webservice. I started by importing all the required Jar file. I used a wizard(Library Manager) so all the required Jars were already placed on my behalf. If you want to...
Filed under: ,

WSDL Hell by lamia

The usual way of making a webservice client in Java is by feeding Axis's WSDL2JAR tool or Using the Eclipse/Netbeans IDE with a URL that looks something like http://someurl.com/webservice.aspx?wsdl . Alternatively, you could use a WSDL file. I thought...
Filed under: ,

SuperWaba - develop apps for PDA using Java-like syntax by lamia

My officemate told me about this SuperWaba which is a Virtual Machine for PDA's. The syntax for developing apps is similar to the Java syntax. However, this VM doesn't implement any of Sun's specification. It is opensource but I don't...
Filed under: ,

Change Netbean's default JDK by lamia

Last week I uninstalled my 1.6 JDK and JRE(both of which are bundled with my netbeans 5.5 installation) because the RIM Blackberry code signing/signature tool(SignatureTool.jar) seems to be having problems when JRE 1.6 is installed. A week later I tried...
Filed under: , ,

You just need to annotate - Creating webservices with Java by lamia

I have to admit... I can write a webservice(server) in .Net(with attributes) but not in Java. Why? Because writing one seems so hard... Ah ah ah! That was before! Because of this anxiety I tried to key in google for "webservice annotation" and...
Filed under: ,

Me, Oracle, and the Java Market by lamia

While surfing the Net and unconsciously thinking about my standing in the I.T. market, I came across a link that tells Frequently Asked Questions about Java and Oracle. I'm still browsing through it while making this blog post. What's the fuss...
Filed under: , ,
More Posts Next page »