Sivalingam Sivasuthan

Ranch Hand
+ Follow
since Jan 12, 2001
Merit badge: grant badges
For More
Australia
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 Sivalingam Sivasuthan

Thanks Christophe, I had the same issue solved by your solution.
13 years ago
JSF
Hi Andrew,
Thank you, That link is really good. I bought Sun Certified Enterprise Architech for J2EE By Paul Allen & Joseph Bambara. If you have come a cross free mock exams please let me know.
Thank you
Regards Siva
I have decided to do the SCEA. I don't know where to start and How long I will have to study to pass the Exam. Hope you all guys will help me to get through this Exam as you all did when I did the SCJP....
-Siva
Hi Kyle,
You are right According to the InfoCenter it clearly says I have to install an application client container. But It doesn�t mean that we cant do it without that. Here are the Steps if you wish try this its works fine with WAS5.0.
1.Copy the jre folder from the WAS_HOME\java\ and paste it in your client Machine and set the Path that jre\bin. Make sure that that is the path for the java.exe
2.copy the following jar files from WAS_HOME\lib
�ecutils.jar
�ffdc.jar
�idl.jar
�iwsorb.jar
�j2ee.jar
�naming.jar
�namingclient.jar
�namingserver.jar
�ras.jar
�tx.jar
�txPrivate.jar
�utils.jar
�wsexception.jar
and place it in your classpath
3.copy implfactory.properties file from WAS_HOME\ properties and place it in your classpath
4.and what ever the EJBs jar file you can copy this from your WAS_HOME\installedApps\<servername>\<AppName.ear> and place it in your classpath
5.Now write you Client and run it will run Sample Client Code:
<CODE>
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.*;
import javax.ejb.*;
import javax.rmi.*;
import com.jkcs.ws.demo.ejb.entity.*;
public class MyClient{
public static void main(String args[]){
UsersRemote usersLocal = null;
UsersRemoteHome usersHome = null;
String LoginStatus = null;
System.out.println("Begining of the userLogin method...");
try{
if (usersHome == null){
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://bdc-server1:2809");
Context initialContext = new InitialContext(env);
Object objRef = initialContext.lookup("Users");
usersHome = (UsersRemoteHome) PortableRemoteObject.narrow (objRef,UsersRemoteHome.class);
System.out.println("Successfully Got the UserHome");
}
usersLocal = usersHome.findByIdentity("Siva", "password");
LoginStatus = "Hi "+ usersLocal.getUsername()
+ "! you are Successfully Logged in";
} catch (NamingException ne) {
System.out.println("NameingException.....");
ne.printStackTrace();
} catch (FinderException fe) {
System.out.println("FinderException...");
LoginStatus = "Login Failed!, Please try Again.";
fe.printStackTrace();
} catch (Exception fe) {
System.out.println("Exception...");
LoginStatus = "Login Failed!, Please try Again.";
fe.printStackTrace();
}

}
}
</code>

Regards
Siva
20 years ago
Hi Rahul,
I've faced the same problem and this is how I’ve resolved it. Check in you WAS's lib there you will find ras.jar put that in your class path and see.
What I have done is first of all place my java class in the lib and set all the jars to it
These are the most important jars to be in your set classpath=.\j2ee.jar;.\naming.jar;.\ecutils.jar;..\properties;.
Just try out this way and let me know
For me it’s worked. Yet I didn’t find out a way to do it from remote machine...
Hope this would help.
Regards
Siva
20 years ago
Hi All,
I need to call ejb deployed on WAS5.0. Is there any Simple way to do that?
Any help would be appriciae..
Thanks in Advance

Regards
Siva
20 years ago
Hi All,
I am having a problem like this hope you all guys can help me out ... I have a small mailing programme that sends mails as soon and there is a record insert/delete/update in to my Oracle Database Ok. This mailing programme runs in a different machine and its keep on checking the database for the changes. We have regular power change over when it happens the is a Exception in my Log saying Connection reset by peer. How can I get rid of this error?
Thanks in Advance.
Siva
21 years ago
Wish you all the Best!
Siva
Congratulation!!!
Best wishes !!!
Siva
22 years ago
Congrads!
&
Wish you all the Best

Siva
22 years ago
Hi Sunitkumar Survase:
(a [ (a = b) [ 3 ]] )
In this experssion you may notice there are 2 arrays(outer a[] array and an inner (a=b)[3]---> b[3] array) both arrays will be get evaluvated to
a[b[3]]
b[3] is 0.
So a[0]. which in turn will give 1
-Siva
Congratulations! Rajesh Radh
All the Best.
-Siva
22 years ago
Hi Dilshad Syed:
Both object reference and String reference can be assigned with null. JVM assumes that the null is used as a reference for a String Object.Because String extends the Object, So the Overloaded method with String argument will be called(at the runtime most Specific Version).
-Siva

Originally posted by Rana Thakur:
Or maybe what siva means is that (in his example), when I call A.CalDifference(B) then CalDifference () of A is being invoked. Inside that function the value of private variable iFeet of object A can be accessed (this.iFeet) and the value of private variable iFeet of object B can be obtained too (feet.iFeet).
Thus in this function not only I can access the iFeet of A (which is invoking this function) but also the private field i.e. iFeet of object B.
And of course, other than the class Feet, say in class PrivateAccessTest, if one tries to access the private variable of any object the compiler will complain.


Rana Thakur you are right that is what I tried to show you in my example.
-Siva
Hi Shailendra Guggali:
I am Sorry that default constructor is not relevant to this topic.
Reference A,B are different instants of the Same Class Feet. In CalDifference() method We are accessing the private variable of instance B directly(as feet.iFeed,notice that feet is an another object of the Same class).
-Siva.