Shimi Avizmil

Greenhorn
+ Follow
since Oct 09, 2002
Merit badge: grant badges
For More
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 Shimi Avizmil

Hello all,

I have a strange problem that I cannot figure out and need your help.

I save a date in the database without time (i.e. 00:00:00), when i read it i get back (796600800000) Date=Fri Mar 31 01:00:00 IST 1995

Where the hell did the 01:00:00 come from ???

HELP !!!

TIA
18 years ago
Hi Eddie,
Thanks for the reply !
Yes, it looks like I have to stick to your design patter (which I have been trying to avoid).
I don't know if I can get the altRMI to be adopted here...to much hustle...(and Politics), probably give it another year..
Anyway, Thank for the reply !
If anyone has a better/nicer solution would you mind posting it here..
Thanks again
20 years ago
Hi all,
I have a service that can run locally OR remotely, What is the best way to code it transparently, i.e. that the client doesn't know if he is using Local or Remote object?
I've been looking around for couple of days now but I can't find an elegant way to do it. All the options involve either the client catching RemoteExceptions or coding another RemoteInterface.
Could someone PLEASE enlighten me!
Do you know on any good resources/links in this area?
Thanks in advance
Shimi
20 years ago
Basically the problem is as follow:
I have the following method in a Statefull session bean:
public Whatever do()
{
processSomething();
notify();
}
the notify() basically notifying the client that then query for the something that was processed in the processSomething() method.
THE PROBLEM is that the changes have not been committed yet as the do() method is not finished yet and the container has not committed the changes.
THE QUESTION is - can I use UserTransaction inside
processSomething to commit the changes and leave the bean as CMP? I want to leave it as CMP as there are more methods on the bean and I don't want to have to manage the transactions for them.
Anyone has any other ideas?
Thanks in advanced.
Hi all,
I'm posting my question again as I didn't get much information last time, I'd appreciate if anyone from bea can pick this one up...
The question is "How the hell are u suppose to create a timer utility in WL (6.1) ? "
I looked for some information but there isn't much out there...bea recommends to use the javax Timer class and not the Weblogic timer services BUT the bloody thing is single threaded, what's the use of a single threaded timer? enlighten me..
So, what's the answer? JMX Timer ? Time services? are the time services also single threaded?
Worse case scenario I'll have to use the java.util Timer in a POJ...
I would really appreciate any information, I'm getting a bit frustrated here...
Thanks in advance.
Shimi
21 years ago
How am I supposed to do it within J2EE? The JMX timer will notify all the listeners with the same thread, right?
I know I can do it with a J2EE client app which basically take care of the timing and threading but before I go and do that I'd like to make sure u can't do it within j2ee...
Thanks again
Shimi
21 years ago
Thanks for the reply.
Yes but u see, I think the impl classes in 6.1 for the timer are single threaded, thus they are not very efficient and I don't think we can use them.
And I'm not sure that WL provides with an impl class in 6.1 ( I know it does with WL7.0).
Any idea?
21 years ago
Hi there,
We use a WL6.1 and we need a way to repeat a task every n seconds, basically a timer.
What I understood from the documentation is that in WL6.1 the time services are deprecated, and the recommended way is to use 3rd party tools or the java Timer impl (which sux as it's single threaded)
We probably going to use the time services that wl provide even though it's deprecated unless someone here will enlighten me and give me some more options (or maybe point any mistakes in my understanding.)
Cheers
21 years ago
I passed it this morning, I've been working with Java for almost a year now, here is how I studied and my recommendations:
1. Read a book
Hips of books available, I wasn't very fussy about the book as I actually learn more from mock exams but still before taking any mock exams, read a book !
2.
Take Dan's exams !!! DO NOT SIT THE EXAM BEFORE DOING THIS ! (Thanks Dan !!!)
http://www.danchisholm.net/sept27/topic/index.html
Take these exams in a study mode, make sure you understand all the logic behind the answers !
3.
Go through this web site, have a feel to what kind of question are asked, and hear to exp of others.
4.
With your spare time, sit all the mock exams you can do..(untill your brain explode..)
Click here for a list...
About my exam - Most of the questions and also the trickiest ones were about flow control, the rest:
Collections :about 2(easy)
Wrappers: about 2 (easy)
Threads: about 4 (easy)
Inheritance: about 5 (easy)
Math : about 3 (easy)
Exception about 5 or more..(few of them were tricky)
Assertion about 4 (very easy )
I didn't study much for the exam (3 full days) and the mark wasn't my priority, all I did is read a book and went through Dan's exams, if your mark is important to you take more mock exams !
Good luck with the study.
Oh one more things, know the ranges of the primitive types, these are gift questions ! ( I had one wrong in the exam...don't be lazy like me.. )
Cheers
Shimi
[ October 14, 2002: Message edited by: Shimi Avizmil ]
21 years ago
Clear as crystal !
Thanks mate.
Hi all,
can someone please explain me the rules or the order for initialising interfaces.
for example, a question from Dan's collection:
interface C {
char w = DD.echo('w');
char x = DD.echo('x');
}
interface D extends C {
char y = DD.echo('y');
char z = DD.echo('z');
char a = DD.echo(w);
}
class DD implements D {
static char echo(char c) {
System.out.print(c);
return c;
}
public static void main (String[] args) {
System.out.print("Main");
DD dd = new DD();
System.out.println(a);
}
}
answer is Mainyzwxww.
no problem with the main first but why is it yzwxww, are the interface's variables get initialised only if required? don't quite get this one...
anyone?
Thanks (again ! )
Shimi
Cheers, it's clear now...
Shimi
Hi Paul, thanks for the reply.
I'll try again, the code is:
result += i++ * --j
doesn't matter what the values are, sun's explanationwas that the above equation is the same as :
result = result + (i * (j-1) ) + 1
I don't understand why the "+ 1" is applied to result and not to i? I though that "result += i++ * --j" is the same as the next 2 lines:
result = result + (i* (j-1))
i=i+1;
Hope it's clearer now...
Hi all,
Does anyone know if the level of Sun's free sample tests is equivalent to the real exam?
I'm in my final staged of the studying, gone through Dan's exams...(Dan, I hope you are not that tough as your questions.. )
Anyway, I'm now looking for some tests that are approx the same diffic level as the real exam, can anyone please provide some links?
Thanks a lot.
Cheers
Shimi
Hi all,
This is taken from Sun's free online example tests, their explenation was <b>"Resolves to (i * (j-1) ) + 1" </b>.
My question is how come the -- after the i is incremnting the whole equation and not just the i variable? i.e. how come it's not
<b>i*(j-1) and then i+=1.<b>
Hope the question is clear...
Cheers
Shimi
[ October 12, 2002: Message edited by: Shimi Avizmil ]
[ October 12, 2002: Message edited by: Shimi Avizmil ]