i am a bit confused on the documentation on springlayout it says an edge can only have one spring but does that

On an unrelated note, I'm really puzzled by IDEA's error messages. It seems to complain about all sorts of spurious compiler non-errors.

i'm sorry, but i don't know about either
however, alphaomega_wrk , i don't think that book will be helpful right ? the book page says it's only for "Java/J2EE architects and developers who want to gain a deeper knowledge of the Spring Framework and use it effectively"

DaBonBon, download Mastering EJB 3.0 from TSS
take a look at it
and if you like it, buy it

but EJB is J2EE ? i mean, what exactly is J2EE ? a collection of technologies, like ajax ?
but EJB is J2EE ? i mean, what exactly is jboss j2ee ejb hosting ? a collection of technologies, like ajax ?

EJB is part of JEE

DaBonBon, forget about the title

?

just do what i told you
you won't regret

sure
can you explain ?

The first snickering was at the comparison of JEE and AJAX, mainly because both annoy me. They're rather different classes of irritation though.
The second snickering was at the notion that listening to andresgr is a good idea.

DaBonBon, now it's time for you to make your decissions…

lol

your whole future will depend on this decission

Spring is a competitor of EJB ?

will you listen to DRMacIver and suffer years of pain?
or will you listen to me and become in the new Architect-Master-Of-Web-Services-And-SOA of the world?
:P

Editor does not contain a main type, what's that?

Maybe there is a big hole in the market, somebody should write a JEE2 for Dummies explaining all the techniques, Spring in one chapter, explaining the IoC patterns etc, EJB in other chapters

andresgr, have you ever produce webservices with Axis ?

so the reader wil be jack of all trades but master of none !

Yes, and thats what you want, because then you can choose what you like best and master the thing you want to use

well, but is there such a book currently ?

chnarr, why do you ask? (yes)

I'd like my axis webservice to throw a NestableException from Apache commons, is there a way ?

i don't have a clue dude…

cause I can only use javabean compliant custom Exceptions
never mind

i don't
:P

tanks anyway :}

Not what I'm aware of, and I don't really need it currently

all you need is online, use a printer
or try oreilly's

You must define currentVersion in your POM., waht's that

You are using Maven 2

no

yes
….where do you get this msg ?

i'm also getting "Editor does not contain a main type"
when I try to run the file that has main in it

IDE ?

eclipse

You must define currentVersion in your POM." is typically Maven's
is it runtime error msg ?

yeah, thats a Maven host issue

no it's when I try to run 'maven jumbojar'
that's unrelated, but i want to get my class to compile
why is eclipse throwing this error?

so your using maven 1, thanks
anyway it doesn't change a lot

I developed this project using jdk1.6 and deployed it on svn, now i'm trying to open it with a config of jdk1.4

tag

Does the main look like this? "public void main(String… args)"?

refer to Maven documentation on how to write project.xml

ok nevemrind, seems it works now.

using pointers with java is easy, download and install jPoint package v.0.5, it installs hooks that over rides the JVM's handling on memory allocation, the syntax is different though, than c++.
not many know it's around, it's a young project.

hi all. is there sql host specification. if it is. where can i get it ?

let's see
~sql

Zaph0d^, sql is Structured Query Language, a language for querying, updating and defining relational data and is used in most modern database systems. See JDBC for relevance to java.

hm.

google for jdbc

but i don't need jdbc . i need sql spec

about wich database ?

~google raxelo sql specification ansi

I guess the factoid 'transitioning' might be appropriate:

sql commands change for each databsae.

Zaph0d^, transitioning is a stupid way of saying "moving"

All databases implement a part of the SQL 92 specification I guess. Plus SQL is a standard, not database specific.

~google sql+specification+ansi

I guess the factoid 'the google principle' might be appropriate:
questions that can easily be answered by googling deserve incorrect and/or misleading answers.

auch

since 92

all database implements SQL92 only in teory not in the fact.

A major part is implemented.

DELETE command change for each all.

is is like html with Navigators

WHERE on DATATIME field change
and so on

AFAIK, it is the same for MySQL, Oracle and MS SQL.

is not true
MSSQL does not support DELETE FROM

what ? if they're sql92 compliant they're sql92 compliant .. they may support alot of other prop. junk but thats it aint it ..

Oracle has functions like UNION and MINUS, not all databases have those

but as u like

I didn't say it supported, I said they all supported 'DELETE * from TABLE where SOMETHING;'

MS sql "SELECT TOP 10 " does not exist on Oracle and MySLQ

SELECT TOP is not in the SQL 92 specification.

no MSSQL "DELETE * FROM " GIVE ERROR

then top 10 aint sql92 i'd venture to speculate guestimate and conclude ….,,,,

actually, you could do "Select… limit 10" in mysql

god

I know

SQL2003)

""PostgreSQL is very close to SQL92 compliance

I am just saying that all databases implement a major subset of the SQL standard. Of course they are free to implement their own…..

(so not quite)

indeed they are and do .. and its our fault for using the "else they implement" and still think its write once run anywhere ..

max what are you trying to do?
limit skips in sql server?

fr example Application Server like Glassfish have more DatabaseEngine that depends on wich database use to store EJB, not only for driver to use.

to delete all rows

you can do that in oracle as well

got me interested, so here
http://64.233.183.104/search?q=cache:uKxAILFAFLoJ:www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt+SQL+92+ansi&hl=en&ct=clnk&cd=2&client=firefox-a
(it's a google cache - the original page's server host is not responding)

I'm explaing that raxelo have to tell us wich databse like use.

there should be a "strict" option on our bases ..

i mean. there must be some abstract spec for all databases - some minimum to implement

So How does EJB Container managed persistency work ??? does it use standard SQL which is to be recognized on every DB or what ?

Exactly.

indeed

do enterprises and companies today use J2EE ?

indeed

EJBContainer use specific sintax for each datbase.

so it's pretty famous, CyTG ?

indeed

because alphaomega_wrk says that J2EE is dead but for springs

as jvm spec - general, but implemented by different companies

select top limit * from (select top skip from tablename order by id asc) as T order by id desc

some webframework spring hibernate

