This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!

Ravissant Markandey

Ranch Hand
+ Follow
since Oct 24, 2007
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 Ravissant Markandey

Hi Everyone,
My query relates to the use of anonymous classes for overriding medhods.Consider the following code:





Ok, now we compare the Child class code with the standard overriding code:



Now , I basically want to know how the class Base is being loaded in the two different versions of the code? My guess is that in the anonymous class version, the Base class is loaded via static loading and in the next version its loaded dynamically.Please correct me if I'm wrong.
I would also really appreciate it if the two methods of class loading were explained as I'm not too clear on this concept .

Thanks in advance,
Ravissant Markenday
9 years ago
Thanks Jelle, Ulrika
9 years ago
Hi everyone, can anyone please suggest a good book for data structures in java?
9 years ago
Thanks Ulrika, that was amazingly detailed.Thanks once again
9 years ago
Hi everyone, My doubt relates to the "single object" concept talked about in synchronisation. We know that two threads can conflict only when the "runnable instance" is the same (Please correct me if im wrong, this has been my understanding so far.) , for example:


Now Threads a and b above have the same runnable instance mt, and its precisely because of this ONE runnable instance that the entire concept of "thread conflict" and "synchronization" comes about...once again plaease correct me if Im wrong.

Now what I want to ask is, how do you get a single runnable instance when you extend the thread class, as in :


So in the code above do we have a SINGLE runnable instance? If not then how do we do it when we extend the Thread class?

Please Help.

Thanks in advance,
Ravissant Markenday
9 years ago
Thanks for the reply Jaikishan, well yes the JBoss I have on my system has tools.jar in a lot of places , i kept getting a version 49/49 error until i replaced the tools.jar in my Jboss with the version in my JRE. So i believe the system looks for this jar, i havent tried removing it from my JBoss and running the application yet.
But can you still tell me what really happens in there when you DO have tools.jar in your JBoss and the versions are mismatched?
10 years ago
Thanks for the reply Jaikishan, well yes the JBoss I have on my system has tools.jar in a lot of places , i kept getting a version 49/49 error until i replaced the tools.jar in my Jboss with the version in my JRE. So i believe the system looks for this jar, i havent tried removing it from my JBoss and running the application yet.
But can you still tell me what really happens in there when you DO have tools.jar in your JBoss and the versions are mismatched?
10 years ago
Thanks for the reply Jaikishan, well yes the JBoss I have on my system has tools.jar in a lot of places , i kept getting a version 49/49 error until i replaced the tools.jar in my Jboss with the version in my JRE. So i believe the system looks for this jar, i havent tried removing it from my JBoss and running the application yet.
But can you still tell me what really happens in there when you DO have tools.jar in your JBoss and the versions are mismatched?
10 years ago
Hi Everyone,

Can anyone please tell me what exactly the tools.jar is for? Its present im the lib folder of JBOSS and also in the JRE's lib folder and both need to be in sync for the application to run. But can anyone tell me what exactly the files in this jar do?


Regards,
Ravissant Markenday
10 years ago
Hi Everyone,

Can anyone please tell me what the following error means? : org.xml.sax.SAXParseException: Attribute "scope" must be declared for element type "form-bean"

I get it on deployment, everytime I start the server.


Thanks and Regards,
Ravissant Markenday
10 years ago
Hi Everyone,

Im passing java.sql.Date object to a procedure to do something but it keeps throwing the following error : java.sql.SQLException: ORA-20001: ORA-01801: date format is too long for internal buffer.

What bothers me is that the same code(EAR) is working on my local server but not on the remote(Test) server.I've tried using both setDate() and setObject() for passing the date to the procedure.The procedure returns a boolean .

Please Help!

Regards,
Ravissant

Hi Everyone ,
I get the following error in the log when i deploy my application: com.ibm.ejs.container.DuplicateHomeNameException , Please note that this error doesnt come anywhere in the console while deploying the EAR. I tried rectifying it by redeploying the EAR, restarting the server, also tried the combination of the two after deleting the 3 event buffer files in the event folder.
Please Help.

Regards,
Ravissant
10 years ago
Thanks Ravi, Raj and Bear
10 years ago
Hi Everyone,

Can anyone please tell me how i can use a javascript variable in a scriplet? Heres what i want to do :


so, instead of the '107' i want to put a javascript variable, like :



Please note the above DOESNT work, how do i do it??


Regards,
RAvissant
10 years ago