Peter Reinhardt

Ranch Hand
+ Follow
since Aug 02, 2002
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 Peter Reinhardt


According to me you should only change these settings if you are facing some problems with the application server, because this is the default J2EE classloading mode.



I always had the impression that PARENT_LAST was the class loading mode recommended by the J2EE spec (at least for war files, i.e. WEB-INF/lib). Anybody an idea where it states in the spec what the default mode should be?


Peter
16 years ago
I have a web-app with several env-entry's. I would like to configure the values for the env entries after I have deployed the application (Websphere 5.0/5.1). Is this possible?

I tried to find documentation for "Resource Environment Providers" and "Referenceables", if this solves my problem, but no luck. Has anybody an idea how to use this feature?


Peter
16 years ago
I think one problem of Byte Code modification (especially when used with Hibernate) is that modified classes can't be serialized, i.e. if you use the hibernate classes as transfer object in a distributed environment.

The reason for that is, that a client doesn't know anything about the dynamic generated classes on the server.

Peter
I don't see how this would be done, i.e. if I want to get notified when a login has failed (because a user is not in the appropriate role), which method do I have to implement in the user registry to get this information?
the user registry has methods like getUsers, getGroupsForUsers but nothing relating to failed web logins.
there is a opensource framework (seraph) which does the job (by providing LoginInterceptor and LogoutInterceptor), but it is still beta.

Peter.
16 years ago
I would like to log login events (login, logout of application, invalid login etc.) in a (custom) database table. Is this possible using Websphere security (web.xml roles, user registry) ? I.e. can I write something like AuditLogger and plug it into WS (this is possible in Weblogic).

Peter.
16 years ago
Yeah. Giving it a second thought I think E must be right. It just means somebody has compilation problems all over the place (in his ejb project) and then tries to run the Test environment.
I wouldn't even try to do that - lame question in my opinion.
to 5: I think you are right. Option B is not recommended because it attaches a reference to a node instead of a cell.
to 27: I reconn the correct answer is A. But I think the question is not that brilliant. The exception you get if you fail to run the "generate->" is a ClassNotFoundException (and not the message "Unresolved compilation problems", which rather suggests a problem compiling some source classes).
In order to create a jar file you have to fix all compilation problems.
question 5:
B and ?
Surely option A makes an application more robust (failover to a second server). But options C & D do not really sound right.

question 28.
whats wrong with answer A, implementing Business logic in the MDB?
I think the answer to 14) should be A and B. I don't think it is valid that a Customer bean invokes a private method (ejbStore) on a related bean (Address Bean).
Any thoughts ?
Just add "-enableassertions" to the VM arguments. I haven't seen a preferences setting for enabling assertions.
You can't. The only solution is to move to WSAD or Eclipse.
Is this behaviour according to the JAAS spec?
I guess the method you mean is "doAsPrivileged" rather than "runAs". As far as I know, the runAs is specified in the ejb DD.
17 years ago
The question is really what your external command really does. Another problem you might want to consider is that your .exe will just run on Windows

Peter
I think getting messages asynchronously in an SessionBean would break about every rule in the ejb spec possible.
Honestly, once the method call in a session bean is finished you are not allowed to reference the same instance via a MessageListener Interface (just calls over the remote interface are allowed). Perhaps if you bend the rules a little bit and introduce a Singleton etc. you could make it work. Why not try to solve it with a MDB instead ?

Peter
----------------------
SCJP, SCJD, SCEA, WL7
Weblogic 7 Security is not part of the exam (and there was no question for it), I just had a quick look through the weblogic security documents.
I would certainly learn about EJBs DD and the weblogic-ejb.xml file (I think there was one question related to it).
JMS was covered by several questions in the exam.
The Weblogic Whiz Test covers all of these topics very detailled. As I mentioned before - I think they go into more detail than the real questions.
Peter.