Sasi Kumar

Greenhorn
+ Follow
since Jan 18, 2002
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 Sasi Kumar

I am working as Architect in Bangalore. After 4 year hard work in my current company I got promoted from Tech Lead to Architect.

Now I got an offer in a differnt company in Bangalore which gives me 40% hike from my current salary but rolewise it is one level down (Tech Lead).

I am bit confused whether to take up that offer or not. What do you guys suggest?

I consulted some of my friends to a take good decision. Some friends says salary is important and some friends says role is important (as higher role gets more salary in India than lower role).



13 years ago


Which company in Bangalore offers good pay and also have decent work-life balance?




13 years ago
Hi


1. How to make up my resume?
Use monster.com or naukri.com service to prepare resume


2. what are the topics i should prepare well for the interviews?
Just google on "J2EE" interview questions

3. should i relay on any real time projects?

You can try small companies first to gain experience.
Learn the technologies- servlet, jsp, struts, html and javascript to land into a job soon
You can also learn php as most of the small companies use this

4. if so how can i start doing project?
www.rentacoder.com is where you can get real projects and you will be paid for that


13 years ago
We want to implement Licensing solution for our product and also we want to
protect our source code.

I heard the Byte-code encryption is better than obfuscation.

We want the best solution and also we are open for using Open Source / Licensed tool.

Please help us in this regard.
14 years ago
We want to implement Licensing solution for our product and also we want to
protect our source code.

I heard the Byte-code encryption is better than obfuscation.

We want the best solution and also we are open for using Open Source / Licensed tool.

Please help us in this regard.
14 years ago
Please let me know the soultion for the problem posted Below.

This occurs when we get connection from datasource. Database configuration
is proper here.

Thanks
Prabakaran.N
com.infosys.j2ee.subframework.persistence.dao.DBException: Could not lookup the data source
at com.infosys.j2ee.subframework.persistence.dao.impl.DSDBStrategy.init(DSDBStrategy.java:79)
at com.infosys.j2ee.subframework.persistence.dao.impl.DSDBStrategy.openConnection(DSDBStrategy.java:91)
at com.mitsubishi.fuso.posts.auth.dao.AuthorizeUserDAOCommand.execute(AuthorizeUserDAOCommand.java:135)
at com.infosys.j2ee.subframework.persistence.dao.impl.GenericDAO.execute(GenericDAO.java:118)
at com.mitsubishi.fuso.posts.auth.dao.LoginDAO.authorizeUser(LoginDAO.java:88)
at com.mitsubishi.fuso.posts.auth.bo.LoginBO.authorizeUser(LoginBO.java:88)
at com.mitsubishi.fuso.posts.auth.ejb.LoginFacadeBean.authorizeUser(LoginFacadeBean.java:124)
at com.mitsubishi.fuso.posts.auth.ejb.EJSLocalStatelessLoginFacade_6ebd54ea.authorizeUser(EJSLocalStatelessLoginFacade_6ebd54ea.java:23)
at com.mitsubishi.fuso.posts.auth.handler.LoginHandler.process(LoginHandler.java:93)
at com.infosys.j2ee.utils.controller.impl.RequestProcessor.process(RequestProcessor.java:77)
at com.infosys.j2ee.utils.controller.impl.Controller.postFilterProcess(Controller.java:112)
at com.infosys.j2ee.utils.controller.impl.Controller.onFiltersApplied(Controller.java:97)
at com.infosys.j2ee.utils.controller.impl.FilterChain.doFilter(FilterChain.java:71)
at com.infosys.j2ee.utils.controller.impl.Controller.process(Controller.java:79)
at com.infosys.j2ee.subframework.businesslogic.impl.BLFControllerBean.process(BLFControllerBean.java:104)
at com.infosys.j2ee.subframework.businesslogic.EJSLocalStatelessBLFController_cb65dc0a.process(EJSLocalStatelessBLFController_cb65dc0a.java:23)
at com.mitsubishi.fuso.posts.web.delegate.FusoWebDelegate.handleEvent(FusoWebDelegate.java:96)
at com.mitsubishi.fuso.posts.web.action.LoginAction.authorizeUser(LoginAction.java:244)
at com.mitsubishi.fuso.posts.web.action.LoginAction.loginUser(LoginAction.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:252)
at com.mitsubishi.fuso.posts.web.common.BaseAction.execute(BaseAction.java:80)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at com.mitsubishi.fuso.posts.web.common.FusoControllerServlet.process(FusoControllerServlet.java:221)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Caused by: com.infosys.j2ee.utils.misc.ServiceLocatorException: Error while looking for a datasource using the jndi name - fusojndi
at com.infosys.j2ee.utils.misc.ServiceLocator.getDataSource(ServiceLocator.java:235)
at com.infosys.j2ee.subframework.persistence.dao.impl.DSDBStrategy.init(DSDBStrategy.java:77)
... 51 more
Caused by: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://localhost:2810". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. [Root exception is org.omg.CORBA.TRANSIENT: java.net.ConnectException: Connection refused: connect:host=blrkec42151d,port=2810 vmcid: IBM minor code: E02 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mapInitialReferenceFailure(WsnInitCtxFactory.java:1863)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1130)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:678)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:606)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:481)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.infosys.j2ee.utils.misc.ServiceLocator.getDataSource(ServiceLocator.java:228)
... 52 more
Infosys Technologies,Bangalore is recruiting for all the technologies
(Java,J2EE,.Net, Mainframe or any technology)

