prabal nandi

Greenhorn
+ Follow
since Jun 28, 2011
prabal likes ...
Eclipse IDE Java
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by prabal nandi

I need to integrate Tibco EMS with JBoss 5.0. The biggest problem is JBoss is shipped with Hornetq which i want to replace with Tibco. Tried searching a lot for a proper documentation but no sucess, few of the docs available on JBoss Forum are not proper. Can someone provide link for the same ? My application is not using MDBs, hence all i want is to know how to make tibco available for the JNDI lookup.
10 years ago
I need to integrate Tibco EMS with JBoss 5.0. The biggest problem is JBoss is shipped with Hornetq which i want to replace with Tibco. Tried searching a lot for a proper documentation but no sucess, few of the docs available on JBoss Forum are not proper. Can someone provide link for the same ? My application is not using MDBs, hence all i want is to know how to make tibco available for the JNDI lookup.

*Sorry wrong forum. posting it in the right one now*
10 years ago
This was asked to me at Amazon Interview (from where i was obviously kicked out).

In a Binary Tree, weight of each node is described by the value of the node multiplied by the level (i.e. for root node value is 1* value in root node), And the weight of tree is sum of all the node weights.
Find the minimum tree weight out of all the binary trees possible from a given set of numbers.

P.S: No input and no sample data provided

P.P.S: I didn't found a dedicated forum to datastructure or algorithm so posting it here.
10 years ago
i guess Image alias is a feature of Tomcat 7 not tomcat 6.. try doing the same in Tomcat 7.. it works for me
10 years ago
I have a requirement where in i need perform some asynchronous jobs in J2EE app (with Tomcat Server), basically need to send mail notifications and do cleanup job.
I know using threads directly is not advisable, what are the options i have in Tomcat. Websphere has commonj workmanager implementations, but i need some open source Async task executors for Tomcat.
I came accross Foo Commonj libraries, but don't know how to use it. Moreover it doesn't supplies the commonj.work.work class or related files.
Can anyone let me know about any open source implementation of Workmanager with proper example, Haven't seen a single thread providing the proper explanation to this topic.
I want to know how to use WorkManager in Tomcat 7. I came across the open source library Foo-CommonJ but nowhere i found a sample code explaning the usage.
The input parameter for FooWorkManager's constructor is an instance of commonj.work.work class, where as no one provides the work class (neither tomcat nor foo-commonj).
Basically i need a sample code explaining usage of WorkManager (FooCommonj jar) in tomcat.
And if Foo-Commonj doesn't support workmanager properly, then some alternative.
Which will be the best book for Java covering all the advanced features/topics and new developments (better if includes Java 7 modifications).
FYI i know java but only the regular stuffs. i want to learn about the advanced topics like executors and fork/joins ....
11 years ago
We have a very heavy weight web application which is deployed in Websphere App server 7. But now the architects have decided to move the entire application to Tomcat. I know tomcat is light weight container and pretty efficient, but i am very skeptical about tomcats performance, when used in production environment (considering we get millions of hits and application is huge).
Can anyone let me know the difference between tomcat and websphere in terms of performance. (leave the webserver appserver difference out).
11 years ago
Thanks for replying... But you have confused me even more
First: What kind of login service you are talking about.. can you share any reference about the same. If it's more secure would love to go for it.

Second: My problem is, i have to use two h:message (one has to be a global message). Only those messages which i am creating inside the bean, i can route to <h:message for="element"/> rest of the input validation messages are display by the global component.
I dont want to use a custom validator, as the in-built validators are working fine for me.
11 years ago
JSF
My xhtml contains a global h:messages component which i am using to display all type of messages (There's only one form present in the page). There is a login component which is diaplyed inside a Dialog box (this is also present in the same form). The dialog box also contains another h:messages component, used only to display messages specific to Login. But my problem is whenever there is an input validation error for login components it is getting displayed by both the h:message components. which i want to redirect only to the Dialog box.
I am using primefaces as component suite.

Code is like:


Can anyone let me know how to redirect the input validation messages to a specific component. I dont want to use <h:message for="userId"> tag for each and every component inside the dialog. want to display it on top of the dialogBox.
11 years ago
JSF
i am trying to install Eclipse Indigo on my Windows 7 machine. I have downloaded the .rar file and extracted in c:/program files.
Now when i m trying to run the eclipse.exe by double clicking. It throws error saying "Failed to load the JNI shared Library "C:\Program Files\Java\jdk1.7.0_02\bin\...\jre\bin\server\jvm.dll" "
can any one let me know where i m going wrong.
PFA the screen shot
11 years ago
This question was asked to me in an interview.. (which obviously i couldn't clear)
--> There's an sorted array of integers, only 0's and 1's. arranged such that all 0's are on the left and 1's on the right. We need to write the best possible algo to find the position of the first occurrence of "1" in the array.
Note: we cannot use any of the brute force mechanism.
E.g: 000000111111
function should return : 6 as answer.

i tried with many algo's but ended up using brute force only. Can someone solve this...
11 years ago
Can anyone suggest any good books for JSF and Portal Technology. need to learn it fast
12 years ago
how to create a balanced binary tree from a sorted array. a binary tree with min height.
12 years ago
i second martin, i think interviewer was having some answer in his mind and after changing the requirements few times he also forgot,what he was trying to ask..
and please don't tell me that i can face these type of questions in real life scenario.. i have been working as a enterprise app developer for past 3 years.. never faced anything thing remotely closed to the question.
12 years ago