Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

veesam sridhar

Ranch Hand
+ Follow
since Oct 18, 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 veesam sridhar

Hi All,

Today I came to know, that SUN discontinued SCWCD 1.4 exam, Actually i planned to take the exam tomorrow. I have prepared Head First Servlets and JSP and practiced whizlabs1.4 exam simulator.

My question is: Is my preparation enough for SCWCD1.5 examination also?,
My vocher will be expired by this month end.
Some body please tell me the difference between SCWCD 1.4 and 1.5 and how to prepare for 1.5 with in short period.

Thank you,
Sridhar.
Hi Ranchers,

I have a question on synchronization.
what happens if I write the following code.
----------------------------------------------------
public synchronized class Example{

}
----------------------------------------------------
what is the effect of the above class on its objects?

1)Can different threads create or access objects of Example class at the same time?

2)If I write the synchronized keyword for class does it mean all the static methods of the class will become synchronized? or all general methods will become syncronized?

3)If it is class level lock ,If it is class level lock does it effect on object creation process(like one thread at a time can create an object or only one object can be created for that class .... I am a bit confused ).


Please explain how the synchronization works in this particualr scenorio.

Thanks in advance,
Sridhar Veesam.















Hi,

I configured JNDI connection and I am able access the datasource from jsp

I wrote a normal class for getting connection in src directoy of my application:
-----------------

import javax.naming.*;
import javax.sql.*;
import java.sql.*;


public class Connection{

public static Connection getConnection()
{
try {
Context ctx=new InitialContext() ;
if (ctx==null)
throw new Exception("No Context is there");
DataSorce ds=(DataSorce) ctx.lookup("java:comp/env/jdbc/mysqldb");
if(ds!=null)
{
Connection conn=ds.getConnection();
return conn;
}
else
throw new Exception("Could not get connection");
} catch(Exception e) {
e.prinStackTrace();
}

}




}


-----------------

I am trying to compile that class.

But it is govoing the following error:
---------------------------------------------------------
Connection.java:4: cannot find symbol
symbol : class DataSorce
location: package javax.sql
import javax.sql.DataSorce;
^
Connection.java:17: cannot find symbol
symbol : class DataSorce
location: class Connection
DataSorce ds=(DataSorce) ctx.lookup("java:comp/env/jdbc/mysqldb");
^
Connection.java:17: cannot find symbol
symbol : class DataSorce
location: class Connection
DataSorce ds=(DataSorce) ctx.lookup("java:comp/env/jdbc/mysqldb");
^
Connection.java:26: cannot find symbol
symbol : method prinStackTrace()
location: class java.lang.Exception
e.prinStackTrace();
^
4 errors

--------------------------------------------------



I am not able to find out why it is saying Cann ot find DataSource symbol.

Please help me.


Thank you,
Sridhar.
13 years ago
Hi Virajith,

I am going to take the exam in Febrary first week,I have finished reading the Head First Serlvlets & JSP twise...,I am following only that book.
Can you suggest me some guide lines for preparing for final exam,how many mock exams we should take for good score like you,and what are the mistakes we do useually in exam and while we are preparing for final exam, please send me the links for best mocks you took before exam (any notes you prepared for exam).I hope your suggestions will benifit me alot at this point of time.



Thanks in advance,
Sridhar Veesam
Congratulations .......great score
Great score...
Congratulations
Congratulations.......

cheers...


Congratulations...

great score...........





Sridhar.Veesam
Congratulations,

cheers,
Sridhar Veesam
Congratulations.....
great score,

I have downloaded your notes from given link ,Thankyou for your great notes.

can you please tell me how much time it takes for a job holder(non java developer). to write exam ?

in your case how much time you took for preparation?

Thankyou,
Sridhar Veesam.
Congratulations great score
Congratulations...





How much time you took for preparation.....
Thankyou Lassy,I am trying that.

Sridhar Veesam
14 years ago
Hi guys,

which is the standard method for connecting to the database in struts ,With using out any application server.

Please help me anybody..

Thankyou in advance,
Sridhar Veesam.
14 years ago
Thankyou for your quick response..
I got the point ,
I will work on it to get it done.


Sridhar Veesam
14 years ago