there is a minimum to implement if you want to say you support XXX (whatever XXX is). but no one say they do. they only support 90% of XXX

that does a limit skip in sql server

weblogic

Zaph0d^: i want to find XXX) )

what's a web framework ? and which is the most widely used one ?

join #sql

im not the only one that says that

just pasted the link 20 lines in that way ^^^

fuck if i know .. i tend to be a backend guy

i am joined to java, linux, sql hosting and mysql, but none strict answer ))
Zaph0d^: thanks a lot

Still most used is Struts (but please don't start there) others are JSF (Sun standard), Spring MVC, Struts2, Wicket, Tapestry, GWT

i found something here http://www.wiscorp.com/SQLStandards.html

~web frameworks

Nowadays the popular choices are JSF, Struts, Webwork, Tapestry, Stripes, Wicket, Spring MVC, Grails and RIFE. See http://www.virtuas.com/articles/webframework-sweetspots.html for short introductions to each. Also see
http://java-source.net/open-source/web-frameworks for an exhaustive list.
Nowadays the popular choices are JSF, Struts, Webwork, Tapestry, Stripes, Wicket, Spring MVC, Grails and RIFE. See a href="http://www.virtuas.com/articles/webframework-sweetspots.html"http://www.virtuas.com/articles/webframework-sweetspots.html/a for short introductions to each. Also see a href="http://java-source.net/open-source/web-frameworks"http://java-source.net/open-source/web-frameworks/a for an exhaustive list.

is Grails a Java framework ?

rife .. heh .. griefe

Also try Matt Riable's presentation on Web Frameworks, its pretty good

ruby on rails != web framework? or is that just a lit of java web frameworks?

Don't forget, its a Javabot ;-)

ah i've heard lots about stripes

chnarr, yes, and very interesting one

so is there one obok or one tutorial that teaches it all .. Spring + Hibernate + some web framework ?

Zaph0d^: wow. thanks a lot. i missed your cached link. thanks !!!!!

You do? I never heard anybody using it. At work here we use JSF and MVC the most, now we're going to do the first Wicket project

seriously though, I have no idea what's the fuss about ruby and ruby on rails.

ask for popular tuts : try Java PetStore

so J2EE is basically Spring + Hibernate + some framework ?

Or Apache Tutorials

Zaph0d^: thanks !

wrong , but you can say Spring + Hibernate + some framework may be J2EE compliant

http://www.w3schools.com/sql/default.asp

ah i see

bbl

thanks a lot. Zaph0d^ helped with cached link above ^ . thanks a lot you too !
gnari from sql helped too with new spec http://www.wiscorp.com/sql_2003_standard.zip
thanks all ! good luck

IMO J2EE is nothing really, its just a fancy tag for using frameworks to make a webapplication currently (yes I know its not, sue me)

ouch i got disconnected
so is there one book which teaches it all ?

No, and there never will, there are just too many frameworks etc
But there are examples online that get you started up

hi all!

but something to get me started in j2ee .. i think after that i'll learn spring etc on my own

Just start wiring everything together, start with Hibernate, add some Spring support and a web-framework (maybe even just JSP's)
Probably best is just to read the seperate books/tutorials/websites

ok, but what tutorial do i start out with ?

Once you get familiar with what it all does you'll figure it out
https://betterpetshop.dev.java.net/
http://code.google.com/p/projecttrack/

Petshop application using Tapestry, Spring and Hibernate

Just look at some examples, Hibernate website has examples, Spring has examples, and so do all the web frameworks
Those two are integrated examples, everything together

ah ok, so you suggest that i learn using examples and docs, not specifically books ?

I started reading Hibernate In Action to learn Hibernate
But examples made it much more clear

but hibernate still requires some previous knowledge right ?
hibernate is a persistence .. persistence of what ? :o

uh. java objects?
it's an ORM. it does what every other ORM does.

Persistence of objects, if you have a Java object, something like a Person (with name etc) Hibernate helps you map it to a database

but .. well .. doesn't serialization do just that ?

~orm

yoR, orm is Object Relational Mapping, see http://en.wikipedia.org/wiki/Object-relational_mapping

ah .. not to a database

But it is still possible to serialize objects to a blob wrapper in a DataBase, but its a bad Idea, though it works
:p

is it possible to subclass java.awt.Graphics?

Don't give people BadIdeas(tm)

does anyone know about on device debugging with j2me?

in common architechture, a JavaBean correspond to a table in Database (for mast cases)

You mean on the handheld? I've done some debudding in the simulator

on a mobile phone itself. I cant figure out how to set the ODD up

So if you set a new value for one bean's field, the change will be propagated to Database in the corresponding (mapped) table
so persistency is the way you manage this
sorry…but can you tell me why it is bad, to your opinion ?

hey. I need to add 3 jar files to my classpath to compile my program. How do i do this in linux? its simple in windows. anyone know?

You can't search inside blobs in the database, using blobs is VERY slow (you can't load just one because there is only a blob, not a key)

take care kids. Andres goes home

edit $CLASSPATH

ok, also isnt there an option with javac?

or java -classpath whatever….since it works the same on all os

ok so i sompile, then when i run it i incldue the classpath :-)

or javac -classpath whatever….since it works the same on all os

thanks

Its either java -cp of -classpath

for both java and javac

ty

~tell wij32 about classpath

wij32, 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

~tell me about Grails

chnarr, I have no idea what Grails is.

~Grails

JLearn, I have no idea what Grails is.

Bleh

No so Intelligent
No Idea about it's talking about

"Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen." - Einstein

No Idea about what it's talking about*

what would you say is the best wysiwyg app out there
not talking eclipse or beans plugins

about programming ?

ok, thats done. one more thing. My code is fine on windows. now when i compile on linux, i have two Semantic errors. 'no accessible method with signature :containts(java.lang.String) was found in java.lang.string

there's no method containts()

