Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!

Muthukrishnan Manoharan

Ranch Hand
+ Follow
since Aug 27, 2008
Muthukrishnan likes ...
Eclipse IDE Firefox Browser Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Muthukrishnan Manoharan

I am using Jersey to expose my REST webservices.

I have the following classes



Definition of Child1


Now in definition of my service, Resource.java, I have the following service defined


So for the above service, if I invoke with child XML, for example


It does not convert to the proper sub class (Child1, in this case). It is still BaseClass and my System.out.println() prints "BaseClass". I want it to get the proper sub class.

Please let me know if I am not clear with my question.

Thanks
Muthu
6 years ago
Hi,

I am trying to construct a SOAPMessage message as follows and dispatch it using a service.




I wanted to know how to send the java.net.Proxy object when I invoke the service. I do not want it to be sent using System.setProperty(<Proxy Information>). It will be better to send it as a Proxy object.

Please let me know if I am not clear.

Thanks
Muthu
6 years ago
Currently how are you reading the config file(when it is in the src folder)?

If you will have to separate the config file outside your war, then you may have to know the exact location of the config file and load using FileInputStream.
If not, this file's location should be in your class path and you should use
getResourceAsStream to load this file.

7 years ago
I want to load a jar dynamically after my application starts. So I used a code like this


So after loading this JAR, to access the classes exposed by this JAR, is reflection the only solution?
Or can I access the classes(exposed by this sample.jar) without using reflection, since the C:\sample.jar will be available for me to compile my code without dependency errors. I will load the jar dynamically during execution.

Please let me know if I am not clear with my question.
7 years ago
My PEM file is of this format:

-----BEGIN RSA PRIVATE KEY-----
DWdwdmmx21m1l

-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIDKTCCAhECdwdw

-----END CERTIFICATE-----
8 years ago
Hi all,

I am very new in accessing HTTPS URL through Java. I am currently given a client.pem file and asked to access a REST HTTPS Service using the client pem file. May I know what are all the steps to be followed programatically to access the HTTPS through Java.


Thanks in advance
Muthu
8 years ago
Thanks for the reply.

for 289 I took the last element 9 and multiplied with the remaining
for 456 I took the first element 4 and multiplied with the remaining
for 748 I took the middle element and multiplied with the remaining

so for 387 i again took the last element

Its just my very random guess and I am not sure if this is the solution.
Hi all,

289 => 187262
456 => 202492
748 => 283206
387 => ?

my observation:

289 => take 9 => 9*2=18, 9*8=72, 9*2+8=26 --> reverse it => 62 ==> 187262
456 => take 4 => 4*5=20, 4*6=24, 4*6+5=29 --> reverse it => 92 ==> 202492
748 => take 4 => 7*4=28, 4*8=32, 7*8*4=60 --> reverse it => 06 ==> 283206

so 387 ==> take 7 ==? 7*3=21, 7*8=56, 7*3+8=29 --> reverse it => 92 ==> 215692


Do you think I am correct. Or any suggestions or ideas? Help me please..
Hi all,

Please ignore the previous code. Since I am creating newInstance from the class obtained, it is obvious that it executes the static content.

But this is my actual code and corresponding output. My version of JDK is 1.5.

Example1:


output:


Example2:


output:


9 years ago
Thanks Chris,

I actually followed the tutorial first and tried to execute an example from my understanding.


But the output I get from using Class.forName("ClassName") and ClassName.class are different as I said above. Is it normal or am I missing something.
9 years ago
Hi all,

May I know how does Class.forName("ClassName") different from ClassName.class. For example, I tried to execute the following




My output :



Also, I tried the following,


My output:


So doesn't it load the class when I say ClassName.class, but loads only when I use the Class Object to get constructors(cls.getConstructors()) or methods?

9 years ago
Hi,

I would like to know if there are some courses on high performance and scalable infrastructure and applications. With cloud computing becoming popular, I feel this topic would be given much importance (though it is always important) in future. Is there any book which explains it better or any course in India which can help me understand the concepts. Or any suggestions of how can I improve myself in these lines.

Thanks in advance
9 years ago
Did you try
I believe there are some really good US MNC service companies in India, who pay near to a product company.

I wanted to know, how difficult will it be to convince an interviewer for a reason to switch from product to service and later service to product. Because I have nearly two years of experience(just out of campus) in a product development company. I am not getting a chance to do core coding in J2EE stuff(middleware, JSP, Web frameworks like struts, JSF etc.,). I am getting chances to work only in Core Java. So I am bit concerned as this is the good time to learn J2EE related frameworks and concepts. So planning to switch to a service company which can offer me such a job. But I am little hesitant as to know how difficult will it be to switch back to product development after some 3 or 4 years in a service base company.

Please suggest me with your points.
9 years ago
hey Arun,

That was really a good video..

9 years ago