Raj Neets

Ranch Hand
+ Follow
since Nov 12, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Raj Neets

Getting the following error at runtime:
Exception in thread "main" java.lang.InternalError: fillbuf
at org.apache.crimson.parser.InputEntity.parsedContent(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source) etc etc etc
Am i running out of memory or something? What do i do to correct this problem.Any suggestions??
16 years ago
Hello Guys

I just start reading Head Frist EJB, I feel it has a conflicting information.On page 94, chap2 it says when homeobject recieves a create()call,the service kicks in and creates a bean object frist and then EJB Object but in page 100 it says EJB object is created frist and then Bean is instantiated. Which is true or it depends on EJBserver.

Raj
Hello Kathy
Thank you for clearing my doubt. Now i understood the concept. I just started reading your book its good at the same time the lady/girl pictures in your book is also equally good.
Hello Nathaniel
But in Head First EJB by kathy on page 105, the author say it is possible to passivate the StateFull Session Bean.Iam just confused.
Hello Every one
Iam just getting started with EJB, so a basic ?
What does it mean that Stateful session bean is not scalable and stateless session is scalable. I understand what is stateless and statefull session bean. Usually when we talk about scalability in a component means adding new function or feature, but what it means in a bean.

Thank you
Raj
I have just started with EJB, I have doubt regarding how a container implements concurrency when it comes to Entity bean.
Book(EJB by Richard) says that in entity bean instance can't be accessed concurrently though the EJBObject is shared by more than one client.My doubt is
If there is pool of instance (of beans) and two EJBObject associated with two different clients, both access the EJBObject at the same. Then instance associated with two EJBObject will be different ones.But the data in database represented by the EJBObject(or bean instance) will be same.When one Client changes the data and the other overrides the change, there is a chance at some point the data represented by the instances may be different.
Can some one please explain to me how a container takes care of this concurrency problem.

Thank you
Raj
I was taking a practice test, I came across the following question, in that ( HashMap localMap = new HashMap() decleared in doGet())correct answer was only localMap object is thread safe but other (hashmap)objects are not thread safe. can some please explain to why only localmap object is threads, my understanding was it is also not thread safe.
Consider the following code for a servlet:

import java.util.*;
public class TestServlet extends HttpServlet
{
static HashMap staticMap = new HashMap();
HashMap theMap = new HashMap();
public void init()
{
}
public void service(HttpServletRequest req, HttpServletResponse res)
{
super();
}
public void doGet(HttpServletRequest req, HttpServletResponse res)
{
HashMap localMap = new HashMap();
//do something
}
public void doPost(HttpServletRequest req, HttpServletResponse res)
{
HashMap sessionMap = (HashMap) req.getSession().getAttribute("map");
//do something
}
}
//[code]
Hello Every one
Can some one give me links to free mock exams for scwcd 1.3. Since iam taking exam in a week i want to practice.
Thanx
Raj
Can please say what was the error thrown. Before that trying closing the inputstream that u have opened with the request object.
I just cleared SCJP1.4 with 90%, the exam was not at all difficult.I found all practice exams more difficult.This is an excellent forum.Keep up the good work.

Thank you
Raj.
17 years ago
Can some please tell me whether
A static variable be inherited or not in the subclass
Thanx you
Raj
Thank you
but its a very complex issue to understand
Question
All the Java integral types are signed numbers
it is true or false.
can some please tell me this.
Thanx you.
Raj
Hello everyone
I have a doubt with following program's output.The output is 0 , i checked by executing the code but iam not able to understand the concept properly.Can someone please explain it to me.

I thought the statement i=i++ should work as follows
Frist assign i the value of i and then increment the value of i, so before the print statement executes, the i value should be increased to 1.but its not.

public class Inc{
public static void main(String argv[]){
Inc inc = new Inc();
int i =0;
inc.fermin(i);
// my doubt is here
i = i++;
System.out.println(i);
}
void fermin(int i){
i++;
}
}

Thank you
Raj