my type thre. in the code it is contains(

maybe you should pastebin the *actual* error rather than retyping things

Wow, just found out SVN is case-insensative… never knew that

Is it the same JDK version ?

it doesn't matter. *contains* has been there since 1.0

yeah its the same

yep, better pasting mesasges rather than retyping

yeah doing it now. 1 sec

we don't know if you misspelled or not ?

http://pastebin/dd6a5bd0

especially because so many newbies assume they know what's important and what we need to see so they cherry pick what to put in channel.
dammit!
cut and paste the url. quit retyping shit.

im having trouble copying and pasting with xterm. sorry./

what is the Class of a class?

what?
Class is a class.

lol
lo llol

obj.getClass().getClass().getClass() and so on

http://pastebin.com/dd6a5bd0

SomeClass, Class, Class, and so on

If implemented, the class object of the instance impl

~javadoc String.contains(*)

cheeser, please see java.lang.String.contains(java.lang.CharSequence): http://java.sun.com/javase/6/docs/api/java/lang/String.html#contains(java.lang.CharSequence)

thanks

what about the actual code
something's not right in your code

what ?

~tell chnarr about show us

chnarr, Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.

~pastebin

http://rifers.org/paste

ehm cheeser dont you mean wij32 ?

yeeeah…to wij32
~tell wij32 about show us

wij32, Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.

sure. whatever.

http://pastebin.com/dd6a5bd0
oh and code.

that's the same fucking url.

~cheeser

JLearn, cheeser is a crazy fella…. http://img523.imageshack.us/img523/941/cheeserjk7.png

~javabot

http://javachannel.net/wiki/pmwiki.php/FAQ/Javabot

with maven how can i say to include and exclude certain files when creating a certain jar

http://pastebin.com/m5f46b613

cheeser, you where wrong, contains method for String is since 1.5 :p

arg that will be it then.
java –versoin

seems logical

shit head

haha

when trying to compile the class helloWorld in helloWorld.java, i get: error: Class names, 'helloWorld', are only accepted if annotation processing is explicitly requested

put the command you're using on the pastebin
~pastebin

http://pastebin.stonekeep.com

the command, or the code itself?

both
but the command especially

this.dfid = dfid;
loadData();
loadMessageDigests();
loadStorageDescriptions();
[B[C[D[B[D[B[Ca[C this.dfid = dfid;
loadData();
loadMessageDigests();
loadStorageDescriptions();

cheeser, http://pastebin.stonekeep.com/635

use "public class helloWorld { … "
javac helloWorld.java
~tell asbo about coding conventions

asbo, coding conventions is http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

why does it have to be public?

~public

cheeser, I have no idea what public is.

you suck

A tool is only as good as its user. Tool.

~accesscontrol

cheeser, access control is http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html

the short answer is, it just does.
read that link for the longer answer.

alright, thanks

"public" is not necessary though recommended.

for a "main" class, i think public is req'd

I guess the only requirement is that the main method should be public static void.
And accepting a String array.

but it lives in a class
and that class must be visible.
at least, iirc.

it compiled ok with the public
s/with/without

it'll compile, sure.
but will it blend? er, run?

aye.
shrug.

Yes, it will run.

do you have to be registered to join this channel?

yes
does that class actually compile?
the case is all wrong

yeah, i've been reprimanded already :p

system vs System?

System not system.

right, i had to correct that

how to make a bigger font for JOptionPane.showMessageDialog??
thx a bunch

i come from slacker languages like vb6 and php

hello there

hi

does anyone knows how to disable Java Derby DB startup at Sun Application server's startup?

you might try #glassfish, too.

;0340@80

glassfish is the opensourced SunAS, iirc
but i don't use either of those atm

So what is it Cheeser, JBoss :P
s/Cheeser/cheeser

~pastebin

http://papernapkin.org/pastebin

what is what?

I mean what you use if not Glassfish…

jetty, atm

~atm

chnarr, I have no idea what atm is.

at the moment

At the moment I gues

is jetty a webapp server ?

0 and it's an ivalid value, i don't know if it is clear but there are some method to avoid

thought it was a language

~jetty

cheeser, jetty is a java servlet server, found at http://jetty.mortbay.com

grat
great
As an opensource app server, I only know tomcat / JBoss

Any reason for picking Jetty over Tomcat?

we're embedding it.
jetty's easier for that.

tomcat sucks!

Sheesh.
Absolutists…

what about resin
(forgot Iknew resin)

Resin is an app server.

yeah

We were talking about just web containers.

ok

has anyone ever seen Sun's VM actually recover from an OOM?
either permgen or heap

pffff
~OOM

I guess the factoid 'cleanroom' might be appropriate:
chnarr, cleanroom is to write something without looking at the source of something else. There is also a zero-defect methodology with the same name.

oom = "out of memory"

ok

I'm pretty sure that if you get an OOME, your JVM is trashed

humm no, I think server restart is precognized

Permgen is so annoying, its clearly a bug in Suns VM, other VM's don't suffer from it (JRockit for example). So if you are using JBoss and deploy often, you'll surely get a permgen often…swicth the JVM to jrockit (or something else)

you're right and wrong

Explain

permgen leaks are usually the result of hanging on to a classloader reference longer than you should

The problem is really that the JVM doesn't have very good support for unloading of classes.

it will once that CL goes away.

so whether you're using jrockit or sun jvm, leaking classloaders will eat up your permgen

So it's very easy to create such leaks.

which is "never" in most cases.

Yeah, I'm not saying "You can't unload classes". I'm saying that the unloading of classes isn't very good.

agreed

and the #1 cause of that afaict is permanent static references to classes from other classloaders

it's the conservative nature of the VM
it also does release mem back to the OS once it has it.
which I really think it should.

No idea if the module system is going to make a difference to this. Probably not.

well, fragmentation is the issue in that case

no more so than any other application faces.

sun's jvm can't handle fragmentation within its pools iirc

Ok, but why does the Sun VM give permgen errors a lot and others won't?
Just because the fragmentation?

perhaps more aggressive collection of Class instances

Weird… I'll never inderstand it, but anyway, if you suffer from it, use jrockit, works like a charm ;-)

morning

An excellent article on Permgen. http://www.thesorensens.org/?p=14

hi
how do i pass a primitive type by reference, i can't wrap into a Double/Integer since these are immutable, so what's the best way to do this?

There is no pass by refernece in java. Its all pass by value.
Just return the modified number.
int i = modify(j);

well thing is, i want to return different types all at once
so, if i understand this correctly, if i have an object and pass it into a function, i create a copy of the object instead of just taking it's pointer/reference?

You pass the reference by value in Java.
So any changes made to the object are reflected in the original object if the object is not immutable.

isnt that the definition pass by reference? copying the reference over instead of the whole object?

you still around?

but there is no way, i can make a primitive into an reference type object and pass it by ref, other then create a dummy object for it, so i can change the values

torno

I need to add contrib non-free to my sources list for jdk1.5?

None I can think of at the moment.

that's a pity for such a "simple" thing

A real pity

which is the standard way to make an enterprise application execute some code at deploy to store some stuff in some global context like some configuration parameters?

init method of a Servlet…

pass-by-reference is often interpreted to mean that the called procedure can change the *variable* that was passed to it

What _exactly_ are you trying to achieve?

or with Spring

in Java this would mean that after foo(bar) returns, bar might have a different value than before the call - this is not the case even if bar is a reference variable

yeah, but i dont want to initialise these configuration parameter each time people call a servlet

it will refer to the same thing before and after the call, bu the thing it refers to might have changed

init method is called one and only one time

for each servlet?

…in servlets

init() runs only once. Only when the servlet is first loaded in memory. The consecutive client requests just spawn a new thread running the service method.

right

well, im trying to get something like this getFoo(double &a, int &d){ a = 10.0; d = 19; }

ok

where & means they should be references

but it is executed for each different servlet, right?
so i should deceide in which servlet init() method put my code?

a) pass in something you can change, or b) return a composite value

Once for each servlet.

ok

I think Spring framework let you define global properties also

I told him that. But his requirements are somewhat weird.

i want to change both a and b inside and both have different values and have to be used separately later on

Good morning

let suppose i have a class which parses a configuration ascii file. i would like to execute this class methods once for the whole application, and store my parameters in some global object reachable by every servlet

good evening
GRT +1
GMT +1
:p

wouldn't that make it afternoon?

nearly
yes actually

Morrowyn, redisgn that method or use a wrapper object for the 2 values depending on what exactly you are trying to accomplish..

very simple

well a and b need to be calculated, and i get them from 1 calculation, so calcing it twice is wasteful
hmmm, dummy class it is then

Write a servlet, declared in web.xml, then in int() method, do …some code… then application.setAttribute(key,value);

then wrap them in a AB object ..

yeah, that was my fallback

oh..
thanks a lot!

im thinking thats about the only thing you can do about it..

Spring has full utilities to perform this nicely

application.setAttribute()?
is it a kind of context?

pretty annoying, to create simple datastructs for this basic thing, seems java wants you to put everything in classes
oh well

Morrowyn, ofc java wants you to put everything in classes

I think you shoud get an application object, which is yet default implmented in jsp's
must be similar in a servlet

let me see

my thought is that you are trying to create some sort of util method?

yeah, i now understand, but sometimes, having just data is nice, without the class

ok
i discovered i can set in the deployment descriptor some init parameter i'll get in servletconfig
is it right?

Yes. But ServletConfig is only for a particular servlet not teh entire application.

oh..

section in web.xml , isnt it?

.setAttribute(key,valuObject);

do this in your init() method

oh thanks!

retrieve it anywhere in your app with getServletContext().getAttribute(key) in a servlet, or application.getAttribute(key) in a jsp
just define your servlet properly in web.xml, nothing else

thanks! let's try..

you may call it YourAppInitServlet

hey guys, ok i have my classpath set and its calling the correc java file. It compiles correct. now when i run it i get the followng error:
http://pastebin.com/d975411a

you need a classpath set to run stuff, too.

oh right
so when i compile with javac i need -classapth and also when i run java i need to -classpath?

yep

I suppose this lib (commons-httpclient) is only required at runtime, thats while you compiled, but faild at runnning
wij32 ^^ thats what I told you : for both java and javac
but sometimes libs can be only required at runtime

yeah, it wouldnt compile unless i included them in the classpath.
'Exception in thread 'main' java.lang.NoClassDefFoundError: TestApp
TestApp is the name of the java file

dont forget comma

comma? after the jar includeS?

-classpath .:path-to-sources:somejars MyMainClass
comma if this is where your sources are

in maven how do i specify that when creating jar only to include certain class files and not others

ah thanks! working!
thanks all

maven 1 or 2 ?

2

in your dependency tag

i basically want to create a custom jar with certain class files and resources in it; it's partially working but all class files are included

well "scope" is the trick

i can paste my file if you want

oh for classes ??
make filters exclude…

yeah i.e. i only want the interface not implementation

In a J2ME application - is there a way to hold the internet connection open, rather than having to connect to the network everytime a request is made - Awfull behaivour if using GSM

http://rafb.net/p/r4fA8Q49.html
i already did excludes and includes but must be doing something wrong

anyone seen pr3d4t0r recently?

jtiner —————

good question

:p

what other irc network has a java channel

Maybe it's time to split into several modules

HAH! what a scrolly list that is

a client module and a service module

if you are around, hit me up

was that for me? I only have two files; one interface and one implementation

i haven't seen him for about 20 minutes

Narada:yes…or maybe there's a simple way…did you think about putting your impl class in test sources

no; because it isn't a test source

guys, I'm currently in mississippi using dial-up which maxes out @ 2.6kbps, i have no dev tools and a bunch of machines that need linux installed on them - i was wondering if someone could volunteer to help remedy this for a few bones in return
guys, I'm currently in mississippi using dial-up which maxes out @ 2.6kbps, i have no dev tools and a bunch of machines that need linux installed on them - i was wondering if someone could volunteer to help remedy this for a few bones in return
bguys, I'm currently in mississippi using dial-up which maxes out @ 2.6kbps, i have no dev tools and a bunch of machines that need linux installed on them - i was wondering if someone could volunteer to help remedy this for a few bones in return/b

Narada, I think I found it

awesome; let's hear it

use maven.jar.excludes
you know how ?

nope

in build / plugins / specify maven-jar plugin / properties / maven.jar.excludes = some classes ….
you get that don't you

How do you write file properties? (ie. the Author field on an mp3)

But I'm not sure, though its in Maven spirit

~tell mdkess about io

mdkess, io is http://java.sun.com/tutorial/essential/io

:F

trying now …

anyone here used the httpclient from jakarta project before? Im wondering if i can supress the console messages it spurts out,its getting in way of data i actually want to see.

configure log4j

ty ^

log4j.properties
or maybe commons-logging.properties….or may it be as xml files also

is this via my code or from shell?

no…got it

I'm not following this IO stuff… I can't find anything about file properties.

now create a log4j.properties file, refer to documentation google, and put it in the classpath
file properties ??? do you mean properties file ?

I want to write an app to tag all of my mp3s.
I'm not sure how it's done.

OK
well Ithink it's part of mp3 format

Oh, damn. That'd probably make things more tricky, eh?

you'll have to write in files header, something like this
so for this , read in binary way, and work

clearly http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html shows there is a parameter called excludes but where to specify it

try one thing, read first bytes as Strings and see what it's got, maybe you'll lurn some syntax to mp3 tags

Oh, good plan.
Thanks

welcome
first thing would be to open it with text editor, and see

how do you get when the [x] has been hit on a window? window events Closed and Closing trigger any time the window is destroied.

Or you could look up the MP3-format description/protocol, it should clearly state where what is in the file

expecting java to have mp3 tagging support built-in is a touch retarded.

no its not, Java pownz the world1111EXCLIMATION POINT EXCLIMATION POINT

you need help

!

*adds another tally under people to suggest help*
ofcourse i need help, thats why im here *points to my question above*
:P

the [x] on a window is a platform event, which IIRC triggers close window.
if you're talking about a jframe.
also, you might try #swing.

… theres a seprate room for java gui?
that just seems slightly asanine to me.


well i'm sorry you feel that way. truly. hurts me deeply.
we shoudl reorganize the entire net JUST FO RYOU NOW!

dude, that would be hott. then i wouldent have to waste time with all the stupid crap.
better yet, why stop at the net?

lkike, oh, people who come on a large channel and criticize how it's organized.
yeah, that woudl suck.

REORGANIZE THE WHOLE WORLD!!! BWAHAHAHAHAHAHA!!!

what's the regex that doesn't match the files which end with .txt extension?
that doesn't match the files that don't end with .txt extension?
sorry.

heh, though, i must agree, doing GUI is almost another language. :P

you mean matches everything except those files with a .txt extension?

hm ".*\\.txt" or something. Make a test harness to check.

hmm has noone built a custom jar with custom list of classes in there?
with maven i mean?

matches only files with extension .txt

ant buildfiles let you specify the contents of a jar file with rules.

mavis beakon?

in this case not using ant
heh

oh. okay *shrug* that's what ant does
(amongst other things

ant++
maven–

JLearn, how can I negate it then?

I think I've gone insane o.O

really?
i guess it's just a case of learning it; i'm fairly new to it

blah. BEA workshop doesn't come with svn support built in

IDEA++
8^)=

heh
BEA seems pretty much in bed with eclipse.

which is too bad
but IDEA's appserver support is quite good.
i got jboss running in no time and I'd never used jboss before.

which is the difference between getServletContext().getAttribute() and getServletContext.getInitParameter()?

ok, so some enlightenment on PermGen leaks with jbossas and Sun's JVM vs. BEA's

I guess init parameters specified in the XML file. attributes are the ones which you set in the application.

oh ok! thanks!

turns out that JBoss sends JMX notifications for certain ClassLoader situations

hey eidolon

yo.

Sun's JVM buffers said JMX notifications, thus retaining the CL reference
other JMX implementations do not buffer, so don't suffer

craptastic!
so we shouldn't use sun's JMX impl?

If Jetty was embeded into another server app and that server app had an active class running and you wanted to get information from that active class and you could modify both a jsp file and that running class, how would you figure out how to access information from the running class from the
JSP? (I know this may seem like an odd question)

no buffer, no suffer - that could be a campaign slogan
~tell Luke_S about javadoc Object.getClass()

Luke_S, please see java.lang.Object.getClass(): http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()

?

How about reversing the condition?

How do you guys work with sounds, do you load all soundfiles in one class or the ones you use to the current class you use them in?

~javadoc StringBuffer

stickto, please see java.lang.StringBuffer: http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html

do someone know something about the latest version of JUnit?

like… what?
It's version 4, wooo

junit.org

ok!
thank

what's the regex for "doesn't match the files that don't end with .txt extension"
bwhat's the regex for "doesn't match the files that don't end with .txt extension"/b

do you mean "matches the files that do end with .txt"?

yup

I have already posted that.

\.*(^\.txt) or something like that

use ".*\.txt$" I guess
there is a regex cheatsheet on www.javachannel.net

thanks it works

red-litchie: You don't escape the first dot.
It stands for any character.

err, yeah, as I said "something like that"

i am a bit confused on the documentation on springlayout, it says an edge can only have one spring, but does that mean for example if i have two components and each of their north edges i put a spring to the north edge of the container that only one of those will stay?

no,I think it refers to something internally …
(the underlying implementation, if you were to directly make Springs, which I believe you can)
but I'm not 100% positive. However, I have used multiple constaints on an edge, so that can't be it …

AMcBain, hmm, cause i am getting weird behavior and I thought that it might be that, but i guess ill experiment more
i don't know then this is strange

weel, is something not sticking to what you think it should? Becuase an edge cannot have two *conflicting* constaints. (pulling the same edge east *and* west)
well*

i don't think you can just throw in a bunch of links, even if they arn't conflicting because i seem to add some things that shouldn't effect other springs and it does

well, you need to sort out what you added and why, and comment them out one by one until you figure out the offender. Then work out why it breaks previous behavior.

anyone use statsvn here?

ill post it in just a bit, i am almost 100 percent positive there are no conflicting

hum. anyone know weblogics default admin password?

should be weblogic/weblogic, iirc

nope.

eidolon:

im lookin for some gui to start using java, can you recommend some?

admin/Britney

heh

(ok , jk)

~tell luisgrin about newbie ide

luisgrin, newbies shouldn't use IDEs. http://weblogs.java.net/blog/editors/archives/2007/02/you_better_get.html and http://weblogs.java.net/blog/gsporar/archive/2007/02/tools_that_do_t.html

~tell luisgrin about netbeans

luisgrin, netbeans is a java ide with gui builder - http://www.netbeans.org/

see.

teralaser++

i really don't agree with that newbie IDE thing

luisgrin, eclipse on netbeans are probably the 2 most popular ones

newbies shouldn't use -overly complex- ides.

s/on/or/

ala, dont' start with eclipse.

Soon I have to learn how to hand out real karma … you write ~teralaser++ , not just teralaser++ afaik
+you
blah.

OH!

~teralaser++

teralaser has a karma level of 19, JLearn

it worked. just… took an odd amount of time.

Here you go

woohoo! gg default passwords

thank a lot

thankau ! I choose to show my gratitude with a cute video of a hippo http://www.youtube.com/watch?v=G3NueKXS6dk (no not the singing one)

Hello. To write an xml file, should I create an XMLOutputFactory?

I tend to use jdom for outputting xml… but it's been a while so I don't recall the specific class I used

I use printwriter

jdom has a formatted output function that generates readable XML.

It is not easy to find tutorial on jaxp

you are hardcore :P

hi, have a couple of very simple java questions hope someone can help with. First must a class ALWAYS have a non parameterized constructor?

no

BAH
~weblogic–

weblogic has a karma level of -1, eidolon

http://pastebin.stonekeep.com/636

heh, what'd it do?

note line 5.

no

lol

thanks,

AMcBain, i beleive my suspision is right, check this out

so it can't start the console without the admin-level user, and you can't set the admin user without starting the server?

heh didnt know there was a console?

nonononon

if someone knows an up to date tutorial on xml with Java, I would be pleased

i'm annoyed at the URL format.
which is WRONG

and second, a derived class, must it have a constructor with the same parameters as the base class but call super(argn) or can you make it automatically call the bases constructor?

i have it up and running. that's just ugly

oh, that
bah

AMcBain, http://rafb.net/p/2odgbE67.html uncomment the line and watch the effect!

pretty sure it's not even valid

i'm tempted to just drop the JENA ear file into th deployment directory and watch things burn.

I'm filing a bug

AMcBain, because you add the link that is commented at the moment the previous is lost, thus the reason the first usernameField goes to zero, i beleive

see you later

AMcBain, not to mention that the username display space doesn't strech to accomadate the password, even though there are no constraints on the left edges and the left edges of the container

they flip! heh, there has go to be a reason.

AMcBain, i believe it is what the docs say, only one spring per side

Why do file URIs on Unix start with "file://", but on Windows they start with "file:" ?
Why do file URIs on Unix start with "file://", but on Windows they start with "file:" ?

they start with file:// on windows too, or else they're broken
I've seen e.g. file://Cfoo\bar

its file:// here atleast
on windows

I see no problem using the "negative trick" from last night …

Oh. Xalan is broken.

file:///c:/foo/bar
that's what bilbo baggins hates!

well, I tried other lotr refrences, and Javabot only seems to hvae one for 'ring' and it's not even close …

hmm. I assume BEA has a standard 'drop ear files here to deploy' dir? i'musing wlserver_10

dont be so sure
~SOA

jchauncey, SOA is http://java.sun.com/javaone/general_sessions5.html

that url is bad

see http://en.wikipedia.org/wiki/Service-oriented_architecture

~no, SOA is replysee http://en.wikipedia.org/wiki/Service-oriented_architecture

Okay, dmlloyd.

thanks
~SOA

see http://en.wikipedia.org/wiki/Service-oriented_architecture

mm. SOA.

my bureau cheif is on a SOA binge
imho it seems like a complete waste of time but im just a lowly programmer

just gotten into a project investigating SOA implementations
it's interesting

BOOOMMMM!

ive seen no real world applications built using SOA yet, and the BEA guys that came to demo their stuff to us wouldnt show me any either.

"And now, we start working on porting a jboss application to weblogic."

the possibilities sound cool
but it'll take time to be any good

Oh, but it's all standards compliant, so there should be no problems…

you definitely cannot be in any rush to use it

it's a bad sign that BEA's quickstart takes so long to start

Hello. "Javac -version" does not work. Did I something wrong?

haha

"And so it begins." : http://pastebin.stonekeep.com/637

try "java -version"
not "Java"
bwahahahahaha

sorry "javac -version"

the logger is easy to fix.

at least that's easy to fix

"java -version" works
thanks

Good lord.

see you

eh, i knew this pain was coming

I no longer have to use JBoss.

what i'm mostly worried about is how to make my, basically, standalong build.xml process work with bea and their workshop.

me either!

i could totally see us dropping jboss completely and going full time weblogic.

why?

no need to run jboss.
i picked it cuz it was free and available and the like
but there's no reason to support 2 different platforms

weblogic costs money, use jetty or tomcat

tomcat++

or glassfish

our customers have PLENTY of money

so

heh, then so be it

should I uninstall Java 5 before installing java 6?

primary customer is in the fortune 100.
secondary customer is also

eidolon, so charge them money for YOUR services, not bea's software

we do

more to it than that

charge more

fortune 100s tend to see jboss' support structure for what it is

i'm a platform architect. i'm designing and researching, the folks i consult for are building the app on my design and selling / supporting it to said customers.

yeah, that redhat is a joke
whatever
youssef, if you need more hard drive space

your design, huh

yep

usually publically traded companies put in stupid requirements like "commercial software with commercial support"

I may have both installed?

youssef, sure

hey, cmon, i designed JENA.

jboss can be commerically supported

can I make java 6 the default compiler?

yes

what?
seriously, what's up?

and their commercial support kinda sucks
nothing, just playing

k

how much support do you really need?

if you knew what he was doing, you wouldn't ask that
a server is NOT the variable he wants to deal with

jottinger, fine. just playing devils advocate

well, in JBoss' case, it's the village idiot's advocate

wow

harsh
CLANG
mood.

I need you to start asking me stuff all the time

eh?

Yeah, I can't bill people without a reason

i can!

I guess I COULD but I would almost feel bad

heh. did you ever get around to invoicing ${client} ?

cashing checks helps

yes

only a year late?

something like that
shaddap, it started as a favor to someone

fire up azureus and oracle sqldevelor and amarok with it
and the beryl rain plugin

gah

you really hate your desktop, huh

it's my windows machine. of course i hate it.

the JAAS callback mechanism was designed in such a way as to make it as difficult as possible to propagate callbacks across serialization
I like how all the callbacks implement Serializable - and yet, it still would be useless to serialize them

there's a lot to be said for JAAS, hardly any of it good

heh

the older weblogic ide before they started using eclipse was an even bigger memory hog

i bet. the workshop stuff in eclipse is actually rather elegant.
at least, so far.

well, i should say "is a bigger memory hog" since I still use it

whaley, is it jbuilder-based?

no clue

i know there was some heavy jbuilder weblogic integeration a while back (before i started using eclipse webtools fulltime)

so here's an interesting challenge. for jboss, for my log4j stuff, i do 'import org.jboss.logging.Logger'. how do i make this portable… i suppose i'd need to have a Logger class available on the classpath in both environments, eh?

use logn!
or java.util.logging like you should have in the first place

O.o

if I have String.matches("regex"); how do I make that regex ignore case?

there's some reason i wasn't ugin java.util.logging.

because older jbossas doesn't support it

heh.
see?

it goes to stdout

stdout is oaky.

which then gets logged at INFO in the main server log

You need to use the Pattern and Matcher classes in this case.

or ERROR
I think it's ERROR

I know how to use them, just hoped I could do it in one line.

*nod* i'm actually not worried about that. i'll try and change a few classes to use java.util.logging and see if that helps in the transition.

at one point I wrote a little SAR that converts JUL into log4j calls
you may want to do the same
I wanted to get that into AS, but nobody listens to me at jboss

errrr. jul != log4j format?

yes, this is what I'm saying

you realise you could always write an org.jboss.logger.whatever package

oh i realize that.

or just use jboss common logging

i'd rather convert to something portable (JUL, say), port the entire app and settle in on weblogic, then redo it.

or sl4j, or commons-logging
or …

heheheh

I have just downloaded and installed java 6. But when I write "java -version". It tells me that I have "1.5.0_08"

hmmmmmmmmm

~tell youssef about path

i think i ahve commons logging already.

youssef, path is the series of directories an enviroment searches to find an executable, such as the 'java' or 'javac' programs. To use a JDK, the JDK's 'bin' directory needs to be on your operating system's PATH.

Or run all three!

gotta run em all

thanks
I am using Ubuntu

try #ubuntu

thanks

it's a distro issue, not a java issue

fwiw, i think you need to use the command update-java-alternatives
*i think* been a bit since I touched ubuntu

sounds like frickin pokemon.
"Gotta get 'em all!"

that was the joke I was going for, yes

i wonder which is more efficient performance wise.. to have 20 simple ejb's, or just one complicated one ?

yea that sounds like the problem.. didnt know about the update command though.. had to do it manually before… tnx

if this is, per user ?

one complicated one

i see

depends on what the ejbs are doing.
a lot of small ones lets the container manage them well.
and allows easier clustering.

for communicating with a client

is this a full ejb? or a servlet?

theres a non-full ejb's too ? Interesting.

Some haven't had enough to eat.

Indeed.
I havent ran into that distinction yet..

anyone know off the top of their head how much a simple one server weblogic install costs?

see you

$toomuch

hi

hello

~hi

Hello, dfr

duh
~tell msetim hi

tell nick about factoid - you missed out the 'about', dfr

. . .

How can I make java wait for a time ( sleep ) ?

sleep();

~javadoc Thread.sleep(*)

whaley, please see java.lang.Thread.sleep(long): http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#sleep(long)
whaley, please see java.lang.Thread.sleep(long, int): http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#sleep(long,%20int)

whaley, I will need use thread?

no …
it means the the current (default) thread will 'sleep'.

well, it's a thread that does the sleeping…

dfr, I my case I would like to wait X time to continue the execution of my application

yes, so you tell your current thread to wait X time to continue the app
and that's done via calling "sleep" on the current thread

dfr, ohh right :-D now make sense

what's the use of a static class
?
a static inner class

so I guess the best way to facilitate remote client authentication with JAAS is to import a CallbackHandler from the client side, rather than exporting the Callback from the server side and reimporting them again
sleepster, you can make a static inner class private
static nested class
an inner class is, by definition, not static

but why would you want a static inner class
so that all instances of your outter class share it

you would want a static NESTED class in the case that you need to e.g. implement an interface, but you want the implementation to be private, AND you do not want the nested class to maintain an implicit reference to the enclosing class

static classes could access members of the enclosing class?

sure
given an instance of the enclosing class
iirc
mostly you go the other way around though

I use private static classes for cases where I want my private methods to have a complex return value
e.g. if i want to bundle an int and a float together

whaley so you wrap all your return values in that one inner class
object and return it

essentially yeah

but can't you do that without being static
without making your inner class static

i suppose you could make it non static… but I can't think of a good reason to

you can, but then the inner class maintains an implicit reference to the enclosing class

at least for the situation I described

so always go static unless you WANT that reference

hmmmmMMMmm
I guess I should stop being lazy and write my own goddamned manifest file

I did look at your code…
a few wishes…

I just moved that chooser to a private member, heh

1) if you send more fixes then send patches, 2) plese to use the same coding style and indentation

oh?
sorry

and do not let your ide auto-add javadoc that you do not fill in

oh yeah.

Do not let your IDE auto do anything.

why not?

Because all of my coworkers IDEs auto-do all sorts of stupid things, and it is driving me nuts today.

but since your fixes makes jsizer nicer on windows I have applied the fixes…

in that case I'll do my all my refactorings manually.

^_^

Monday I'll be okay.

it's fine as long as you control your IDE… don't let your IDE control you

lol
Thank you dmlloyd.
Alright.
Actually probably adding a splash screen would at least make it look nicer while it takes its time loading up, heh.
If I add taht i'll make sure to do it properly.

sure…

hey g[r]eek you around?

i've done all of our java development in emacs. then we hired a new java guy, so i got shifted to firmware and kernel stuff. and he started doing things in eclipse. thankfully, he mysteriously stopped showing up one day before he had committed anything
IDEs can produce horrible code

i use eclispe and I don't even know how to make it autogenerate code (outside of include method signature stubs when implementing interfaces, etc.)

well, i've used it to generate swing code, and that in particular was horrible. also, i don't know how it would deal with tabs and line endings
i had visions of changelogs encompassing entire files

IDEs don't produce much code

I think he works with me now. (:

ha why do you say that?

We've got a guy who uses Eclipse. He'll commit changeets that all he did was let Eclipse reorder the import statements, and he'll write a comment "cleaed up code."

ha. ass.
probably not the same guy though. this was more my fear of things becoming messed up than it actually happening, since he was only here a few days

install some pre-commit hooks into your VCS that makes such things a non-problem

It is even worse when he actually changes one file, then commits 25 other files with import changes rearranged.

i think that was directed at me, but you are right
yeah, that is worse. i am a believer in small contained changesets

It still amazes me that soo few people have any pre-commit hooks…

in our case, we're a very small company and it just hasn't been necessary. the only thing i've added is a post hook for sending out emails

I have threatened to write some that validate spelling in javadoc and compile the whole codebase first so people couldn't commit broken code. The threats were enough to solve the problem.
That, and if I did that, somebody would go crying to the boss, who would demand I turn it off.

http://www.khelekore.org/~robo/suck.pl == an old version of what we use at work…
(for .java files…
)

What a fucktard.
Does he at least use the eclipse code formatter or whatever?

if i were that person's boss, i would give him a talking to. why put up with that crap?

1) you have to make sure that you can work on most of the code when you start using a pre-commit 2) if your boss tells you to turn it off again you need a new boss

Because the boss is an even bigger problem.

ah. understood.

You are right. I do need a new boss. I'm looking.

i would hate to work in that environment. hope it's worth it for you

what region of the globe?

you aren't in the boston area are you? :P

I feel your pain. I just wated the last hour and a half answering a shit load of questions from this one guy I work with.

er that was for apk

no, Stockholm, Sweden

ernimril thanks for the info though, heh

And everything he asked, I just opened up a javadoc and read to him what the javadoc said.

oh, well, time to do some other stuff, back in 1-1.5 hours…

*sigh*

were you obligated to answer his questions?

No, I actually avoided him all morning.
I kept saying, "Look I'm really busy. It's all documented."
And he just hung around my cubicle like a fucking lost puppy.

amazing, but retarded … I'm using mIRC on windows. How can someone possibly infect me with a trojan through mIRC? I have private chat, file transfers, etc. turned off.

Man. I wish I worked somewhere with documentation.

ugh. some people can't take a hint.

No, he was askinga bout things that are documented in the java libarary.

unless there is a bug in it, i would say they could not

Oh. That is even worse.

The stuff he was asking about was from Javadocs on java.sun.com

unless you have like automatic link launching or something turned on

someone has the 1.6.0_02 jdk ?

ouch.

i would need the java -version output

… virus scan detected Trojan Horse Generic6.miw and Downloader.Agent.QMF

and *some* of my code is documented that he's maintaining.
What he is maintaining, actually, I did take the time to javadoc.

what i love is finding "FIXME" in the code with no documentation as to what needs to be fixed. and the person who wrote it has no idea why it's there

… they infected my mIRC scripts directory

which doesn't inply the infection mechanism.

if I have a servlet in my WEB-INF/classes/DIR/foo.class, how do I declare that in my web.xml file so that I can execute it as server/servlets/DIR/foo?

servlet-mapping

well, for one, servlet context path has *no* relationship to package name

any more info on that somewhere?

servlet context path also has *no* relationship to class name

yes, the specification

if I understood the specs and such I wouldn't be asking such silly questions, I know nothing about servlets, what's a good tutorial?

there is a j2ee tutorial on java.sun.com

do people really think scsi is way to go for hdds?

depends

sata is an inexpensive alternative that is more than adequate in many cases

No, more like SAS

SCSI used to be cool…like 5 years ago.

like 15 years ago
or more

okay

scsi is old
still works though

wouldnt it be better to have a fiber san?

but in general it's more expensive since you need more brains on the disk to use it
ubut in general it's more expensive since you need more brains on the disk to use it/u
it totally, totally, totally depends on your requirements
there is no single measure of what storage technology is best overall

ug, here they have like 2 or 3 terabytes of space for all the dbs we maintain

then you probably want some kind of SAN

and they complian all the time about space

Fiber? Sure, if you want to run a separate infrastructure and can plunk down 5-6 figures no problem

EMC sells some lovely units

Even then, consider iSCSI

so does sun

iSCSI is one type of NAS - there's others too, such as ATA over ethernet for example

Never heard of ATAoE

ATAoE is good
and cheap

..assuming 1Gb/sec is good enough for you
or, if you're mr. moneybags, 10Gb/sec

can get multi-terabyte systems for sub100k
1Gb/s is faster than most scsi right?

I don't remember anymore

according to the wikipedia entry 640 scsi is only 640mb/s

…per channel

ah yeah thats right

big storage arrays usually use fiber channel and stuff like that
but the individual disks each use scsi, for example
or sata, if it's a cheaper one

SCSI's being phased out to SAS

they wont order a server here without a scsi drive
a pos 1u rackmount here runs about 7k =\

yeesh, and I thought our prices were high

im going to mail the google paper about enterprise class hdds to all my bosses

iSCSI is the way to go
especially on gigE

iSCSI on GigE? Giggity giggity goo!

Awww right…

Hm
I need to distribute a native lib with my program, if it's in the same directory as the jar file will that work?

svm_invictvs, you can organize it in packages

the dll/so files?

humm , i dont know. i meat class files

yeah

hehe, sr, meant

But I need the dll/.so files to be packaged with it.
oh my god
the same guy comes to my desk, "You need to help me find this code."
I give him the class name
And he goes, "That doesnt' help me."

your choice as to whom it gets used on

~tell whaley about russian roulette

whaley, click

i can't seem to find the right doctype line or dtd for and ejb3 deployment descriptor, could anybody point me in the right direction?

http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: