This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3  RSS feed

 
Mohammad Jaber
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
iam new to EJB3 , and it looks very nice to me , but i have 2 questions if any body can help me on :

- When Locating Session Bean remotly using JNDI , i have to cast the returned object type to my Business interface one , my question is since iam calling it remotly and the cliet is not aware of the Business Interface type, should i have the Interface type existed somehow on the EJB Clients , i mean in order to do the cast or is there a better way to do it??

- where can i find documents or articles about designing applications under the new EJB 3 Arch. !!

Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the interfaces need to be in the client's classpath.

Mark
 
Mohammad Jaber
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you , But what about the Other part of the question , any one can help !?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What other part?

You cast to the interface, that is what you want. You want to code to an interface. So that is the best way.

I don't know of any links yet, but it really isn't differnt than designs for EJB 3.0. But now you can send an Entity (Bean) down to the client, so it gets rid of the DTO anti-pattern.

Mark
 
Hafizur Rahman
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://docs.solarmetric.com/full/html/ejb_tutorials.html
http://www.oracle.com/technology/products/ias/toplink/jpa/tutorials/jsf-jpa-tutorial.html

and also in Java EE tutorial, you can find the basics of JPA.

If you want to invest, you can buy
http://www.amazon.com/Pro-EJB-Java-Persistence-API/dp/1590596455
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!