Pedro Gongora

Greenhorn
+ Follow
since Oct 03, 2003
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Pedro Gongora

As far as I know, the url(?) notation //x/y/z is propietary of windows, and only windows explorer understand it. If you open a file with java io libraries, it will fail.

Why you don't try creating a network drive pointing to that location and use that in your code (ie. X:/y/z).
12 years ago
hi,

Your answer is right, but maybe the question is not. The man should have asked: How does Weblogic implements session persistence?

Weblogic has several ways to implement session persistence (to be more accurate: session [B]replication[B]) depending on your architecture:

If you have a single server, session is persisted "in memory", but if you have a cluster, session must be replicated to all servers.

Weblogic offer basically 2 ways for session replication: using the network (by sending multicast messages to groups of servers) or using a database to persist the serialized session objects.

Which one is better? That depend on several factors (the number of servers in the cluster, the load balancing method you use, etc.)

If you are interested on details or other aproaches, check Bea's doc.
[ June 07, 2005: Message edited by: Pedro Gongora ]
12 years ago
I think that the difference is on the classloader and methods that are used to find the resource.
Classloaders have a hierarchy, that is, they form some kind of tree (where context classloader is the root of the tree) and resources (classes or properties files) loaded into memory by some classloader might no be visible to their parent.
Also, they differ on where they search for the resource, for example, HttpServletRequest has a getResourceAsStream() method, that searches for resources under /WEB-INF either if webapp is "exploded" on the filesystem or packaged in a .war archive. Other getResourceAsStream() methods don't do that.
You have to read documentation for specific behaviour of each method.
Please, does anybody could confirm this ?
hi,
the idea of security filter is that you can encapsulate security outside of your servlets/jsps.

By itercepting every request, filter can verify if the user already established a session with the system, if not, you can redirect to a login screen and validate user credentials (via database, ldap, etc.) before the user access any secured content.

That way, you can code your servlets an jsps "ignoring" security, trusting filters authentication. This scheme makes your app more maintainable and easy to code and understand.
12 years ago
hi,
on the connection pool properties page, under "Configuration/Connections/Advanced Options" you must specify a value in seconds for "Test Frequency" option (0 means NO test) and a valid table name on "Test Table Name"
12 years ago
hi,

the error you got is because of the order of the web.xml sections, the error message specifies the order in which the parser is expecting the sections.

You are writing the <listener> tags after the <resource-ref> tags while it sould be between <filter-mapping> and <servlet> tags.
12 years ago
Hi, does anybody known how to change the server's default http-session cookie name (JSESSIONID) without having to edit each application's weblogic.xml?
12 years ago
hi, your code is perfectly right, i've copy & pasted it on my machine and worked fine.
which browser are you using?
do you have any proxy, load balancer, web server, etc. in front of your tomcat??
13 years ago
JSP
if you set an initial heap size lower than it max capacity, at some time jvm will need to do some memory reallocation, and that is time and cpu consuming. i think that's the reason why it's recommended to set both to the same value.
13 years ago
hi, i think that is because on windows the new line character are really two characters: "\r\n", and you are appending only "\n".
13 years ago
JSP
i also recommend Tim's advice, but i would use a MDB instead of a thread. Let the bean write some kind of flag that the refreshing page can consult until the work is done, then it can redirect to the next page.
[ October 14, 2004: Message edited by: Pedro Gongora ]
13 years ago
JSP
Hi, anybody tried EProcess from FileNet ??
13 years ago
it means that all the commands you send to the database will not be commited until you call commit(). In other words it begins a new transaction.

see the example:

you mean having tomcat sessions on external DB to for session failover? thats a posibility but i need the web server in front so the final user see only one server for everything he do
14 years ago
hi !
i'm working on single sign on, i've already solved the problem of having a single login/password pair for every webapp, but now the next step is to make clients (in this case internet explorer) to send user credentials automatically to the server.
i've explored ms ntlm and kerberos but it stop working when i use a web server as a proxy that redirects user requests to the servlet container, i need to do this to acheiving session fail over and load balancing.
does anyone knowns a better alternative for achieving this results?
thanks for your help !
14 years ago