Anil Chandran

Greenhorn
+ Follow
since Apr 11, 2005
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 Anil Chandran

Hi I am back.

Since SPs are stored in DB and thus they are precompiled , will that improve the performance ( Yes, we are building dynamic query inside SP but..)

For normal query we need to do that compilation step. right ?

What you think ?
Thanks for the info.
But I am not convinced :-( . may be because of the info "SP will improve perfromance" is drilled to my head.
Hi All,

I have often heared that SP will improve performance when compared with similar query.Both SP and query as executed from Java ( CallableStmt and prepared Stmt respectively)

But any idea like howmuch % of performance is improved and what all are the factors added to this improved performance?

Thanks
Anil
Only at runtime it can be made sure that the object cant be casted to a string .

Object is a super class of String . So casting an object to string cant cause a compile time error.
15 years ago
To display the messages
use
<c ut value="${message}"/>
instead of
<bean:write name="message" />

I hope you are using jstl tags

Else use this also in your jso
<%@ taglib uri="jstl/c" prefix="c" %>

and
<taglib>
<taglib-uri>jstl/c</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
in web.xml
15 years ago
doument.yourform.yourRadiButton.checked = false to make the deselection
15 years ago
Can we create objects at compile time?

Or in a simple sense

String s = "hello world" ;

When is the object created ? Runtime or Compile time ?

Thanks in advance

Anil
15 years ago
How can it be ?
The class.getMethod() function returns only public methods .
Is there any way that we can get the protectected/private methods(instance of java.lang.reflect.Method) to call setAccessible(true).

So I think there is no way that ,we can access protected member from a nonderived class.
15 years ago
Go ahead . I got 93 % with just one week preparation using k&B only . There is nothing out from that . So go ahead and attend . You can score more than 90%
15 years ago
We need to consider isIdentical() same as equals() method.)
I am using same in the sense we are checking the remote objects for some meaningful equality.( Not same asthe checking for identity using == operator)

So for stateless session bean the the objects coming from the same home are meaningfully equivalent.
For entity bean , if the beans are representing the same entity in DB and we are checking their EJBObjects using isIdentical,they are meaningfully equal.So it will return true.
I also think so :-)
Could you please send the relevant part of the config file also.
15 years ago
Is there any way to hide the password property from datasource in datasouce
That means .
<data-source type="org.apache.commons.dbcp.BasicDataSource">

.
.
<set-property property="password" value="anil" />
</data-source>
IS there anyway to avoid setting the value of password in config file as shown above and still I have to get the database connection through this way ?

Thanks
Anil C S
15 years ago