Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Gemini Moses

Ranch Hand
+ Follow
since Jan 04, 2001
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 Gemini Moses

I am preparing for the exam too.
Read Cade- Sheil chapters once. But I found them as overview and feels like there needs to be lot of reading done for each topic.

Starting to read OReilly Java Security book. But finding all reference to Java 2, wondering if this is right book to read still.

Looking forward to have study buddies to keep me accountable!

Thanks!
Thanks Mark.

Can BeanFactoryPostProcessors / BeanPostProcessors be used for this purpose?
If so Which approach do you think is better.

Thanks!

9 years ago
We have a requirement that needs mapping certain bean to different class based on a flag value.

The flag value is read form DB and if flag is ON , we want Spring to use
Spring-Application-Context-A file
If flag is OFF , we want spring to use
Spring-Application-Context-B file.

Both will have same beanIDs but class names mapped to it will be different.

How can we do this?

Thanks!
10 years ago
I got it. My runtime was WAS6.0 hence Java 5 was not shown in dropdown
Paul,

I am getting same error that you were.

However , For Project facets
Java I have only 1.4 or 1.3 in the dropdown.

How do I get 1.5 populated here so I can select it?

Thanks!

Using org.springframework.jdbc.core.JdbcTemplate

How do I call following Oracle SQL

String query = "SELECT name, dob FROM emp FOR UPDATE of name";

Can I be use -

jdbcTemplate.query(query).

my dataSource is in autoCommit mode.

Please advise!

Thanks

Can someone please help me do this simple data comparison in java.


String dbDate = dateRetrivedFromOracleDB

if( dbDate + 15 minutes > sysdate)
condition 1
else
condition 2


Thanks!
11 years ago
return map.get(Product1) != null ? (String) map.get(Product1) : NO;
11 years ago
I have a method which presently returns a List.

Now my method needs to return (account, status) instead of just account.

I am thinking I need to change the method to return hashmap instead of list.

Can anyone suggest me better solution?

Thanks!
11 years ago
I am trying to install Tomat on my machine.

Followed instruction on -
http://www.devx.com/webdev/Article/16416/0/page/2

Using file apache-tomcat-4.1.36.zip.

When I try to start the server I am getting this error-


Created MBeanServer with ID: 1fa1bb6:113023dbffe:-8000:wsusoh303hl4vb1:1
Jun 6, 2007 2:13:28 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.36
Jun 6, 2007 2:13:34 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 6, 2007 2:13:34 PM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
Jun 6, 2007 2:13:34 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
Jun 6, 2007 2:13:34 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=0/62 config=null

Please help
13 years ago
I am lookin gat sturts-config.xml file which has-

<action path= ....>
type =...
scope =...>
<forward name=�aredirect� path=�/com/aRedirect.do?LocationId=a�>

</action>

Can someone tell what is role of LocationID here?
Is it passed as class variable or static final variable to class defined for aRedirect?

Thanks,
13 years ago
Got you. Thanks!
13 years ago
Got you. Thanks!
13 years ago
The system I am wokring on may be having multiple versions of JVM. SO I guess to find version I will have to go second route you pointed.
This might be bigginer question, Can you eloborate how do I use Class.getResource?
I have .jar files in a directory and I want to find which JVM each one is using.

Thanks for your reponse
Gemini
13 years ago
How do I find which JVM is being used for a jar file?

Please help.
13 years ago