Bean Implementation cheat sheet

Valentin Crettaz

Gold Digger
Sheriff

Posts: 7610

posted 13 years ago

Continuing on my cheat sheet series (the previous about Exception Handling can be found here), here is a new one about the responsibilities of a bean provider when creating new EJBs. There are four slides, one for each bean type (stateful SB, stateless SB, MDB, and entity beans) that show what the bean provider should insert in what interface or class. The whole thing has been made for remote component interfaces only. It is not difficult to transpose the whole thing to local interfaces: just remove all RemoteExceptions and replace EJBObject by EJBLocalObject and EJBHome by EJBLocalHome. Anyway, you can get the document at http://www.valoxo.ch/jr/BeanProviderResponsibilities.pdf Any comments, suggestions, improvements, are welcome

Great job with the color coding. I do (almost) everything with colors I guess it is easier to sink something in with colors...Is this the beginnings of a book? :roll: Nope, but Kathy Sierra is currently writing one. Check out the following post:http://www.coderanch.com/t/157664/java-EJB-SCBCD/certification/ejb-environment I'll be posting my "Deployment Descriptor cheat sheet" later today. I'm off to the exam now [ June 30, 2003: Message edited by: Valentin Crettaz ]

Valentin -- I finally got to take a breath and look more at your cheat sheets, and they ROCK! The color-coding is wonderful, and the way you organized the bean responsibility thing is a very clever and helpful way to do it. Presenting it that way had not occured to me, and I love it. Y'all would do well to use these to prepare! cheers, Kathy

HS Thomas

Ranch Hand

Posts: 3404

posted 13 years ago

Hope you are not getting the paint cans out, Kathy. Yours' and Bates' book ROCKS too (I've only seen the excerpts but am looking forward to the full version). The cartoon oldy goldy look is best in its original pen and ink. Now what I'd like to see is a business subject like "risk-controlled quantitative investment strategies" getting the same treatment. I think you and Bert will make short work of it. If both ever have a moment.... regards [ June 30, 2003: Message edited by: HS Thomas ]

Valentin Crettaz

Gold Digger
Sheriff

Posts: 7610

posted 13 years ago

Given your penchant for color and boxes it must be in UML. --HS Thomas Hmmm, not quite... Valentin -- I finally got to take a breath and look more at your cheat sheets, and they ROCK! The color-coding is wonderful, and the way you organized the bean responsibility thing is a very clever and helpful way to do it. Presenting it that way had not occured to me, and I love it. -- Kathy Sierra These are of course "open-source" and they are available at http://www.valoxo.ch/jr/cheatsheets.html I you feel you could use them in some way in your book, feel free to take them. Since you can't use colors, we could surely work out something else

Hmmm, not quite... Is the secretiveness a clue? It's in Security ? No, seriously, I did a search and found some links on SADL - an architectural language and concerns-based modelling. Aspects ? In what time-frame is all this going to hit the shop-floor i.e we'll see a link on Aspects at the Javaranch ? Threads, Exceptions.. life could be so much easier....as in this thread Loop..and try catch

quoted from Illja Preuss' post : Or you may want to handle the exception somewhere else without having the intermediate code to know about it. In fact the more I get a feeling for (what I think of as) good OO design, the more I seem to also feel the pain of checked exceptions...

hi Valentin I just gone thru all the cheat sheets prepared by you. It is amazing work. really you converted too big thing in too small thing. thanks for this great work. waiting for pending cheat sheets.