Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

Nathan Mathi

+ Follow
since Dec 13, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nathan Mathi

We are using remote weblogic server 8.1 and we are using JNDI InitialContext for doing the LDAP authentication. We are passing user id, password, provider url and context factory for creating IntialContext as mentioned below.

This is inside the servlet code:
env.put(Context.SECURITY_PRINCIPAL, uid);
env.put(Context.SECURITY_CREDENTIALS, pwd);
InitialContext ic = new InitialContext(env);

The LDAP is configured properly and we are passing cn,ou,dc as part of security_principal.

Our question is: what will be provider_url, we tried with t3:\\hostname:7001 and when accessing the servlet it is giving ConnectException for this url.

Any help is greatly appreciated!

Let me know for any questions.

Nathan Mathi.
14 years ago

I was going through EJB3.0 specs. Just correct me if my understanding is correct reg interceptors.

Assuming we are using Interceptor classes and it is associated with the bean:
--whenever there is a call to any business method, interceptor classes are invoked first before calling the business method.
--The Interceptor methods are used to perform any required operations prior to calling business mehtod e.g audit checking, security check etc as given in spec. Is there any other purpose interceptors are used which i'm missing?
--From the interceptor class, we can invoke methods from normal POJO class??
--At the end of interceptor method invocation nothing is passed to business method.

For ref, see EJB3.0 spec(simplified), P-25.

[ July 07, 2006: Message edited by: Nathan Mathi ]

Originally posted by Thomas Taeger:

Could HTTPS turn the communication with a stateless Session EJB to a stateful communication so the same EJB would be locked for the duration of the HTTPS session? Thereby allowing multiple server turn-arounds within one HTTPS session?

I dont think communication protocol has any effect on functioning stateless/stateful beans.

Also, for SF beans, once the bean state is passivated, the same bean can accept request from some other user, so i guess we cant say the bean is locked.

Any other thoughts?
I contacted SUN and here is their reply,

Yes. You will just need to purchase each part in the country where you want to take that part of the certification.


Thanks for the detailed explanation. That gave me more insight on this and thanx for the link.
15 years ago

Originally posted by Bear Bibeault:

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

I was not aware of this. I modified now.
15 years ago

I've few questions reg JVM and Classloaders.

1. Are multiple JVMs be installed in single machine/processor?
2. If so, there is a chance to have each classloader in each JVM per machine/processor, right?
3. What is the ideal production environment, does it have multiple JVMs in single processor? If so, how to avoid Classcastexception if we have same class instance in both the JVMs?

15 years ago
Throw the exception from the server and catch it in your action class. Then, you can customize the message accordignly based on the exception.
15 years ago
yeah..i'll do that...jus wanted to know if anyone come across..

I dont know if its asked before or not. I'm planning to take SCEA. Can i take Part-I in US and take Part-II and Part-III copule of months later in India?

thanx for the reply!
Hi, is there any time limit for taking the Part-2&3 exam after taking
Part-1, means if i take part-1 now and can i apply for part-2&3 next month?