Abhra Kar

Ranch Hand
+ Follow
since May 22, 2008
Kolkata
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhra Kar

Hi,
     I am new to CXF and SOAP web services. I need to migrate from CXF2.x to 3.1.x in my project.SOAP is only using in the project.I copied all the jars of cxf 3.1.x to my project lib directory.So jar related no issue is there,
ant is building the project properly.But I have abc.wsdl. From this wsdl java classes were generating what mentioned in the wsdl:portType tag before migration.If Abcd is mentioned in wsdl:portType then
Abcd.java was genererting.

After upgraded to 3.1.x , java classes are generating based on xs:element tag.

Ex: <xs:element name="Aaa" type="tns:aaa"/>
So Aaa.java is generated.WSDL has many <xs:element name=... tag , so many java classes are generating, which is not the requirement. Abcd.java is not generating so SOAP call is failing. >


Below code is mentioned in the build.xml to convert from WSDLToJava ---
       


What change/steps I need to do to generate java classes properly from WSDL.

Thanks

5 days ago
Hi Junilu,
               Thanks for the idea. My knowledge limited to wait, notify , coundownlatch , cyclicbarrier .Semhaphoe and mutex still I haven't studied.I will check those and get back for any query.

Thanks
Abhra
3 weeks ago
That's true. But is there any option so that we can achieve this.
3 weeks ago
Hi ,

I have two threads, say Thread-1(print 1) and Thread-2(print 2). How I can call them in loop such that they will execute alternatively,
Output---  1 2 1 2 1 2 .....

Below code give me a output ----- 1 2 2 2 2 2 1 and then release the lock but no thread available to get the lock .



How we I can modify the code ?
Thanks
3 weeks ago
Hi,
    I am executing the below code and get output like ---
1
2
java.lang.IllegalMonitorStateException
at java.lang.Object.notify(Native Method)
at THREAD.Thread2.run(ThreadTest.java:42)
at java.lang.Thread.run(Unknown Source)

wait() and nofity() is calling from synchronize block then why this exception is coming?



Thanks
3 weeks ago
We serialize a Singleton object and save into a file Saved.txt. Now from a different jvm if we deserialize then deserialization use reflection and create a object with same instance values saved in the file.But it is a different object, so we get different hashCode.
But if we use readresolve() method in our singleton class then we will get same hashCode.
So the question is how we are getting a same hashCode?
The object we are getting now,should be a new object only not that one which we created at the time of serialization.

Our Singleton class is provided below—



Thanks
Abhra
1 month ago
Ok Got it.There is a inbuild method only.

Thanks
7 months ago
What should be the code for finding next index of ","
7 months ago
value = \x14\x14\x14\x02 is a dynamic value.It can be anything like ABC , A, AB etc(Just example) .I will have to use replace method only. But to know about the string which need to be replace I need to do some substring operation,Like ---



Now indexOf(",") should return the index of ' which comes after \x14\x14\x14\x02.
If you see the whole string "," apearing before \x14\x14\x14\x02 also.

My requirement is to find the the index of "," just after \x14\x14\x14\x02.


Thanks
Abhra
7 months ago
I can't, I have ipAddressAddr only. Whatever comes in between and the very next   I need to replace with ABCDEF .It can be "\x14\x14\x14\x02" or 123456 or anything.I want to find out the index of very next "," after "\x14\x14\x14\x02".  Or if any other better way to do.
7 months ago
Hi

I am getting a string as input like this --

I need to replace \x14\x14\x14\x02 with ABCDEF so that the modified string will be --

I have the string ipAddressAddr with me.Suppose input string variable we are considering as input.So gives me starting index of ipAddressAddr which is 45.To replace \x14\x14\x14\x02 I need index of "," after index 45 then I can do some substring and replace option.

What should be the efficient way

Thanks
Abhra
7 months ago
Thanks a lot guys.I implemented as suggested by you.

Regards,
Abhra
8 months ago
Sorry posted in a hurry , Need to add a return statement only.



Thanks
Abhra
8 months ago
Create a functional interface I --



Tried to call this below--


Get error ---
Cannot return a void result

For void return type lambda expression is working fine but if I want to use non void return type what should be the approach.

Thanks
Abhra
8 months ago