Direkt zum Hauptbereich

Welcome People of People

You can take it out here. If you're nice, I shall come back to you.

Kommentare

Catherin hat gesagt…
Ay, que chevere tu pagina. Y tu quien eres?
Anonymous hat gesagt…
mmm... long time since!
Anonymous hat gesagt…
I see you are working on your page again... is it that time of the year already or just a midlife crisis thingy?

Wish you all the best and keep it up!

Cami
Anonymous hat gesagt…
hey DUH-UH!
Anonymous hat gesagt…
schöne Bilder!
Anonymous hat gesagt…
That is old stuff. Have you any new things?
Anonymous hat gesagt…
who the hell listens to anime music?
tulio camminati hat gesagt…
!
I think this kind of music comes too short. It is actually pretty good.. check it out.
Anonymous hat gesagt…
Yeh yeh.. mother f***!
Anonymous hat gesagt…
i like the new pictures in your gallery.
Claudia hat gesagt…
mmm.. nothing new on your site?

Beliebte Posts aus diesem Blog

ThreadLocal as an Enum - I'm not afraid to admit it!

Well, as disturbing as it might be, I am not afraid to at least admit it: I did not know about the elegance of the following construct: public enum TLData { INSTANCE; private final ThreadLocal< String > myData = new ThreadLocal< String >(); public String getMyData() { return myData.get(); } public void setMyData( final String myData) { this .myData.set(myData); } } Since you are using an Enum, nobody can create new members from outside, you don't have to care about privatizing any methods and you can access it as easy as: public class myClass { public void myMethod() { /** * setting the data */ TLData.INSTANCE.setMyData( "some data" ); /** * getting the data */ String myData = TLData.INSTANCE.getMyData(); } } Isn't that fancy? I had to admit I never thought of it myself. A colleague of mine had to put it under my nose.

JUnit testing services and clients with javax.xml.ws.Endpoint

Following situation: you have written some generic stub to use in your projects that creates a client for a service. Your client is smart and does some magic for connections (proxy, cache or other kind of magic). Or maybe you just have written a service for that matter. Anyway, you now want to test it. Unit testing the functionality of your methods is a must. But you still want to reach 100% coverage and need to test the service as it would run in real life. Then you can use the javax.xml.ws.Endpoint class. If you prefer figuring it out yourself, you can find the code (as a project for netbeans) -- here -- To follow the code examples as html click   --here-- So here is how you do it: If you've coded nothing fancy, then you probably have a class like this: This is a generic client for opening connections to services. It gives you back a port of the type of your service where you can call your operation as a method of the port. It is very convenient if you h