guys, how do I load a properties file from a servlet web
hosting so that it is non-server specific. ie, the
properties file is always in context location
/webapp/resources/preferences.properties ?
Chest, ServletContext.getResource
pfn could you begin again please?
thanks.
discoverable = UDDI?
hallo
andresgr, talking on a smaller scale, not uddi
pfn, i think the point for using JMS is its realiblity
but I guess it doesn't really matter, if you're writing a web
service client, you'll have picked up the wsdl prior anyway
andresgr, you're right
um, hi guys - can someone point me to a tutorial on how to edit
*.jar files from within Java? The java.util.jar.JarFile javadoc is
not very helpful. I have written a game in java servlet hosting
and a Level Editor for that game, too. It can already edit the
level files but I want it to read the files from the *.jar of the
game and save them back into the *.jar file.
pfn, i tried calling invalidate, but it didn't help. the
buttons are still sometimes displayed and sometimes not (without
changing the code)
you tried calling invalidate where
always be specific
pfn, for realibility one could use also IBM's HTTPR... but
that is on dead tech pool now
httpr sounded stupid...
~httpr
andresgr, I have no idea what httpr is.
yo
~jar
Neumaennl, jar is Java ARchive. See http://java.sun.com/tutorial/jar
and http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
for more information. Also see fatjar
is that
http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html
up2date?
IBM people say it was withdrawn in favor of the
OASIS evolving WS-ReliableMessaging standards.
pfn, sorry - here's my code: http://paste.debian.net/30508
I'm fairly new to java, so prepare to be shocked
~tell vikingr about edt
vikingr, Event Dispatch Thread, the thread that drives the swing
gui. See
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
for a tutorial on Swing and threads, and note http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#1
remove useless/empty comments, add good comments
why do you extend Thread? that is in most cases very
wrong...
why are you even extending anything at all
there's no reason to be extending any class in this program
and, uh, don't use busy-waits
also, no hungarian notation
java is strongly typed, using hungarian notation doesn't really
help here
~fatjar
Neumaennl, fatjar is a jar file compiled from several other
jars, see http://fjep.sourceforge.net/
is the proper way to access servlet resources via a JSF java host
managed bean with
FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream()
?
if you want it as a stream, sure, why not
~beep
andresgr, I have no idea what beep is.
hm, the System class is integrated into the language
specification ?
because i need no import for it...
litb, java.lang is imported per the JLS
not just System
the _ENTIRE_ java.lang package is implicitly imported.
you type slow
~tell litb about imports
litb, I guess the factoid '* imports' might be appropriate:
litb, * imports is http://en.wikibooks.org/wiki/Java_Programming/StarImports
litb, * imports is a href="http://en.wikibooks.org/wiki/Java_Programming/StarImports"http://en.wikibooks.org/wiki/Java_Programming/StarImports/a
thats not the right one, ignore it
~tell litb about import
litb, import is
http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
~imports is seeimport
Okay, r0bby_.
fixed.
jottinger, back
your mbean naming conventions are exactly backwards
go me!
meaning CacheMBean and Cache ?
yeah
the interface is named *MBean
in yours, the IMPLEMENTATION is MBean
heh. i'll rename 'em
I'll have a fixed, better version for you soon
jottinger, heh, is eidolon paying you? you seem to help a lot
:p
quite a bit, actually
but I get a benefit out of doing stuff in any event
http://eugeneciurana.com/pastebin/pastebin.php?show=2391
to try and write out my properties file, but I'm getting
"java.net.UnknownServiceException: protocol doesn't support output"
from conn.getOutputStream()
this is from within a Face servlet.
*Faces
in this case, he wrote a db4o mbean, which is also something
*I* want, so I'm helping improve it
jottinger, the important point is that he's paying you
of course
Chest, getResource is read only
but I'd probably help even without...
after all, that's WHY they pay me, because I helped first
indeed
but still, the important point is that you're getting paid ;-)
e.g. I got an cisco 7960 3 years ago for hanging out on
#asterisk
heh
s/an/a
I have my servers from that
the javadocs don't say it's read only.
Chest, that would be spelled out in the JSF jsr, not
apidoc
how can I get an output stream for writing then? I'm not
seeing anything in ExternalContext.
Chest, there should be something like a getRealPath() java api hosting which
returns a File
use that
windows gives me headache
eh.
grrr
I swear, every time I use eclipse, I always fuck up the webapp
deployment for a while
I never got goodies for hanging out anywhere
r0bby_, you need to be less of an asshole :p
and you need to hang out where people have access to things to
give away
e.g. #asterisk means voip phones ;-)
heh, who's spamming pr3d4t0r's pastebin with porno links?
is that a new phenomena?
your mom is, tell her to stop
just kidding
really?
ok, i was just about to call her and tell her to knock it
off
working on being less of an ass, and more helpful
pissing off the regulars is a bad thing to do on IRC
anyway, I should start looking for another job, looking to
quit my day job, heh
so, if irc would only get me some decent job offers ;-)
i know a few pimps looking for new personel...
[krustofski]: I'm not hiring
so anyone here got any preferred webapp frameworks i should
consider for this project?
wicket
jsf
cakephp
yeah. cakephp is kinda the php
web hosting version of RoR
with all its attendant warts
Grails
it's not bad. but it's still a model 1 framework.
lol php :p
~php
cheeser, php is the solution of choice for relaying php mysql web hosting errors to
web users
i'll give wicket a look.
I should look at jsf at least once
instead of ignoring it completely
hehe
but JSF
looks like it's wired-by-xml up the wazoo
pfft
jsf+seam
I kind of like wicket so far
there's a few ways to quick start it, there's the quickstart
project in wicket-stuff i believe, there's databinder.net, and
qwicket
it is
starting up in wicket is actually pretty easy
just create a WebApplication class, and a WebPage and you're
done with the basics
yeah.
how does wicket work ? (never used a technology that isn't
basic jsps/servlets before). do i use it with
glassfish?
you can, yes.
you use wicket with any servlet container
it's just a web app
okay
I know you don't support applets where can I go to answer a
question on an applet?
prove it's java and we'll help you
The applet?
ask a specific java question
not an applet question
most java channels will refuse to help with applets for the
reasons listed in the FAQ page.
s/in/on/
i.e. do not ask anything about the java plugin or the
associated browser
/applet. That is the name of my interface class.
The ony difference I can see is that my applet is in a jar. I
think that may be the issue.
i thought whiskey was in the jar
I always like my jars filled with White Lightning.
agreed
is there any reason you can think of that a java echo server
would not properly handle data from a boost::asio tcp
client?
So is that an applet question?
is it possible to use mysql in wicket?
...
I'm putting a list of random integers into an ArrayList. What's
the easiest way to sort them? I thought using a TreeMap instead
would be an good idea, but I don't have a key value pair.
well, mysql requires english, and french can't be used with
wicket
if i have asio client/server it works fine, but if its a java
server, it acts like its not getting any data sent to it despite
being connected. but if i telnet to the java server and enter data
by hand, the java server echos it back out
if the list always has the same length, then just use an int
array, and Arrays.sort()
otherwise, Collections.sort()
are you using any sort of buffered writer/stream in your java
client?
oic!
lgbr, also there's TreeSet if the numbers are all unique
not an aolbonic
yes it was.
Organization of the Islamic Conference FYI
wanna go for a +b ?
awesome, thanks
maybe not
anyway, any other frameworks i can check out?
what is that shorthand syntax called where instead of saying "if
x=true then y=1 else y=0" you say "y:=1?0" or whatever
i dont know the syntax
rife perhaps
x ? y : z
x?y=1:y=0;
is x true ? then y : else z
ah ok
thx
it's a little diff in c and C++ isn't it
or am i going crazy
I think you're crazy
k cool
i guess my nick suits me then
aiee!
i just had 2 jboss servers running at the same time.
i think i heard my laptop whimper.
it's called the ternary or tertiary operator
and here I thought your nick had something to do with psychic
genetalia
"tertiary" wtf?
o.O
any word on Tapestry?
I tend to call it an inline conditional, but I know that's not
in common usage
yea tertiary sounds familiar
~regex
Neumaennl, regex is the regular expressions tutorial at http://java.sun.com/docs/books/tutorial/extra/regex/index.html
~ternary operator
[krustofski], ternary operator is
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op2.html
ive never seen "tertiary"
darn jboss to heck
primary, secondary, and tertiary!
RIFE! :-D
it's heavy enough that it should sink down to hell under its
own weight eventually
heck
we're talking about heck here
the warm-ish place under the dominion of phil, the prince of
insufficient light
This is heckishly hot
I have a profanity filter... it turns non-profane words into
their correct profane substitute
profanifier
then how did you know we were talking about heck in the first
place, huh?
Fluff you and the horse you rode in on!
I.. uhh.. toggled it... yeah...
maybe he's heard of fill
phil
wew, phonetics took over there
he's probably USED to fill... erm.... phil
mmm dilbert
I'm talking about the comic strip as a whole...not the
character
no cbrock
hey waz
wazzzaaaapp?!?!?!?
somebody drank the wrong kool-aid
okay, rife looks good. anyone got a favourite
framework-newbie-friendly tutorial?
Look at examples, best tutorial...EVER
wicket!
rails!
crap
rife is Bevin's project
I think
http://rifers.org/theater
awesome
just sit back and look at the demo videos
Bevin made them while naked
so OOOOooOoOoOooooOOoOOOO
I'd make a snide remark but i'd get kicked
tread lightly.
so my dev manager was trashing rife today in front of
jboyens. Just came to my office and said "I had no idea JR had
worked on Rife!"
lol
hahahaa
tee hee hee
hmm, who has an osx box that they can run a simple test
program for me?
http://spluch.blogspot.com/2007/06/kid-with-no-eyes.html
is this going to make me nauseous?
no
maybe I dunno
Does any one have Sun Studio?
yes
Can I paste some code here?
erm
no
~tell hacked_kernel about pastebin
hacked_kernel, at http://papernapkin.org/pastebin
Can you compile this code and tell me whats the output http://papernapkin.org/pastebin/view/583
lol
okay, got it working in glassfish, now I gotta actually make
the mbean interface not blow goats
bokay, got it working in glassfish, now I gotta actually make
the mbean interface not blow goats/b
hacked_kernel, fool me once....
anyone around whos familiar with Linux?
lots. But why not ask in #linux?
~tell markomarky about ask
markomarky, The Ask To Ask protocol wastes more bandwidth
than any version of the Ask protocol, so just ask your
question.
this is insanely offtopic, but i'll try and help
I know GNU/linux
is that the same thing?
Yes
he probably saw r0bby's logo and peed his pants
my logo?
r0bby made a logo?
GNU is the OS, linux is the kernel
I didn't design a logo
oof
not you
umm
that's all [krustofski]'s work
no
umm
the scary one
i would _NEVER_ make a logo that girly
I like that logo
I'll admit though, it's smooth
I was being silly
cybereal
all the logos ive made: http://beerwench.net/logos.html
I'm well aware of the mess that's called linux
http://exadel.com/web/portal/download/esp35?p_p_col_pos=3&have_read_and_agree=true&p_p_mode=view&_EXT_10_INSTANCE_xMlg_struts_action=%2Fext%2Frepository%2Fview&_EXT_10_INSTANCE_xMlg_file_name=ExadelStudioPro-4.0.4a-win.zip&p_p_col_id=column-2&p_p_id=EXT_10_INSTANCE_xMlg&p_p_state=normal&p_p_action=1&p_p_col_count=5
not r0bby, cybereal
i love that.
hrm. lots of noise. no java chat.
hey, that was javachat. pointing out how screwed up some
vendors' websites are.
not you, eidolon
8^)=
we're talking about the ##java logos that [krustofski] has made
and how disturbing they are...it's semi related
this http://javachannel.net/wiki/pmwiki.php/ChannelRegulars/Cybereal
which do you like?
let's take this all to private message
that'd be great
let's take the entire channel to pm
+q
as the wiki says "cheeser - What does any of this have to do
with Java?"
yeah!
that sends to the channel
but it's a pm!
[krustofski]: I like #4
You know what I'm running into now? The fact that JBoss
treats MBeans as lifecycle-managed entities... and glassfish treats
'em as if they're only MBeans
but they're all pretty funny
What is that line sticking out of pr3d4t0r's head?
an apple stem?
was supposed to be a plastic fallice
"phallus"
i rarely use that word :p
looks like a cheese doodle
needs some balls
where are these logos again?
for pr3d4t0r, that would be 3
[krustofski]: well, if only you had one.....
http://beerwench.net/logos.html
hehe
I like the wiggles one
it makes me think of Sou|cutter
jottinger, is that going to be an issue? MBeans are not
managed on starupt / shutdown cycles of the app?
heh, it will be for what I want
well, and that's what we're doing here.
remember, I want db4o started with the app server... as an
mbean, I will have to crank up jconsole and start it
manually
exadel's download site is pig slow.
in jboss, mbeans are lifecycle-managed
i see.
is there no lifecycle hook in glassfish?
glassfish has lifecycle objects but I prefer portability
all you need to do is poke the mbean.
yes, yes, I know
so make a glassfish-specific jmx signaller.
~classload
vezzoni, I have no idea what classload is.
~classloader
vezzoni, I have no idea what classloader is.
of course, if I have a lifecycle bean, there's really no need
for an mbean
yes yes
I can have the lifecycle bean itself start and stop the
server
just like i'm doing now.
but noted.
Does Windows 98 have home directories?
when we start playing with Bid Bad BEA, it's going to get
interesting.
I'm just thinking about dependencies
*looks at BlueLaguna*
right, which is why I'm trying to figure out the "right way"
now
bright, which is why I'm trying to figure out the "right way"
now/b
"You're specializing in a 9 year old dead OS."
I'm not specializing in it
but I don't want to ignore it
that was a joke. reference to a movie you obviously haven't
seen.
yes you do
why not?
you really do want to ignore it.
it's as unsupported as they get.
hell, even MS wants to ignore it
no, ms wants to ignore WFW.
"Bob, the first and second Access product lines, Windows
9x..."
WFW?
and WinME
yes, see? you've never even heard of it.
kids these days.
Windows for workgroups.
Ah
and WinCE! (One of my alltime favorite OS names...)
aptly named.
I had Windows 3.1
PH/UX is probably my next favorite
Heh
anyway. avoid win98. and assume nothing about it. because
it's brokedness is vast.
CE, ME, now we are only missing NT to build something...
:-)
badump-bump.
re
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
indeed.
sorry for my ignorance, what does that "re" mean?
rhat sent me the official offer today :P
finally.
means 'hello again'
did you reject it?
no
it took VERY long to work it's way through the approval
processes
but everything is good now
are you going to reject it?
why would i reject it? it's my dream job.
What's the best swing component to use for a paragraph of
text?
...
i'll be getting paid to maintain the OSS project i started in
the first place
among other responsibilites, of course
where's the love in that?
i love it.
not as much as i love you though
which project?
cbrock, which bit did yous tart?
MVEL
http://mvel.codehaus.org
a href="http://mvel.codehaus.org"http://mvel.codehaus.org/a
huh. okay. i thinkt hat's amost too high level for me to
understand what it does
it's like the expression language in JSP or OGNL
yeah, the site is way under-maintained
neither of which i've ever touched :
it's being used inside JBoss though
a lot of things are used in jboss
eidolon, think of it as scripting for java
although MVEL has seen some interesting general scripting
uses, such as in the i-Screen testing framework, etc.
OGNL wasn't hard to beat speed wise was it?
lots of non-web stuff actually
Is it being used in Jboss other than the rules engine?
blah, blah, blah
:P
not really. but there wasn't much else to compete against.
yeah
MVEL is also a much larger language than OGNL
it sits on the cusp of being a full blown scripting
language
I don't think you can say "cusp" without being either a
pharmacist or really pretentious
get out of "old coot" mode
never!
anyone doing screen scrapes with it?
~pastebin
at http://eugeneciurana.com/pastebin
oooo, ponies
http://www.mvflex.org/mvelsh/MVELSH2.jpg
showing the beanshell-like shell thingy
(notice the auto-indents!)
integrating in the scripting framework in the future?
we are already BSF-compliant
we have all that stuff
someone else maintains that, though
not me
http://eugeneciurana.com/pastebin/pastebin.php?show=2393
is there a safer way to read a short *.txt file into a
String?
I just hate you all
"And, in conclusion, I hate you all."
ugh, damnit, I need to reinstall was 6.1 on this zlinux box
because someone installed 6.0 on accident
uugh, damnit, I need to reinstall was 6.1 on this zlinux box
because someone installed 6.0 on accident /u
is there an easy way to convert a string like "123" to an
int?
I would hate you less if you didn't suck so much.
i changed you to Happy Rainbow Pony Mode
to read it in as an int
what the hell?
This IS happy rainbow pony mode.
that is a bad way...
Integer.parseInt()
You should see me in true curmudgeon flight.
1) available and ready can not be used in any sane way, forget
that they exists
nice
it scares even me.
I know - that is why I'm asking
he can make a republican weep.
2) use readFully if you need to fill a byte array
3) use a Reader if you want to read String data
okay, i'm gonna get some coffee.
bbiafew
4) specify the character encoding when you read/write file
data
(that means
FileInputStream-InputStreamReader-BufferedReader)
character encoding doesn't matter
only A-Za-z0-9
there is no easy way to use a reader to read a full file...
you can use BufferedReader and read a line at a time or you can use
nio and ByteBuffer+CharSetDecoder to fill a CharBuffer...
s/CharSetDecoder/CharsetDecoder/
also note that reading a full file in memory without first
checking the size of the file is something that will cause your
program to get OOME
it is a less than 1KB file fore sure
and it only contains a-zA-Z0-9 characters
homework?
no - Level Editor for http://mobilepicross.sf.net
note that the checks I advice you to add are really simple to
add
the *.txt files contain the level data and are in a *.jar
file
(one String per line) is what you want. Coding that is
trivial...
the files only contain 1 line
then use BufferedReader and read just one line...
so I do BufferedReader blah = new BufferedReader(new
InputStreamReader(getClass().getResourceAsStream("/picross/lvl/Level"
+ level + ".txt"))); ?
tried it?
um, what? I'm just trying to find out what of all the things
he mentioned I'ma do... :P
since you know that you have ASCII, then specify "US-ASCII" as
character encoding
I'm not familar with readers, so bear with me
I am a J2ME programmer usually, and J2ME doesn't have this stuff.
So please apologize that I don't know all the fancy stuff J2SE has
to offer - I'm glad when I can get Swing to do what I want
grrrrrrrrrrrrrrrrr.
exadel studio pro doesn't support jboss 4.2 either.
"I'm not happy, Bob. Not. Happy."
so I reduced http://eugeneciurana.com/pastebin/pastebin.php?show=2393
to http://eugeneciurana.com/pastebin/pastebin.php?show=2394
and this is supposed to work better?
well, it DOES work and I have no clue, so I guess I'ma trust you -
thank you
IDEA seems to support jboss 4.2.0.GA
that's because IDEA rules.
yes
~pastebin
at http://eugeneciurana.com/pastebin
http://eugeneciurana.com/pastebin/pastebin.php?show=2395
I tried to compile rmi-example and run server
I got this error message. rmiregistry started
is my computer settings wrong
hi, I install the sun jdk6 in my kubunto7.04, and I need to
add .jar but I don't know where! someone can help me??
alright.
i am. right now. downloading IDEA.
find out what all you wankers are going on about.
IDEA++
tell henrik_s__ about classpath
henrik_s__, The class path tells Java or the compiler in which
jar files and folders to look for classes. Use the -cp/-classpath
run-time options to specify the class path. Also see
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html
and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
hmm
i wonder if i'm reading this wrong
Is there a good interface for java to the GNU GSL?
ok thanks
could you recommend a good book concerning network
programming for Java? By network programming I mean client/server
communication...
so the installers on both jboss-ide and exatel are looking for
javax.servlet.jar in the jboss directory, and not finding it. maybe
i'm missing a piece of 4.2.0?
because that seems sort of important.
eidolon, supply your own..
~tutorial sockets
[krustofski], tutorial sockets is http://java.sun.com/tutorial/sockets
what protocol?
well i'd rather not hack up the distro. it sounds like either
i have the wrong configuration / distro of jboss, or the installers
for the IDEs are looking for a file that doesn't exist in the new
release.
unix network programming by stevens is a good start for
basics
gets you and going on the bsd tcpip stack
eee, IDEA is a swing app. i'm so used to SWT.
IDEA doesn't work with Beryl.
heh
SWT!
is there a way to replace the default java webstart loading
window with something else ?
suppose I wonna write a game and I wonna creating something more
appealing to the eye
seems like there is...
http://www.curious-creature.org/
and google.com of course
Splash screen support is in JSE6 isn't it?
jws also has its own splash screen support
although, yes, it sucks for branding
since it says java all over it...
*shrug* think of it like flash or something
http://img517.imageshack.us/img517/425/desperatewhoresxm8.jpg
maybe I should create a very small loader class which will
show a splash screen while loading the rest of the jars
Reply asking them to send the mascot down to chat with you
offline
Sou|cutter, flash doesn't have an annoying splash screen
so no, can't think of it like flash
oberonc, JWS itself supports a splash screen
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#206
is it safe to assume that when performing something like "int
asciiVal = (int) someChar;" where someChar is definitely ASCII,
that asciiVal will *always* be a valid decimal corresponding to the
ASCII alphabet?
Alconquian, sounds about right... that's what ascii
is...
tee hee hee
"If i run this ascii conversion on a char, will i -always-
get an ascii value?"
b"If i run this ascii conversion on a char, will i -always- get an
ascii value?"/b
eidolon, on an ascii char, no less
no, one time in a thousand it will open a black hole and suck
you bodily into your computer.
bno, one time in a thousand it will open a black hole and suck
you bodily into your computer./b
well, I guess I'm getting out of whack thinking of various
charsets -- I assume it is possible I could use a charset that
defines decimals 0-128 as something other than ASCII
I will stop trying to confuse myself
then that charset isn't ascii!
128 is an ASCII value
er, isn't
8^)=
ascii is a charset
oops, minus one
0-127 boyo :
then there's extended ascii...
8^)=
with the last bit...
http://rafb.net/p/uVHKvW10.html
// can you guys see anything with that code that may cause client
data sent to it not get printed? it pretends as if it isn't
receiving the data, but if i use telnet, it works
so what is chr(150) then
isn't that just extended ascii?
afaik the whole upper register is charset / platform
dependent.
heck, char(191) used to be a solid white bar when i was
programming on TRS-80's.
ah, trash 80s
no, dont' ask why i remember that.
okay, which of you weenies said that IDEA supported jboss 4.2?
making a new module only shows me a picker for 4.0
you did!
did not!
thanks
it was me!
ewwww!
cheeser :P
tee hee hee
ubuntu--
did you fix karma, to reduce abuse?
i couldn't work on javabot last night because someone (ok, it
was joed) broke the repo.
are you going to impelemnent a grace period, where-as someone
can only effect someone elses karma points once within a set
period.
?
could be.
there's a few bigger fish to fry first
:~(
hi again, I cant find the classpath of my java....
any help?
it's hiding?
I just don't know where it is
under the bed?
or in the closet?
are you gonna help or not?
tell henrik_s__ about tutorial
henrik_s__, tutorial is http://java.sun.com/docs/books/tutorial/
It's something you have to specify on the command line when
using javac.
but I have the .jar files, I only want to know where to put
them
Once you figure that out, you may want to move to Ant to save
yourself a lot of hassle.
~classpath
The class path tells Java or the compiler in which jar files and
folders to look for classes. Use the -cp/-classpath run-time
options to specify the class path. Also see
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html
and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
^
I allready see that...
or I need to specify the path to my jar files? is that I need to
do?
Try it.
hi
doesn't work
"javac -cp /home/hs/j2ssh/j2ssh/dist/lib/ SftpConnect.java "
and it can't find some packages...
ok, it work
looks like I need to put only a jar file
I think you need to put ...lib/*
hey, what persistence layer is the simplest to use?
simple? jdbc is simple.
it's a lot of work but it's simple.
requiring the least work
the simplest, imo, is java serialization
just serialize your data to disk
oooh. good call.
*and* it requires the least work.
hehe
then you work your requirements up from there
could writing to a file be simpiler?
simpler
do you need a database? some sort of querying capability? do
you know sql? etc.
bdo you need a database? some sort of querying capability? do you
know sql? etc./b
pfn; i want sql. i'm a programmer. i just didn't work with
java in a long time - i want to use wicket for the web and so i'm
asking for something for the persistence layer.
why?
because i can't see how to get it to work with Jboss
4.2.
sopel next question then, do you want to use sql, or do you
want to use an or mapper
usopel next question then, do you want to use sql, or do you
want to use an or mapper/u
the plugin is up to date, but adding the J2EE extension to
the project, it only shows 4.0 support
is there any function that will join strings from an array/list
with separators inbetween?
use Eclipse!
pfn; whatever is simpler. i want the relations in the DB done
for me basing on the objects
it's 'free'
not in the JRE, no
sopel then you don't want to use sql then
i do use eclipse.
sopel you should say so
sopel saying "whatever is simpler" gives me the impression you
don't know much sql
StringUtils has a join method that will do that
use JPA and hibernate
or JPA and toplink
but it requires the commons-lang
pfn; i know much sql.
then yes, I would say use JPA and (implementation of
choice)
what's that?
it's a jar
you gotta add to your classpath
for me, using sql is almost always simpler
ah, no go then
guess I'll have to do it
I mean, yeah, there's basic "crud", but still, it's not so
difficult to just crank it out
simpler != better, though
as with anything, you have to weigh the tradeoffs
what about databinder?
i found it on the wicket site.
cheeser, there's many reasons why, for me, I can't use stuff
like hibernate
sure.
and that's the case sometimes.
does IDEA have a way to take a constructor and create private
fields for every parameter?
using an orm is a much more difficult path to follow when you
have a preexisting schema...
it seems to be able to go the other way, but i just don't think
that way
e.g. using hibernate isn't going to make my use of stored
procedures any easier
i agree
hibernate supports stored procs...
and there's a big impedance mismatch between my relational
schema and my *desired* domain model (at least if I go with it
using a typical OR mapping)
simply knowing how to make a decent data model makes it a
pain in the ass too
cheeser, yeah, but it doesn't make it any easier, which is
the problem
JdbcTemplate brings a big benefit
whereas using hibernate doesn't for me
ugh
I hate screen scraping
get spring transactions, handling of jdbc finally { }, unified
exception tree
waz sucks any way you look at it...
yep, especially for this site
javascript just adds to the fun too
great arguments for the "semantic" web and against ajax web2.0-y
shit
I like your comment on the wiki. It made me laugh.
sans javascript I could make this work with scRubyt in no
time
Is there a way to get a reference to an object in the call
stack?
try scraping an ajax page
Is there an API in java to reference the callstack?
not in the JRE
someone put that there but I have been known to say
that
cheeser, I am scraping HTML + Javascript, not a web guy but what
would be different from AJAX
if class C is derived from B and B is derived from A and inside
C you call super.method() does it go to B or A? and can you force
it to go to A?
waz ajax doesn't store content in links, etc.
all three have a definition of method() but A is an abstract
class
waz they're stored in javascript links
s/content in links/content in conventional links/
It's goes to B, then to A, and A would be created first of
all of them.
right
Parents before children.
ajax makes in memory changes to the DOM in the browser. so what
you get from a GET is idfferent
I'm dealing with content in JS
yeah
can i force it to go to A?
so, you not only have to parse the html, but you also need to
evaluate the html
in order to get the true contents
right
and the js
s/evaluate the html/evaluate the javascript/
that's what I'm doing
which is the suck
Well A will be constructed first no matter what, but then B will
be constructed (and must be) before C can be constructed.
jesus h. christ
in HttpServletRequest, there seems to be two methods
isRequestedSessionIdFromUrl() and isRequestedSessionIdFromURL()..
the first is marked deprecated in favor of the latter. but, doesn't
URL violate sun's naming convention?
psyko_x, you can only call the immediate implementation of
method()
why does PriorityBlockingQueue.iterator not return an iteration
over the sorted order
OK that part makes sense to me but the thing is that when I
call method() from C, I want it to use A's method() and not
B's
psyko_x, can't do that
damn
breaks encapsulation
http://blogs.pathf.com/agileajax/2006/04/ajax_google_and.html
and
http://www.manageability.org/blog/stuff/screen-scraping-tools-written-in-java
guess i need to redesign this
thx
you could probably do it in C++ with pointers right?
maybe
wait theres something in the reflection api called
"getSuperClass()". u think I could call that inside C and invoke
C.getsuperclass.method()
thats so crappy
the manageability page tools are all pretty useless when ajax is
involved
hit that long ago
psyko_x, what are you trying to achieve
are they? i just pulled up that list. i hadn't looked over them.
was hoping some of them might help.
no
C, C.method() invoking A.method() doesn't make sense
screen-scraper.com is the best solution I've found to date
java based, decent way to rip out some scrapes
manageability is all about 'free' so his lists for stuff are of
limited use
yea forget it. I need to fix my design...its just terribly
organized atm
really? screen-scraper.com works well? is it a library or
what?
Damn it would have solved my problem. I found new
Thread().getStackTrace() returns an StackTraceElement [] but
StackTraceElement does not give a reference to the object itself.
It would have been nice...
it's a proxy written in java
free version isn't bad
and only $500 for the pay version
an http proxy? htf does that work? the proxy runs and
periodically scrapes some content?
we're chasing a contract that'll be about 20 million a year in
revenue
yeah, confusing until you try it out
hmm. i thought u don't have to define methods when creating an
abstract class....just like interfaces
they call it a proxy but mostly the proxy function is to
record some sessions to start building your code
that's gay. why is it an http proxy. I don't need EAI, I just
need to scrape some sites. damn accountants and their
reports
in production it's not doing proxy stuff
oh it has to be declared abstract duh
the proxy part is for during dev
it all looks very tedious
when is screen scraping not tedious?
for pure html you can do it amazingly easy with scRubyt, but add
ajax to the mix and it gets tediuos
if I have installed SUN JAVA 1.6JRE and SUN JAVA 1.6 JDK,
could java command have problems??
is there any static race condition detectors?
I was just expecting a library, maybe a dsl.
screen-scraper.com looks like a freaking db. anyways I suppose I'll
check it next week if I have time
if you're doing straight html there are much better
solutions
though no DSLs that I know of in the java solutions
scRubyt is a nicely done DSL
I'm doing html.. though what is screen-scraper.com for if not
html?
it'll do html but also javascript
~tell meeper about STFU.
meeper,
http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=warning
~tell meeper about question
http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=mono_triste
which I require
~swing
tieTYT, swing is a windowing toolkit for Java. Tutorials:
http://java.sun.com/docs/books/tutorial/uiswing/
and http://www.swingwiki.org/ also
check out ##swing
#web would deal with DTD questions right?
~tell lintlock about dtd
lintlock, I have no idea what dtd is.
#xml more likely (i think that is ar
ound, still)
I installed SUN JAVA 1.6JRE and SUN JAVA 1.6 JDK, could java
command imcompatible or theres no problem??
no
would you guys happen to offer support aswell?
who knows
we don't know what your problem is
CDocuments and Settings\Cyber\Desktop\JGuiDjava JGuiD
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
:'(
just realized i havnt checked the forums
yeah im there whaly that was a dumb question by me
has anyone here ever worked with JPF before?
sounds like you buggered your java install
reinstall jdk/jre whatever
is it advisable to remove all prior versions of java before
installing a new one?
nope
I keep a bunch of versions handy
even in Windows I don't think you need to
but not positive
Does the DTD reference in hibernate.cfg.xml (or wherever) rely
on being able to reach whatever address is listed there all the
time?
I compile a java file with a -cp option, and it compiles, but
when I do java, doesn't run...
javac -cp /home/hs/j2ssh/j2ssh/dist/lib/j2ssh-core-0.2.9.jar
SftpConnect.java
java SftpConnect
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sshtools/j2ssh/authentication/SshAuthenticationClient
I already try java with -cp to
too
add . to your cp
could explain better?
~tell henrik_s__ about classpath
henrik_s__, The class path tells Java or the compiler in which
jar files and folders to look for classes. Use the -cp/-classpath
run-time options to specify the class path. Also see
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html
and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
javac -cp /home/hs/j2ssh/j2ssh/dist/lib/j2ssh-core-0.2.9.jar:.
SftpConnect.java
run that
return the same error
Anyone know where I can find tutorials on creating linux console
applications using Java?
well... when I make the java, should I put the -cp too?
yeah
that's where I meant actually
it work, but I was hope some output... other problems
lol
~tell gcbdm about firstcup
gcbdm, firstcup is a beginner's tutorial for getting started
with Java available at http://java.sun.com/tutorial/getStarted/cupojava
~tell gcbdm about rbi
gcbdm, rbi is http://java.sun.com/docs/books/tutorial/reallybigindex.html
great tutorials.
GNU/linux console will probably mean jcurses too
no, i don't think he's asking about that
Thank you. We took Java in school, but never reading from
what the user wrong in the console
i want to make a grid-like graph in swing. What layout
manager would be good for putting the grid together?
what the user *wrong*?
ah gridlayout i'm sure
tieTYT, if it's an image, I would probably just draw it
I mean arguments.
tieTYT, instead of using components
that's a good idea but doesn't work for me. I'm gonna place a
bunch of JLabels together and draw on the jlabels (it's not
possible to be between jlabels for my graph)
waz in windows you don't need to delete prior versions
either
http://eugeneciurana.com/pastebin/pastebin.php?show=2397
example on how to use Scanner
pfn, didn't think so but wasn't sure
I'm pretty windows iliterate these days
heh
nice word to misspell=!
does anybody know if there is a smooth way to get all the
information of all the objects which are created from some class
using java.lang.reflect?
Altair^: tutorial
er nevermind
drugs.
~reflection
r0bby, reflection is http://java.sun.com/tutorial/reflect
^^ helpful
would any of you classify yourselves as geeks ?
why?
no geeks here!
is jsp in this channel?
#jsp
cheers
some people see it as a complement
or not, empty :P
Thanks, I'll take a look.
apparently
you still haven't answered why?
it's very simple
yuh - why?
Is using Scanner the most efficient way?
yes, it's actually the easiest
curiosity
lol, my question generated loads of general talk but no
answers
Thank you. And I'd imagine if you want to pass parameters you
would need to read args
Tip: don't prematurely optimize your code
Altair^: no - I believe there isn't
you'd iterate the args array, yes
Thanks, I'll play a bit with it.
args.length would be the number of arguments passed
no. it's: args.numerOfArgumentsPassed()
Mispelled like that?
yes, without the b
i don't know why sun did it like that
always thought it was weird
lol
heh
is it me, or do Linux GUI's have the worst font kerning
ever?
font kerning?
Hmm
cbrock, I think so, yeah
yes, font kerning.
space between characters, iirc
That is weird
args.length would also work however since it's an array
hey happy_broccoli
or should
did you ask here?
good font kerning has good, dynamic spacing between the
letters.
cbrock, that would be in a non-fixed-width font
Guess I'll have to play with it since usually you do
'javathing -abc nnn'
but yes, you're right
linux apps have shitty font kerning
it's not you
all my graphviz diagrams suffer from it
i literally don't know how people function in linux.
http://paste.hanhuy.com/graph/tomcatClassLoaders
example, check out the se in server
they tweak
or sh and re in shared
and tweak
you look at font rendered in OS X or Windows XP/Vista and
then look at it in a Linux app
and tweak
and you just SENSE something wrong with the Linux app
My fonts look fine.
heh
i'm sure they do.
the fonts look fine to me too, except for the shitty
kerning!
cbrock, well, linux is fine when it comes to fixed-width
fonts ;-)
the individual letters look marvelous!
yeah, even Swing is half-decent.
my next desktop will probably be a linux box
you'd think after like a bazillion years of development, that
GTK+ or Qt, or whatever would get decent font rendering
Which distros have you tried?
You can use any linux font you desire for your
applications.
it's not a matter of the font itself
cbrock, I don't think it's so much a failure of rendering,
but a failing of the font definition
linux is just a poo desktop OS.
everyone needs to come to terms with this
Yup. You just enjoy your proprietery software
cbrock, it's helpful if you have screenshots illustrating which
apps in particular you're having problems with
I do.
ubuntu isnt that bad
INTit, yeah, I'm tempted to run kubuntu
KDE Gnome
every single application i've looked at since I've installed
Ubuntu
Gnome***
##politics - ###politics if it gets really flaming
cbrock, screenshot and pastebin
gcbdm, huh?
Ubuntu uses Gnome as desktop environemnt and Kubuntu uses
KDE
gcbdm, I know, that's why I said I'm tempted to use
kubuntu
Go for it, very easy to install
I honestly don't know the difference between gnome and kde
except that kde has ksnapshot, which is handy
and gnome has no equivalent at all
which basically makes it "garbage" ;-)
I suppose I could just install all the kde requirements and run
ksnapshot in gnome
bI suppose I could just install all the kde requirements and run
ksnapshot in gnome/b
the developers on Linux dond't care about font rendering, since
it all looks the same for bitmaps - and who would write code with
anything but bitmap fonts
Or use something which runs from the console
also, in some applications the font rendering seems half-decent
nowadays
gcbdm, ksnapshot copies to the clipboard
gcbdm, there is no console app that copies to clipboard
then again, if it looks bad, there is no way for layman to know
what to tweak
only thing i miss about windows is the games
~pastebin
at http://eugeneciurana.com/pastebin
i guess for most of you thats not a factor though
INTit, dual boot or vmware
dual boot
~pastebin
at http://papernapkin.org/pastebin
but my windows installation has screwed up so i havent used
windows for awhile now
~pastebin
at http://eugeneciurana.com/pastebin
~pastebin
at http://papernapkin.org/pastebin
fuck
ive got windows & linux installed on seperate hard
disks
papernapkin won't accept my paste
and pr3d4t0r's doesn't have image
i've therefore lost interest in this excercise
hey wait
i think i made it work
i cant repair the windows disk as recovery console
crashes
what's wrong with the disk?
cbrock, http://paste.hanhuy.com/screenshot
too late - you've lost interest now
cbrock, copy to clipboard alt-prtscreen and paste
No, but console app saves your screenshot
...
gcbdm, I know, but I don't care for that, I'm not looking for
that usage
i know how to take a screenshot
cbrock, no ... click the go button :p
it's not working
says nothing available for paste
see. linux is dumb.
there's a screen grab app
but it saves to a PNG
cbrock, I guess vista also behaves differently... damn pos
cbrock you copied the image to clipboard or the file?
png is bad?
no. png is good.
cbrock, ksnapshot will grab to clipboard
fuck
i'll use my webserver
for christ sakes
http://www.mvflex.org/mikes/screenshot-ubuntu.jpg
do you have a specific nit in this particular image?
yes, the rendering of the font Sans... everywhere
What's a good encryption to use for a small string that can be
placed in the URL?
cbrock, it seems a little overspaced, but besides that, it
looks about right
rot 26
cbrock, it's not as bad as the graphviz image I pasted a
little while ago
mele-, use a one-time-hash
like?
uh, like md5, sha1, fips-180, etc.
one way hashs
well, both one-way and one-time, to protect against replay
attacks
okay, now the same in another shell
problem is someone can always generate a hash and fake all of
the parameters
mele-, simple, the hash contains a secret only the server
knows
so no, someone cannot generate a hash and fake the parameters
e.g. H( secret : param1 : param2 : param3 )
True
without secret, no one else can fake the parameters
SO you're saying take the key and generate a hash on it with an
extra key
I don't know what exactly you're trying to accomplish
http://www.mvflex.org/mikes/screenshot-vista.jpg
secure a request to a server and ensure the parameters are
untouched
cbrock, again, my only real complaint is that the characters
in linux are slightly overspaced, but otherwise even
cbrock actually, if you look at 'partner' in the upper right in
vista
that slightness is super annoying
it looks noticeably worse than on linux
that's an image
not rendered text
where it says "partner accounts" ... that's a JPEG image
nice.
mele- ssl?
I don't think you get that sort of typesetting problems using
latex
i'd take a screenshot on my macbook too, for completeness,
but my girlfriend stole it.
Call the 5-0
re
jottinger!
hey
hang on to that girl!
until she gives it back at least
She's clearly smarter than you.
http
i got officially hired by red hat today.
congrats!
will be working in the JBoss Group
of course.
even better
in the SOA group of the JBoss Group, more specifically.
so JBoss AS is of no consequence to me
lots o stock options?
so no
yes, actually
then JBoss AS is of consequence
hahaha
yes, of course.
i meant in my duties, and what products i'm working on
now you're my biotch!
yeah, I'm just messing around
why is that?
because most of the JBoss Group is my bitch
hrmm, another jboss person to call you and yell
hah
i will give you no such pleasure, satan-spawn!
Oh, you will
yodayou will./yoda
is rikard doing anything these days?
haha
rickard did exactly what I thought he would
I tried to explain that to Bill at JIA but did he listen?
Noooooo
so we have a script that plays jedi mind tricks "I'm a new
kind of system, you can talk to me just like a real person. For
example if you want to pay your bill you can say 'I'd like to pay
my bill with my credit card'. What can I do for you?" and amazingly
often the response is "I'd like to pay my bill.... Wait, that's not
what I want!"
HAHAHAHA
~waz++
waz has a karma level of 87, jottinger
hahahahaha
ROFL
I've done that
although I don't think I've gotten that far... "I want t..
err..."
how do I cast the contents of an arraylist as int?
ArrayList x=new ArrayList(); x.add(1); int i=x.get(0); returns a
type mismatch error...
incompatible types (same same)
is there a way to cast the contents of an arraylist to int, much
like can be done with string using toString?
x = new ArrayListInteger(); x.add(1); int i = x.get(0);
brilliant!
~tell mzanfardino about autoboxing
mzanfardino, autoboxing is
http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
you might want to read that also
(or am I misunderstanding your suggestion).
are you using java 1.5 or above?
Integer is a java.lang class so you don't need to import it
I've been burned by this question before, as I'm still new to
java. My project souce is 1.5, if that's what you want.
sou
~tell mzanfardino about generics
mzanfardino, generics is http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html
Generics tutorial: http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
FAQ: http://www.angelikalanger.com/GenericsFAQ/JavaGenericsFAQ.html
I like that last link in particular, but those all should sorta
explain the syntax I gave you
(about sax how do i create a ContentHandler that relays the
stream to an InputSource?
as i'm not really into SAX, i'm just using it to connect a
resource of an XMLDB to a JAXB unmarshaller...
thank you for the help. I had mistyped Integer as integer.
Once resolved it works fine.
good stuff
indeed! I'm learning something new with Java everyday!
so... where was I
I reread Pat Frank's "Alas, Babylon" today
stupid dsl is in the shitter today
Also, does anyone know how I can run a Java program from a
Linux console without having to do 'java classname'?
So judt doing 'classname' in the console would run my
program
write a shell script that does java classname
there's a way to setup an execute association with .class
files..
Ah, didn't even think of that.
bin_misc or something..
you realize that you aren't running your program when you use
java, you're running the java VM, which takes your bytecode and
executes it
Didn't know that
gcbdm, add BINFMT_JAVA to your kernel
Hi guys, I have a customer whis is running ojdbc and tomcat.
Every single instance uses about 180MB of memory I was wondering if
there's a trick to optimize this because it doesnt scales very
well. Any idea? thanx in advance
Ah nice, thanks
nettie, why are you running multiple instances
pfn It's not me, I just logged it on this box, and I'm trying
to understand what's actually going on ..
hey
evening
is anyone acquainted with JADE ?
Java Agent Development Framework ?
all I can see is that ther're something like 30+ ojdbc.jar
running
why are you running 30?
are you on linux kernel 2.4?
nettie, instead do ps axf
pfn yes the box runs 2.4
it's a rhel
3
fanook:java posse is pretty boring
nettie, then it isn't 30 processes as you think they are
as much as i love hearing portly balding programmers with a
brittish accent drone on about web application
frameworks
it's a decent java news podcast. they recently finished putting
out some of the javaOne talks
and honestly, there's really nothing else out there
Check out the TSS video tech briefs.
They are a lot more fun.
can't listen to those at work
The latest one has a frog in it.
It's video.
BRITISH not Brittish. _;;;
are those dynamically created ? and how much memoery you think
they'll consume? I'm sorry but I dont have experience on Java and I
was just trying to help if I could.
make_heap that sucka'
yes, i got that from your first use of the word 'video'. but i
still can't listen to it at work
Why?
is your boss named adolf? thats a pretty strict policy - no
music while developing
from my experience most places allow it
then again my experience is one place
Progressive blocks most streaming media. i listen to podcasts on
my ipod
Ah.
ohhh, yeah streaming is one thing
You need a tunnel.
they dont like that because it slows down the network
I'm connected from my office right now, through a tunnel to
one of my servers.
Fanook, works at progressive?
haha
There are many things policy doesn't let us do. Like connect to
IRC.
i mean
pr3d4t0r, that's what ssh is for ;-)
So I just use my server.
Yup.
i dont have the cojones to ask if i can use irc
ahahah the cojones
they dont explicitly forbid it, but it seems wrong
they disabled downloading files to my local machine too
I run SSH on ports 80 and 443.
what a "spaniard" way to say it...
so i'm forced to use IE6 too. don't feel like testing whether i
can install a good browser
what do mexicans say? huevos?
im sure pr3d4t0r will correct me
heh
man
Güevos.
pfn, exactly.
eggs haha
pfn, which sounds nicer! :P
i prefer "balls" thank you
testicles if im trying to sound scientific
Mexican and Russians use "eggs".
Pelotas in Spanish also works.
Tompiates.
Talayotes
Bolas.
Tanates.
im sure theres no shortage of diry jokes at the breakfast
tables all across mother russsssia
Tamagos!
:P
Noooooooooooooooooooooooo!
Kaaaaaaaaaaaaaaaaaaaaaaaaaahn!
Fanook, what a sucky computer to use then...
la tuya...
Fanook, you should just reinstall linux on it instead
;-)
this means 0 offence to Fanook hes obviously a very talented
programmer, but around here insurance companies are sort of a joke,
they are like the fall back employer if you cant get with someone
else
they are ALWAYS hiring ANYONE
'here' is where?
midwest, MN/WI
oh
oh, and i think we're still on win2k
whats_in_a_name, I've never heard of that connotation
~tell whats_in_a_name about code.
http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=cat_0009
that's not an insult, that what this was :P I need the
experience and i couldn't find a java programmer job
my c0dez are teh 1337
s0 leet you cant see them
I just downloaded MySQL Connector/J and tried 'java
BaseTestCase.java' to simply see if it works, I know *nothing* of
java, and am trying to get a web sutie up and running, but am
having MySQL Issues
Exception in thread "main" java.lang.NoClassDefFoundError:
EscapeProcessingTest/java when I try any of the test
apps
classpath + package issues, i bet
~tell Egonis about firstcup
Egonis, firstcup is a beginner's tutorial for getting started
with Java available at http://java.sun.com/tutorial/getStarted/cupojava
Egonis, your web suite should have instructions on how to run
it
It's Open-Xchange and is horribly documented. It says -- try
running the admin app, if that doesn't work, test with MySQLAdmin
-- a non-java app
I am confident that it is a java issue on my linux
server
Egonis, well, read the firstcup page first
then come back
will do, thank you
Egonis, another hint, .java files need to be compiled
a final hint, you do not include the file extension when you use
the 'java' command (except with java -jar)
a game of clue?!
pfn, the main problem is that the ojdbc eats a lor of memory
and it starts swapping.
lor == lot
nettie, why are you using ojdbc? what is ojdbc,
odbc-jdbc?
I am using gentoo and noticed I don't have jdbc-mysql
installed -- however the app I am using has a jar file for mysql. I
am going to try the jdbc-mysql module installation and see what
happens
Egonis, given your current problems, that makes no
difference
because they're running oracle on the box
Egonis, read documents before installing garbage
nettie running this java program and oracle on the same box? I'd
be more willing to bet that oracle is eating up all the
memory
not tomcat
well they're runnign the world on this box
that's mostly theproblem
they're running apache, tomcat, orable, mysql 3.23, mysql 4.0
qmail
mailman
ehehe
has 2 GB
of ram
wow, they really have a clue how to run their box don't
they...
it's not really loaded
exaclty
that's the point
it's like a all you can eat
totally unsecure
mysql ports exposed to the world
anyway
major cleanup needed
problem is that when I see what's running I see 30+ ojdbc
processes having an RSS of 180MB each
they're not ojdbc processes
the rest has a basic memory usage footpring
and they don't have an RSS of 180MB *each*
footprint
what you see is an artifact of threading on linux kernel
2.4
damn you're right we're on 2.4
totally forgot that
Exception: com.mysql.jdbc.Driver
Egonis, pastebin an entire transcript of what you're doing
Egonis, giving single line pastes like that are not going to get
you any help