Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

Thomas Smets

Ranch Hand
+ Follow
since Dec 11, 2001
Brussels, Belgium
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Thomas Smets

On Tomcat 4 we have th efollowing requierment :
From an admin page the user rights can be changed by an admin user.
If the user is on-line, his session must be adapted to receive his/her new grants/rights. Unfortunately, the has been deprecated with no replacement.
So... What do I do ... ?

1. Create an implementation of HttpSessionBindingListener and keep (weak) references of the user logged-in ?
2. Use JMX to query the Container to have access to the Sessions ... ?
3. Another better idea ... ?


Tx for any help,

\T,
13 years ago
Two remarks to the code proposed :

14 years ago
Dear,
Deploying my apllication on more than one server (exercise 14) of the Course, I got the following Exception :
Message : Message CHKW2516E: No end point named CELL_DISCOVERY_ADDRESS is present beneath the entries of the server index. Exactly one end point having this name is required.
Explanation : No explanation found for ID=CHKW2516E
Severity : Error
Now the only posts I found via google on IBM's web site :
ibm.software.websphere.application-server
doing a search on "CHKW2516E" did not help much !
Can someone help ?

\T,
14 years ago
Here is the problem, I like a project to have the following structure : See below.
Now, my Build.xml (in this case 'TestBuild.xml') always referes to a property-file where most the properties are defined (One coul have gessed that !)
It seems that I cannot use "variables" in the property file above a certain number...
My property file is as follows :
I, of course, created the directories on the FileSystem.
I seems that I can never show the value of the variable ${src}... Can some one hint me towards the solution ?
Here is the Build file :

Outcome of the build is :
[pre]
Arguments:
Shows all the system variables
*******************************
basedir = C:\Program Files\IBM\WebSphere Studio\workspace\NimTest
src = ${src}
a = ${src}/a
b = ${src}/a/b
c = ${src}/a/b/c
d = ${src}/a/b/c/d
e = ${src}/a/b/c/d/e
f = ${src}/a/b/c/d/e/f
g = ${src}/a/b/c/d/e/f/g
[/pre]
Tia,
\T,
Tree command executed on the File system returns :

[ October 21, 2003: Message edited by: Thomas SMETS ]
[ October 21, 2003: Message edited by: Thomas SMETS ]
14 years ago
I got a Build.xml running to with the following task :
After a few runs, the target "generate.rmi" began to fail ... & now the menu : "Deploy & RMIC code" fails with the following :
Can someone help / advise ?
Tx,
\T,
p.s. : I bumped into this after searching the ranch in the ANT forum :
http://www-1.ibm.com/support/docview.wss?rs=493&q=ejbDeploy+rmic&uid=swg24005554&loc=en_US&cs=utf-8&lang=en+en
[ October 14, 2003: Message edited by: Thomas SMETS ]
14 years ago
Hi,
In our automated build we need to run a script from a third party which works in the form :

I, of course, have NO access to the source code, but I'd like to automated this task. I have tried undreds of <path> / FileSets / ...
This is the closeth I have come to :

but I still get the files as ONE big argument instead of a list which could successfully be used as in :

