Top.Mail.Ru
January 17th, 2003 - Java developers — LiveJournal
? ?

Java developers

January 17th, 2003
Image

11:12 am - Imagewolfieboy - A little known fact about JBoss

It seems that JBoss caches DNS name lookups.

This means that if you change the ip address of a remote service while leaving the hostname the same, JBoss won't realize this. When you try to debug why JBoss is failing, it will be very confusing because everything says that it should work but the hidden ip address embedded in the socket connection still points to the old service.

Bad JBoss.
 

03:22 pm - Imagecrunchybear - Graphics

Hey, I was wondering if someone might be able to spread some light on a problem im having.

I have a custom JComponent that im using to draw custom graphics into, this JComponent is housed within the main part of the gui in a JPanel.
Depending on what the user does the JComponent could be drawing something very light, or something very heavy (basically its drawing a truth table, it could have 2 - 30 propositions inside it). Everything works ok, except that the memory used to draw a very large image is being retained by the JVM, so if for example I draw something very big (and it requires 20mb's of memory to do so) and then continue on to draw something very small the memory used previously isn't deallocated.
Obviously I thought that I had some erroneous references left pointing to the Image object im using for my drawing and it wasn't getting gc'ed after I'd nulled it, but it would appear not as I can successfully get finalize messages, I then tried dispose() 'ing the graphic objects that I use, this also doesn't have any effect. And now im stuck.

Can anyone help ?
Image

10:02 pm - Imagexmac - Newbie question

In a text only output program, can you color the output? -- and if so, can the value be used to determine what color to print the value in? ie. if the value is > 4.49 and <4.99 it should be printed in green.

I think this kind of thing can only be done with swing/GUI but I hope what I want to do can be done.

Thanks for any help. -- Yes answer is good, but not much help -- Yes with an example much appreciated.
Powered by LiveJournal.com
Image