Hitesh Djoshi

+ Follow
since Jul 19, 2013
Merit badge: grant badges
For More
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 Hitesh Djoshi

I am sure to this question is out there somewhere in the internet, but I could not find it, can the Gurus please help me out.


I wrote a SOAP WS endpoint, using Apache CXF. My intention is to sign and encrypt the Header and Body of incoming and outgoing messages. Initially I used CXF Interceptors to decrypt the incoming signed and encrypted message and everything was working fine.

Now, I have tried to secure it using WS - Security Policy.So, I have removed the CXF interceptors and used a Policy based configuration instead.

Now when my client sends the request , it gets a MustUnderstand headers: [{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood.
How to remove this error, either by somehow removing the MustUnderstand tag in the incoming request from client, or by making the server understand the header(preferable)
My client is not written in CXF, its using Apache Axis 1.4(Yeah ... the old and creaky one).

Now the Details-

My Security Policy File at server

Server Call back Handler Class-

Client Code----> client_deploy.wsdd file.. Client also has its call back handler,.. not shown here, but on similar lines as server,

10 years ago
Thanks Tim and Jayesh.
Your suggestions have been really helpfull.

I have almost made up my mind regarding joining D.
I have a scheduled telecon with their service line head, that should clear the picture.

I like the culture of D, have heard only good things coming out from the people who have joined.

Tim, have you not heard about C at all, surprising because you have read the real name of the company. It was in the news very recently for firing 1200 employees last quarter(10% of workforce), freequently changing CEO's and the 2004 fraud which got its then CEO a 12 year jail term back then.

I believe companies culture comes from the top and if the top is obfuscating, confused and volatile. Its not a good environment for the employees. Given that the trade off is just money, I dont see C as worth the risk.

People- were good in both the comapnies. C' s interviews were on the tougher side. But that depends on the interviewer.

I think it would be intresting to work as a contractor/consultant considering that I have been in product based companies all of my career. And of course looking forward to the tech challenges.

10 years ago
In my personal opinion, you should ask for a project change. One in which you dont have to work in the team or with the manager. Leaving the company, which you like, for this is a bad idea.
One cautionary note- Once you start preparing and get a job offer outside. Its no looking back. It is close to impossible that your current company will try to retain you. Even if they did, the hike that you would get outside would make your current salary insignificant. You get incentivised to move out.
So unless you really hate your company , don't take that route. Ask for a project change and TL position now, preferably to your skip level manager.
10 years ago

I have decided to leave my current organization. But I am confused and would appreciate any advice that would help me choose my new destination.
I am in software development, 4 years of work experience, java , j2EE domain.
I have offers from D(Consultant) and C (Sr Software Engineer) among others.

Now both are good companies. Here are some facts-
  • I know more about the role in C and it is in a good domain.
  • D said that project I would be working on would be decided when i join. I was hired based on my current skillsets with no concrete project in mind.
  • I am concerned about C's hire and fire policies.
  • D functions more as a service based company, so there is a chance of onsite travel.
  • C is paying a tad more then D.
  • C campus is amazing, D's impression in the interview was also very favorable.

  • My criteria's in decreasing order of significance-
  • Role and growth opportunity.
  • Onsite travel, I want to see the world outside of India. Work hands on with the business that I am enabling.
  • Level of coworkers or peers - intelectually and technically.
  • Work life balance.
  • Compensation, the bigger the better

  • I would appreciate any advice that would help me come to a decission.
    I want feedback from people in India as well as in USA(primary market for both) for their outlook on both companies and their view on which one is good.

    Company name masked, to protect from anonymity and bias

    Mods , feel free to delete if this violates posting rules.

    10 years ago
    Tim, Leaving that Tuckey thing alone for some time. Tuckey is just one way of getting your static content I believe,

    Do you know any other way in which static content like css, js and html files can be correctly mapped in a Spring MVC application.

    What is the industry standard way to do that sort of mapping?

    Tim, Thanks for the Link .. really helpfull.
    10 years ago

    What does happen when you hit http://localhost:8080/contact/ ? You tell us.

    I know it opens home.jsp due to the controller mapping

    Now earlier, I had a disatcher servlet mapping, like this

    It worked well, but did not allow me to to use tuckey url rewriting...(CSS were not getting aplied). I had to change my dispatcher servlet maping to /web/* .
    And configure that in the urlrewrite.xml as,

    Now what the above url rewrite doing...?? there is no /web/* URL defined in my controller.

    10 years ago
    I have a simple question. Just to be clear and give myself a pat on back, everything is working ...

    But i am not very clear on some of the URL mapping stuff, which i need some clarification.

    Here it goes.
    My dispatcher Servlet mapping...

    My Spring security filter maping

    And my Tuckey URL rewriter filter maping for CSS and other static stuff

    Now the urlrewrite.xml

    Last but not the least, My Controller...

    What happens when I hit http://localhost:8080/contact/
    How are the filters getting applied, step by step guide..???

    All filters are working, security and tuckey. And my controller is getting called as supposed,
    10 years ago

    Tony Docherty wrote:
    To be precise shift right 1 place (ie >> 1) is the same as divide by 2.
    Shift right 2 places is the same as divide by 4, shift right 3 places is the same as divide by 8. Do you understand why this is so?

    Thanks for clearing that up Tony. Well caught. I was wrong in saying that it is equal to divide by 2.

    I think I do understand... here it goes.
    >>n means division by 2^n.
    << n means multiplication by 2^n.

    Lets take an example,

    In binary=10000
    let's say 16>>1, now 10000, removing the Right most bit and appending a zero on the left, it becomes 01000, which in decimal is 8. Evidently 16/2^1=8

    Now 16<<1, now 10000, lets add one significant bit to the left side of 16's binary representation.It becomes, 100000, which is in decimal 32.Evidently 16*2^1=32.

    10 years ago
    Thanks Jesper de Jong for the welcome as well as the great and prompt answer.
    I remember reading that shift operator is equal to divide by 2. I was not able to connect the dots on this optimzation for traversing the Doubly Linked list they have there.

    Now I totally agree with you that it makes the code difficult to understand.
    Thanks a lot .. have a good day.
    10 years ago
    I have a simple question..
    it can be moved to other forum if not appropriate here..Here it goes...

    What is shift operator doing in the ListIterator in java.util.LinkedList.

    The code is from Java api.. in the constructor of ListItr. Just I am not able to figure out what it is doing.. May be am not clear on shift operators overall. I know the bit shifting and padding. But how does it help here.
    10 years ago