Yesterday evening I successfuly overode annotations by xml descriptors so now I know how to do it. This is not a magic - just use your EJB 2.1 style descriptors and everything will be just fine. For more see example of EJB3Servlet - there is a call to fooQeueue that is actuelly mapped to testQueue.
What is now bear in my mind is perfomance of entity beans - it's back to the root problem because I didn't solve it yet and this problem occured in the begging of my work. I hope the persitence layer is somehow "confused" by so many circular mappings. I'll try to eliminate some of them (for example mappimg emloyee-manager department-manager and so on) and hope it helps.
Last week I found a great community of same thinking people around EJB3 at glassfish forum. They helped me to solve my initial problem with message driven bean (the problem when I forgot to implement MessageListener interface). Yesterday I posted there another problem and hopfuly they'll help to find some solution. It's about NativeNamedQuery but you better see for yourself here.
I don't know exactly what I'm goind to do next but I'll choose from these:
As you can see, I have a lot of challenges ahead ... And no time to waste :-)
No comments:
Post a Comment