This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!

Mandar Joshi

Greenhorn
+ Follow
since Nov 21, 2007
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 Mandar Joshi

Remove Thread.currentThread().start(); . You cannot start a thread once it is started
Hi,

You get a linkage error when you have two classloaders loading the same class and one component in one classloader wants to talk to other component in other classloader using this common class.. For example

Class x {
//assume code here calls method(Abc) on Y.
}

Class Y {
void method(Abc abc);
}

Lets assume Classloader A loads x and ClassLoader B loads y and both the classloaders load Abc class. The fully qualified name of the class is classloader name + classname. So the classname of the Abc loaded by Classloader A is A.Abc and that by B is B.Abc . At runtime the loader will detect that there is a mismatch in the class names and it fails to link these together. Hence the linkage error.


To fix this problem make sure that this class javax/xml/stream/XMLStreamReader is loaded only by one classloader. You can search for the jars which have this class from findjar.com and make a scan in your system to see if you are loading redundant jars.

Thanks
Mandar
10 years ago

Hi,

I believe you have to set javax.net.ssl.trustStore property which is used by the TrustManager.

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzaha/rzahajssesysprops.htm

- Mandar
10 years ago

Hi,

I was reading the javadocs of TimeUnit class and i am perplexed as to what design benefits we get from extending the enum class with a class that is generic type of enum like below :

java.util.concurrent.TimeUnit extends java.lang.Enum<TimeUnit>

Thanks,
Mandar
I am using java first appraoch to expose java interfaces as web service using Apache CXF JAX-WS implementation.

@WebService
interface MyInterface {

public void method1();

public void method2();

public void method3();
}

I have exposed all these methods in a single wsdl. Now here are my requirements
1)Autheticate all the clients which use this webservice(i need to talk to ldap)
2)Authorization- since i have exposed all methods in single wsdl, the clients may invoke other methods which are not meant to be invoked.
For Example Client1 should invoke only method1, client2 --> method2 and so on.

I am stuck in point 2. I have a solution where in we can write Apache CXF interceptors which will first authenticate the clients using ldap. I can have a mapping of client and methods it can invoke. If the client invokes a method which is not in the map, i will throw an error. Are there any ways of handling this scenario ? Can i push this mapping to ldap ? I will pass the operation name and the user credential to ldap, it should authenticate and authorize the clients . And yes i want to give the same wsdl to all clients which will have all the operations. I am not sure if WS-policy can come to my rescue.

Thanks in advance!!
11 years ago