Win a copy of High Performance Python for Data Analytics this week in the Python forum!

arvindh seshadri

Ranch Hand
+ Follow
since May 10, 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 arvindh seshadri

I am trying to use LRU eviction algorithm and in my application I created an LRU Eviction object with maxage as 3000 and set the cache region to the node-A and I added several nodes under the root node-A and put the thread to sleep for 1000 MS and I expected that while the thread is sleeping and after 3 seconds , all the nodes under the node "A" will be removed but it did not.

Can somebody throw some light on this?



11 years ago
The best practice is to have create() method in the bean .
Line items need not be persistent . They can be classes as you suggested.
You are developing an online shopping store for an art gallery. The company aims to bring fine art to the masses and expects a huge volume of traffic through the site. The site allows customers to pay for goods and arrange delivery methods using credit cards. You have read through the requirements and have a rough design in your head. Which of the following is the most appropriate rough design for this site?



A Have an Entity Bean to represent the customer. Use a Servlet to manage the users session and use BMT to manage the transactions.

B Have an Entity Bean to represent the customer. Use a Stateful Session Bean to manage the users session and use BMT to manage the transactions.

C Have an Entity Bean to represent the customer. Use a Servlet to manage the users session and use CMT to manage the transactions.

D Have an Entity Bean to represent the customer. Use a Stateful Session Bean to manage the users session and use CMT to manage the transactions.

My answer would be C . Because SSB are costly in resource management .Servlets are light weight and can very well accomplish the task .
Choice of EJB or servlets for session management may be dependent on the foll factors

1. transaction- if transactions are involved then EJB as they offer declarative transaction management.
2.Light weight session management - servlets are better.
3.Servlets are boundary to the system and support concurrency and session management and hence can be exposed to the external world as opposed to EJB . EJB always adds more layers ( BD, SL, PROXY, HOME FACTORY) and can be exploited in intranet applications and SOA within enterprise .



Thanks,
Arvindh
Hi ,
I have a question to all the SCEAs. Haw far has SCEA enriched your career in terms of monetary compensation and moving on (especially in North America ). Have you seen marked improvement in your career apart from the personal satisfaction. Please voice your opnions and views .


Thanks,
Arvindh.
First I would like to thank Javaranch for this wonderful forum which helped me in getting the certification .

The exam is not very difficult . I slipped in areas of JAXR and security as i didnt cover all the topics of JAXR and security . Most important thing is playing with the verbs in security . Please read very carefully .
Zaikin's prep material is awesome and helped me a lot . JAXR is such a verbose topic to cover .


I would suggest the following for people who are preparing

1.J2EE webservices by RMH
2.J2ee blue prints- Must read
3.Zaikin's prep material - Must read especially Chapter-8 Security.
4.Specification of SOAP , jaxrpc.


cheers ,
Arvindh
15 years ago
First I would like to thank Javaranch for this wonderful forum which helped me in getting the certification .

The exam is not very difficult . I slipped in areas of JAXR and security as i didnt cover all the topics of JAXR and security . Most important thing is playing with the verbs in security . Please read very carefully .
Zaikin's prep material is awesome and helped me a lot . JAXR is such a verbose topic to cover .


I would suggest the following for people who r preparing

1.J2EE webservices by RMH
2.J2ee blue prints- Must read
3.Zaikin's prep material - Must read especially Chapter-8 Security.
4.Specification of SOAP , jaxrpc.


cheers ,
Arvindh
15 years ago
Hi Zaikin ,
I have emailed my request for quiz using my hotmail id . Can you kindly send them ASAP as i am taking the exam this weekend .

Thanks
Arvindh
Hi ,
I am deploying a webservice application in tomcat and i am getting the following exception . I do have the servlet-api.jar in the classpath as well as in the installdir/common/lib .

SEVERE: Error configuring application listener of class com.sun.xml.rpc.server.h
ttp.JAXRPCContextListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener


Thanks
Arvindh
15 years ago
Hi ,
I wrote a simple JAXRPC jse and tried to deploy in weblogic 81 and i am receiving the following exception

<Oct 4, 2005 12:50:25 PM EDT> <Error> <HTTP> <BEA-101216> <Servlet: "WebServiceS
ervlet" failed to preload on startup in Web application: "pojo_jserpc".
javax.servlet.ServletException: Web Service init() failed: java.lang.NullPointer
Exception


The following is the code snippet of my JSE


/******************************************************************/


