ravikant

Greenhorn
+ Follow
since Apr 25, 2002
Merit badge: grant badges
For More
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 ravikant

Originally posted by kundan varma:
Hi Stan,
But i got few replies which forced me to think why i am using EJB(spcecially entity beans) ??? And mostly EJB is preffered for distributed functionality so i asked what is the benefit of distributed technology, why it is used? what benefit it can give in future???

Thanks
kundan



As I understand, EJB (mainly for business logic) is used when you want EJB container (App server) to mannage the system level requirements (like security,connection pooling, transaction mgmt, availabiliy, scalability etc.). To answer ur question regarding distributed, you might deployment distributed in following scenario.
Scalability support - may be verticle(adding more cpu processing and memory) and then running multiple ejb containers or horizontal scalabaility adding more machines running app servs on diff machines).

Availabily - Critical apps should serve for 24/7 so you need clustering. This also avoid single point of failure.

So now as you know container takes care of these you can design your components to provide scalability in these areas.

Sorry if I mistaken anywhere.

Best Regards,
Ravikant
Hi folks!
We are trying to integrate Security Service Provider with Oracle 10g App Server, so that we can bypass container secuirty.But I want to take advantages of J2EE constraints specified in web.xml and ejb-jar.xml.Does anybody know how can I accomplish this without implementing UserManager API of Oracle 10g AS.
As I understand, JAAS is used for this kind of requirement, but I could take not advantage of J2EE security constraints if I used Custom JAAS Login Module. Will appreciate if anybody can give me pointers which will help me to integrate Custom Login Module.

Best Regards,
Ravikant
19 years ago
Hi,
There is a always one instance of servlet and multiple treads(request)
excute the service method of servlet. By default this is the behaviour.

But if you implement SingleThreadModel interface, then you configure
no of instances on server specific file. Its all managed by container.

But as per new specs of j2EE, there wouldn't be any more support
to SingleThreadModel.

regards
ravikant
See by synchronized on service(or doGet or doPost)
method u can achieve same thing as of with SingleThreadModel inteface.But is not recommended
to synchronize the service method(or methods dispatched to it)because there could effect on performace.
And see the container is supposed to handle threading issues...
thanks
ravi
21 years ago
I want to make jdbc connection in java object,
wants to read some properties file which will be
containing detail about db server like sid,port and ip.
I used ClassLoader.getResourceAsStream method, if
i copy that property file in jdk/lib folder, then it works. If i keep it some where else it won't work?
please tell me how this ClassLoader works?
regards
ravikant
21 years ago