All CVs should have following mandatory details : (This is very important)

Full name & date of birth
Work experience (Name of the organization/s; Roles & Responsibilities) & Year(s) of joining
Academics :
Please give the following details for 10th standard (SSLC) , 12th standard (HSC) , UG and PG (if any) :
* Year of passing
* Name of University/College/School
* Percentage or GPA (including all semesters)
Contact email id, Telephone no. and Current snail/mail address.

Send your CV to prabakarann@infosys.com
17 years ago
If you give a easy solution for this problem, then you are very good in JDBC.
The following SQL query should be executed only
through PreparedStatement. You should not use
Statement.
Query is
select employees from employeemast where
employee_id in (1,2,3,4,5)
This you have to give in prepared statement as
select employees from employeemast where
employee_id in (?)
The values (1,2,3,4,5) will change dynamically in
a for loop.
if you say
preparedStatementOb.setString(1,stringValue)
here stringValue = "1,2,3,4,5"
This setSting will wrap a single quotes in
the query ie, query will build by java like following.
select employees from employeemast where
employee_id in ('1,2,3,4,5')
which will cause invalid number error. since
employee_id is a number in database.
You should not dynamically build ? in the query
like following
select employees from employeemast where
employee_id in (?,?,?,?,?)
There should be only one Question mark.
If you find a solution then u are great.

Most of the servers have inbuild connection
pool. You can get the connection by
creating a datasource in the server.
If you are using struts framework you can
use the connection pool written in struts.
See struts-config.xml where you can define
you datasource
19 years ago
Hi
Keep the following code as an example. Use the
same code in a servlet or JSP. Pass the URL of
the server where the file resides and run the servlet or jsp in the server , where u have to copy and give the path of that server instead of
"e:\\test.html".

import java.io.*;
import java.net.*;
class StoreJSP{
public static void main(String arg[]){
try{
String urlStr=arg[0];
if(!urlStr.startsWith("http://")){
urlStr="http://" + urlStr;
}
URL urlOb = new URL( urlStr );
URLConnection jspCon = urlOb.openConnection();

// inform the connection that we will send output and accept input
jspCon.setDoInput(true);
//jspCon.setDoOutput(true);
// Don't used a cached version of URL connection.
jspCon.setUseCaches (false);
DataInputStream din=new DataInputStream(jspCon.getInputStream());
//give the server path and the required path instead of e:\\test.html
File f2=new File("e:\\test.html");
FileOutputStream fout= new FileOutputStream(f2);
String str=null;
while((str=din.readLine())!=null ){
for(int i=0;i<str.length();i++){
fout.write( (int)str.charAt(i) );
}
}
}catch(Exception e){
System.out.println(e);
}
}
}
20 years ago

Originally posted by edi:
Dear all!
my problem is to pass a file(cripted) which resides in one server to another server.
I wanted to know which would to be the best way to pass it?
At the momment I am using a URL object that calls a servlet passing the Stream that contains the file.
I have tried to use two servlets(passing the stream to the response of the caller and taking it from the request of the other one, but I have got problems with the headers.
thank you!
ciao!

20 years ago

Prabu:

Mutable means Changeable ( StringBuffer )
ImMutable means Not Changeable ( String )
For every change that you made to a String will
lead to create a new memory space.
Example:
String test="hai"; // memory is allocated
test="hello"; //now memory of "hai" is left and mew memory for "hello" is created. This "hai" memory will be Garbage collected. But this will not happen in StringBuffer, the same memory will be used.

20 years ago
Can any one of u please let me know about
How to use jdk1.3 classes in visual age