public class CurrencyJSE implements currency.CurrencyIntfc , ServiceLifecycle {


ServletEndpointContext ctx = null;
ServletContext servletContext = null;
int maxTry =5;
Hashtable currencyTable = null;




public void init(Object context) throws javax.xml.rpc.ServiceException
{


ctx = (ServletEndpointContext)context;
servletContext = ctx.getServletContext();
/*String env= servletContext.getInitParameter("MAX_TRY");
if(env == null)
{
env="5";
}
System.out.println("MAX TRY="+env);
maxTry = Integer.parseInt(env);*/

currencyTable = new Hashtable();

currencyTable.put("AUD", "30") ;
currencyTable.put("USD", "44") ;
currencyTable.put("SGD", "28") ;
currencyTable.put("MYR", "10") ;
currencyTable.put("CAD", "32") ;
currencyTable.put("INR", "1") ;





}

public String getCurrency(String toCountry , String amount)
{
String value = null;
String result = null;
int currentValue = 0;

result = (String)currencyTable.get(toCountry);

currentValue = Integer.parseInt(amount)* Integer.parseInt(result);

System.out.println("Current value="+currentValue);

value = String.valueOf(currentValue);
return value;
}

public void destroy()
{
System.out.println("CurrencyJSE DESTROYED *********");
}

)
/**********************************************************************/
15 years ago
Hi ,
I wrote a simple JAXRPC jse and tried to deploy in weblogic 81 and i am receiving the following exception

<Oct 4, 2005 12:50:25 PM EDT> <Error> <HTTP> <BEA-101216> <Servlet: "WebServiceS
ervlet" failed to preload on startup in Web application: "pojo_jserpc".
javax.servlet.ServletException: Web Service init() failed: java.lang.NullPointer
Exception


The following is the code snippet of my JSE


/******************************************************************/


public class CurrencyJSE implements currency.CurrencyIntfc , ServiceLifecycle {


ServletEndpointContext ctx = null;
ServletContext servletContext = null;
int maxTry =5;
Hashtable currencyTable = null;




public void init(Object context) throws javax.xml.rpc.ServiceException
{


ctx = (ServletEndpointContext)context;
servletContext = ctx.getServletContext();
/*String env= servletContext.getInitParameter("MAX_TRY");
if(env == null)
{
env="5";
}
System.out.println("MAX TRY="+env);
maxTry = Integer.parseInt(env);*/

currencyTable = new Hashtable();

currencyTable.put("AUD", "30") ;
currencyTable.put("USD", "44") ;
currencyTable.put("SGD", "28") ;
currencyTable.put("MYR", "10") ;
currencyTable.put("CAD", "32") ;
currencyTable.put("INR", "1") ;





}

public String getCurrency(String toCountry , String amount)
{
String value = null;
String result = null;
int currentValue = 0;

result = (String)currencyTable.get(toCountry);

currentValue = Integer.parseInt(amount)* Integer.parseInt(result);

System.out.println("Current value="+currentValue);

value = String.valueOf(currentValue);
return value;
}

public void destroy()
{
System.out.println("CurrencyJSE DESTROYED *********");
}

)
/**********************************************************************/


Thanks
Arvindh
Theres no such thing as a place where there lots of java jobs . All the metros have jobs . And being employed is the best .
15 years ago
please advice .. In what case I can settle down there.

If some sing company select me ...how they can give me workpermit ( is they or i, will face problem in getting work permit ?) then please tell me the ways to sort it out..?

Theres no problem in getting work permit for it jobs in sg ,.

I really wanted to settle in singpore..?

If you wanted to settle in sg , you should first get PR (Permanent residency) for which you should have a decent salary and you company should apply for it . You cant apply for PR for certain categories of Work permit . The Work permit is categorized based on nature of job ( white collar , blue collar) , education , nationality and pay . i think some of the categories are q1 , q2 , p1 , p2 .

PR is like temp resident for 5 years and then once again u can apply . By the time you apply for the second term of PR , you should recieve invitation from the govt for citizen ship else after the second term you can never come back .


How is singapore java market as compare to Indian market with respect to GROWTH ? ( i know indian market is hot..but is singpore is bad or good or average or what ?)

The job market was sluggish till 2003 . May be its okay now . Sing market is a dependent economy . The whole of SE asia economy is a dependent economy and is in very bad economy crisis especially after 911 . Sing market can never be compared to the bullish indian job market .

No2 . Never expect heavy price unless your skin color is white or yellow .

oRDER OF Preference 1. sg native 2.Americans or britis 3.Australians or Eu 5. chinese 6. indians 7. malays



What salary should i expect ?
for 3 years expect 3500 . for 5 years expect 4500

within a year I am also planning to give scbcd and scwsd exam...as i have already purchased the vouceher on discount..

Its good to have certifications . Atleast its one way to keep abreast of the technology .

Best of luck lah.

Thanks
15 years ago
You can chew gum in singapore now though with some restrictions .economy is gaining back .

And as for u Sampige Malleswaram

Its already flooded by the time you people arrived . Didnt u notice that . Please refrain from posting such humiliating comments .

Live and let live .

Arvindh
15 years ago