Thank you for any help !
\T,
[ September 30, 2003: Message edited by: Thomas SMETS ]
14 years ago
In need to test the behavior of a String buffer (spelled in 2 words). For our purpose we had to implement it as Singelton. The "buffer" just holds Strings read by a FileReader before they'd processed by multiple "String processors".
My question is how can I test the Singelton close method for instance without poluting the code with what I have currently done (default access flush / reOpen methods).
Tx for any hint(s),
>>>>>>>>>>>>>>>
This is the reply to Frank's response below.
Yes we effectively moved towards a "simple" Factory where I can give a parameter, so the final testing is much simpler. However beside using smthg like :
  • Class (for which I only want one instance)
  • ClassManager (which takes care of returning ONE & ONLY ONE instance of the target class)



  • I don't see how I could easily test my singelton.

    I don't see why the class itself is burdened with reading a system parameter and parsing an interger stack size out of it. Put that code somewhere else, and pass the int value in as a constructor parameter. This will let you test the class behaviour for different values of the stack size, which is needlessly hard at the moment.


    Because the initial version was reading config of configs of configs ... & I did a quick & dirty hack ! ! !
    This can definitively be improved !!! but it takes time & the hack fits the purpose right now

    I'm a bit worried by the isClosed stuff. All that seems to happen if the stack is "closed" is that some operations throw a generic IOException. I can't see that this is especially useful behaviour from the perspecive of the client code. If the client code gets one of those exceptions, what should it do then? I assume it is there because client code is "not supposed" to call "put" or "flush" when it's not appropriate. Why not move this open/close/prevent behaviour and its flag outside to a "gatekeeper" or "decorator" class which you can choose to use or not.


    I don't agree on all of it !
    Out primary goal is to gain speed !
    I therefore need something close to C / C++ to have rocketing number first !
    Yes in it's current form the last put can be followed by a close
    & it's just to prevent any issued that I did throw an Exception.

    <<<<<<<<<<<<<<<
    \T,

    [ September 05, 2003: Message edited by: Thomas SMETS ]
    15 years ago
    Tx for the Servlet reference...
    I haven't done many of those in my life
    No idea on how to simplify these


    <!-- What follows is the handling of the HTTP-errors -->
    <!-- Curently defined errors are -->
    <!-- 400 : Bad Request -->
    <!-- 401 : Unauthorized -->
    <!-- 402 : Payment Required -->
    <!-- 403 : Forbidden -->
    <!-- 404 : Not Found -->
    <!-- 405 : Method Not Allowed -->
    <!-- 406 : Not Acceptable -->
    <!-- 407 : Proxy Authentication Required -->
    <!-- 408 : Request Timeout -->
    <!-- 409 : Conflict -->
    <!-- 410 : Gone -->
    <!-- 411 : Length Required -->
    <!-- 412 : Precondition Failed -->
    <!-- 413 : Request Entity Too Large -->
    <!-- 414 : Request-URI Too Long -->
    <!-- 415 : Unsupported Media Type -->
    <!-- 416 : Requested Range Not Satisfiable -->
    <!-- 417 : Expectation Failed -->
    <error-page>
    <error-code>401</error-code>
    <location>error/Unauthorized.jsp</location>
    </error-page>
    <error-page>
    <error-code>403</error-code>
    <location>error/Forbidden.jsp</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>error/NotFound.jsp</location>
    </error-page>
    ...


    into something where we don't have to have ONE entry per Exception type but where all 400's are dealed with the 4xx.jsp while only the 404 is dealed with a special JSP, say for instance.
    I have now everything fine with the
    How can I get the Message back in the response ?
    Tx,
    Thomas,
    [ March 20, 2003: Message edited by: Thomas SMETS ]
    15 years ago
    JSP
    Dear,
    I need for my application to authenticate users.
    To make thing smooth in the handling of errors & exceptions I would like to generate a HTTP 403 error (forbidden) when the user attempts to access a forbidden page.
    I think that approache is more sensible than having an entry for security exception classes but also for HTTP 403.
    Another related question is to know if there is a possibility to handle HTTP 4xx errors in ranges. All 4xx should be send to the DefaultErrorPage.jsp while the 404 & 403 would have specific handlings.
    Kind regards,
    Thomas,

    Thomas,
    15 years ago
    JSP
    Thought the matter seems to be closed...

    Did you add the ${JAVA_HOME}/bin to your PATH variable ?
    Thomas,
    15 years ago
    Same for me but in "DOS" (a normal shell prompt)... not a bash prompt from cygwin
    As far as I know
    Thomas,
    15 years ago
    A good way to start is by this

    There is then the one & only magical google that returns you : search on Java Decompilers

  • There is first of all the JAD decompiler, which is embedded in many Commercial code
  • Mocha is/was the very first one on the market.
  • http://www.jascii.com
  • NetBean has AFAIK a Java Decompiler
  • @ the Forge, but I don't know what it's worth...


  • I hope you can find your pleasure inthere ... !
    Regards,
    Thomas,
    [ March 05, 2003: Message edited by: Thomas SMETS ]
    15 years ago
    I posted a rather long Message in the ANT group to gather some help on how to compile aspects into my project thru' an ANT-target.
    I keep having ClassNotFoundException & so on ... Should somebody have some experience wth those, her / his help would be greatly appreciated ?
    Tia,
    Thomas,
    15 years ago
    Well if you do that you will have a value like "sparc" or "i386" displayed but nothing related to the fact that the OS is either Win2000 or Unix-like.
    What bothers me is that NO value is defined (really).
    Thomas,
    15 years ago
    When I declare a path in a ant-build file, like herebelow :

    How can I echo the content of the variable used in the refid in the ant-console ?

    Basically,
    I do not want to use the '-debug' or the '-verbose' switch to the ant command.

    Tx,

    Thomas,
    [ September 23, 2004: Message edited by: Bear Bibeault ]
    15 years ago