Felipe Arcos Velez

+ Follow
since Mar 30, 2004
Merit badge: grant badges
For More
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Felipe Arcos Velez

Hello Cameron, i am using ibm websphere portal 5, i just need the user name or user login, nothing else, the portlet is private so the user is authencated when he get there.


17 years ago
First of all, check java impl recomendations for object.hashcode:

extract from Java Docs:
* Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
* If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.
* It is not required that if two objects are unequal according to the equals(java.lang.Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables.

So, the first implementation doesn't return distinct values for each object, the second calcs a expression but can you be sure that somevar variable is unique for each object?, and the third implementation can be apropiate if the assigned random key is constant during object life.
Hello, i am trying to retrieve the user login string in a JSR 168 Portlet running in Websphere Portal, i am trying with PortletRequest.getUserPrincipal and PortletRequest.getRemoteUser methods but both return null.

What is the way?

17 years ago
Name: Felipe Arcos Velez; Took date: 06/5/2004; Place: Cali, COLOMBIA
A pass the exam with 82%, my prep was:
1. HFE (about two weeks), mock exam: 64%
2. Exam cheat and spec, about 4 days
3. ejbCertificate 2 days
HFE was excellent, really everybody who wants to pass the exam mus read it.
20 years ago
That means that has no sense to get transaction context from a method with "NotSupported" or "Never" Attribute because you always receive that exception because there's no transaction context.
but with "Supports" you cant be sure.
If you dont want transaction in a specific method bean, then why dont you use "NotSupported"?.
ok, its working now:
java -cp %classpath%;AdviceAppClient.jar;. AdviceClient
ok, now, i am doing this way:
>set APPCPATH=AdviceAppClient.jar
>runclient -client AdviceApp.ear -name AdviceClient -textauth
but the folling message apears:
>No application client descriptors defined for: AdviceClient
I dont know what its wrong, the j2ee app is deployed, the j2ee is runing and i have de j2ee client files from the deploy tool.
Hi, i just begin with ejb and my first app shows the next error message (compile its ok, deploy too, the j2ee.bat is running):
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:10)