Michael Labuschagne

Ranch Hand
+ Follow
since May 08, 2007
Michael likes ...
Tomcat Server Java Windows
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Michael Labuschagne

You have two ArrayLists containing objects of the same type in both... You want to process the two lists and remove duplicates (i.e. where an object is deemed to be the same as another object in the other ArrayList)... The objects in the individual ArrayLists do not contain duplicates and are sorted according to primary key (which is one of the test fields to determine two objects are the same - i.e. an object from list 1 with primary key 'PK1' could have a 'sister' element list 2 which also has primary key 'PK1' but due to other member values having different values would be deemed to not be equal) the objects have a method isIdentical(object) which determines whether the two are identical.

So far I have come up with a crude and inefficient method of removing duplicates:



This has many, many iterations through the array structures is there not a better method? Any suggestions are welcome!
12 years ago
Hi,

I need a step-by-step guide in creating a project in RAD v8 (Enterprise App) that can be deployed on WAS v6

Any help would be appreciated.

Thanks!
12 years ago

gyan kumar wrote:please check this
http://w3processing.com/index.php?subMenuId=88&environmentPath=EHEL/W103#



Thanks for that - it's perfect!

I'm busy going through it now but I'm stuck - it seems my pointbase db server does not start when I launch my WebLogic server from within Eclipse. I can access the WebLogic console so I'm sure the WebLogic Server has started - but I can't login into the pointbase db server using localhost and port 9092 - any ideas?

How do you ensure that the pointbase database server is started when the WebLogic Server is started? Where do you configure this?

Thanks appreciate the help!
12 years ago
Hi,

I'm running Weblogic 10.3.2 with bundled Eclipse with OEPE...

I want to create an Stateless Session bean v3 which is backwards compatible with EJB v2.1...

From creating the project through to executing the remote bean call how would I do that? I've searched the web but can't find an example that runs perfectly on Weblogic/Eclipse...

Something very simple - even if the bean's method simply returns a String for example purposes and testing whether the infrastructure is setup correctly etc. No database calls necessary.

Any help will be greatly appreciated!
12 years ago
Hi all,

I'm looking for a good JSTL 1.1 tutorial - I've got the reference manual but that's no good - I want something with examples and practice question at the end of each chapter and perhaps test multiple choice questions.

The reference manual is alright but not engaging and very boring to read - having a good quality practical tutorial, I think, will make the learning process easier.

Thanks!
12 years ago
JSP
I'm going for second round of interviews... They're testing J2EE knowledge - looking for a crash course refresher on the net - anyone used one they can recommend?
12 years ago
I'm interviewing for a job that requires experience in Struts, Hibernate and Spring...

If you have used JEE, Beans, JPA, JTA, JAAS and most other Enterprise APIs how difficult would it be to learn these frameworks and Hibernate?

Could you say you could teach yourself in a matter of days?
12 years ago
Question:
You have been given a large list of people’s names and have been asked to highlight all duplicates where the exact same name appears more than once, as well as highlight any possible duplicates where there may be misspellings of the same name. Describe an algorithm you could use that would produce the required output.

The first part is easy - I could easily find duplicates using a nested for loop but how would find duplicates where there MAY be misspellings??? Do you create hash values for the names and compare hash values - if the hash values are close (not sure how you check that) then there may be similarly but misspelled names?

Any help will be appreciated!
12 years ago

Divyya Joshi wrote:The following code is related to regular inner class and the moment i try to access private member variable of inner class compiler complains error but Not when private member is acessed
Here's the code



Anyone kindly explain this absurd behaviour .



It's not absurd behavior - on line 7 you have "private x=10;" you have forgotten to set the datatype ... int I presume? Where you have marked error the 'x' has not been declared properly because of what I said in the beginning.

Interesting code I'll def. hang on to it.

Here's some additional code, if it makes any sense. What I'm interested in is:


The code above saves the current position of the jscrollbar before it is refreshed with a new JTable.

Then:



The code above sets the position of the new scrollbar.

Here is all the code:

16 years ago
In the example below I get the horizontal scroll bar position from one jscrollpane and then set it is as the scroll bar position for another jscrollpane (both scrollpanes have the same maximum value of 150) but when ever the value is greater than 90 setting it past that value has no effect.

Any ideas?

Thanks!

16 years ago
My comments about the object being copied were not explained well...

I've completely changed my code and its working now. I don't know what I was doing wrong. I wanted to post a small example to show the problem I'm having but couldn't recreate the problem.

Thanks to everyone who read and tried to help.

Happy Valentine's Day to All!
16 years ago
Thanks for the replies...

I tried using the updateUI scenario and its just not working...

gonna try play around with a few things see if i can find away around the problem... the way java handles objects can be confusing, you expect two objects to be the same object (which they were for some time) and suddenly in another method within the class the vm has decided to copy that object and the two attributes no longer point to the same object.
16 years ago
Thanks for the replies...

I tried using the updateUI scenario and its just not working...

gonna try play around with a few things see if i can find away around the problem... the way java handles objects can be confusing, you expect two objects to be the same object (which they were for some time) and suddenly in another method within the class the vm has decided to copy that object and the two attributes no longer point to the same object.
16 years ago
Thanks for the replies...

I tried using the updateUI scenario and its just not working...

gonna try play around with a few things see if i can find away around the problem... the way java handles objects can be confusing, you expect two objects to be the same object (which they were for some time) and suddenly in another method within the class the vm has decided to copy that object and the two attributes no longer point to the same object.
16 years ago