Samuel Rizzo

+ Follow
since Feb 23, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Samuel Rizzo

Hi Alessandro,

I tried to stick with the domain model. I did change many of the cardinalities though, till I ended up with something that made sense to me. I passed.

My advise is that you don't try to work with something you can't really understand. Make your assumptions. Document.

Focus on the final solution.
Can't find any topic on this anywhere.

I'm having really hard times trying to understand it. Like some weird cardinalities.

Has someone got to understand it? Did someone feel the same?

Could I get any help about it here?

Those who don't understand history are doomed to repeat it. Read this whole page, paying careful attention to "Why the Invoker Servlet is Evil:"

Thanks for the good advice. I've read the whole page (and also the link Hope not to be on my way to do such an evil thing.

And if a second advice doesn�t hurt, was there a better way to discover the Class's full qualified name?
[ May 18, 2007: Message edited by: Samuel Rizzo ]
10 years ago
Thank you all

Indeed, I need to know a list of all user classes with the specified name, at runtime. For example, for "List" it wold return "java.util.List", "java.awt.List" and so on, if those were classes in the web-inf\classes dir. Then, by reflection, I wold know wich one I should use.

A workaround I've just discovered for that, for a while, is running through servletContext.getResourcePaths("/WEB-INF/classes/"), recursively, and "catalogging" all ".class" found, replacing "/" whith "." to know its packages.

I'm just wondering there wasn't a simplier (less ugly) way to do that...

Thank you all, again
10 years ago

Help me please... can't find it out

I need to find a class's full qualified name, knowing just its simple name. Ex.: passing "Class1" to a method and getting its full name "com.pack1.Class1".

Is there a Java API for that?

The problem is:

I'm on a servlet and need to know if a name received as a parameter matches a class (no matter its package) on the application, or, if not, a jsp.

Ex.: parameter received = "Client"
Searches for any Client.class on classpath and discovers its package, or, if not found, any Client.jsp

The web-application may be in a packaged zipped .war or in a exploded directory.

10 years ago
How do I create a JNDI entry on JBoss to be used by all applications on the server?

I need some constants shared between the applications. Is that the best way to do it? (using DB is not desired)
10 years ago