|
|
|||||||||||||||||||||||||||||||||||||||||||||
Manfred Riem's Blog
Webservice @WebServicePosted by mriem on June 25, 2009 at 01:36 PM | Permalink | Comments (0)If you need to expose a class as a web service it is fairly easy. Just annotate it with @WebService and let the JAXWS runtime take care of the rest. See the Webservice Almanac page for more information. Webservice @WebResultPosted by mriem on June 24, 2009 at 07:37 PM | Permalink | Comments (0)Once you have a method tagged as a webservice method, how can you name the result? Use the @WebResult annotation. See the Webservice Almanac page for more information. Webservice @WebParamPosted by mriem on June 23, 2009 at 07:21 PM | Permalink | Comments (0)If you expose a method as a webservice method, how do you name its parameters? Easy, use the @WebParam annotation. See the Webservice Almanac page for more information. Webservice @WebMethodPosted by mriem on June 22, 2009 at 09:15 AM | Permalink | Comments (2)How do you tell the JAXWS runtime to expose a given method as a webservice method? Easy, use the @WebMethod annotation, see the Webservice Almanac page for more information. 100 entries ;)Posted by mriem on June 19, 2009 at 10:07 AM | Permalink | Comments (0)Well, this day would eventually come, I have reached the milestone of 100 blog entries ;) Webservice @OnewayPosted by mriem on June 19, 2009 at 10:07 AM | Permalink | Comments (0)What if you want to call a web service asynchronously? Well, that's where the @Oneway annotation comes in. See the Webservice Almanac page for more information. JSF @FacesValidatorPosted by mriem on June 18, 2009 at 09:46 AM | Permalink | Comments (0)Writing a custom validator is fairly easy, setting it up so the runtime can see it has even become easier. See the JSF almanac page for more information. JSF @FacesRendererPosted by mriem on June 17, 2009 at 07:32 AM | Permalink | Comments (0)Registering a renderer to the runtime is easy, see the JSF almanac page for more information. JSF @FacesBehaviorRendererPosted by mriem on June 16, 2009 at 10:23 AM | Permalink | Comments (0)How do you register a class as a ClientBehaviorRenderer? See how it is done at the JSF almanac page. JSF @NamedEventPosted by mriem on June 15, 2009 at 09:48 AM | Permalink | Comments (0)If you ever have a need to register your own event, you can use the @NamedEvent annotation, see the JSF almanac page for more information. JSF @ListenersForPosted by mriem on June 12, 2009 at 08:37 AM | Permalink | Comments (0)If your component needs to listen for multiple events then you can use the @ListenersFor annotation, see the JSF almanac page for more information. JavaEE 6 docs published?Posted by mriem on June 11, 2009 at 09:31 AM | Permalink | Comments (4)Did the JavaEE 6 API docs get published quietly, even before everything is final? See http://java.sun.com/javaee/6/docs/api/ JSF @ListenerForPosted by mriem on June 11, 2009 at 07:04 AM | Permalink | Comments (0)See the JSF almanac page for more information on how to register a component as a listener for events. JSF @FacesConverterPosted by mriem on June 10, 2009 at 07:33 AM | Permalink | Comments (0)Whenever you need to convert from display to model, you use a Converter class. Registering a converter in JSF 2.0 is surprisingly easy, see the JSF almanac page for more information. JSF @FacesBehaviorPosted by mriem on June 09, 2009 at 10:22 AM | Permalink | Comments (0)Registering a behavior class as a behavior to the runtime is pretty straightforward, see the JSF almanac page for more information. JSF @FacesComponentPosted by mriem on June 08, 2009 at 07:09 AM | Permalink | Comments (0)Registering a component in JSF 2.0 is even simpler than it used to be. Browse over to the JSF almanac page and see! Doing a release on Hudson using Maven 2 (revisited)Posted by mriem on June 06, 2009 at 01:32 PM | Permalink | Comments (0)Want to know how to do a release with Maven 2 on Hudson? Well, this article is an update to a previous article, go to the new article for more information. JSF @ResourceDependencyPosted by mriem on May 29, 2009 at 09:51 AM | Permalink | Comments (0)Much like the previous entry, but this time only for a single resource. How do you annotate a component, or renderer with a single resource? See the JSF almanac page. JSF @ResourceDependenciesPosted by mriem on May 28, 2009 at 02:18 PM | Permalink | Comments (0)You can define the resource dependencies of a JSF component or renderer by using the @ResourceDependencies annotation. See how at the JSF Almanac page. EJB @EJBsPosted by mriem on May 26, 2009 at 09:28 AM | Permalink | Comments (0)What if you want to define the references of your EJB and still look up those EJB references at runtime? Well, that can be done! See the EJB Almanac page for more information. EJB @TransactionManagementPosted by mriem on May 14, 2009 at 07:22 AM | Permalink | Comments (0)If you want to control how transactions are managed, you can tell your bean so. See the EJB Almanac page for more information. EJB @TransactionAttributePosted by mriem on May 13, 2009 at 12:56 PM | Permalink | Comments (0)Sometimes you need a method to run in a particular transaction model. Well, specifying that is easy. See the EJB Almanac page for more information. EJB Almanac @TimeoutPosted by mriem on May 08, 2009 at 08:02 AM | Permalink | Comments (0)What method is going to be called once the timeout occurs? Well, see the EJB Almanac page for more information. EJB Almanac @StatelessPosted by mriem on May 06, 2009 at 04:34 PM | Permalink | Comments (0)Declaring a class as a stateless session bean is very simple as well. See the EJB Almanac page for more information. EJB Almanac @StatefulPosted by mriem on May 05, 2009 at 07:14 AM | Permalink | Comments (0)Declaring a class as a stateful session bean is remarkably simple. See the EJB Almanac page for more information. EJB Almanac @RemovePosted by mriem on May 04, 2009 at 05:12 PM | Permalink | Comments (0)Say you want to remove a stateful session bean after running a particular method. How would that work in the EJB3 world? Simple, see the EJB Almanac page! EJB Almanac @RemoteHomePosted by mriem on April 28, 2009 at 07:18 AM | Permalink | Comments (0)Declaring the RemoteHome is surprisingly easy using an annotation. Have a look at the EJB Almanac page for more information. EJB Almanac @RemotePosted by mriem on April 27, 2009 at 07:09 AM | Permalink | Comments (0)If you come from the older EJB world, you might be comfortable to express what your remote interface looks like. Well, how do you do that with annotations? Easy, read the EJB Almanac page for more information. Clone NetBeans, Glassfish, OpenJDK, MySQL?Posted by mriem on April 25, 2009 at 07:32 AM | Permalink | Comments (7)I wonder if it is time to clone all the important open source repositories, like NetBeans, Glassfish, OpenJDK, MySQL, OpenOffice and the like? Do you have any thoughts, feeling, or just want to sound off? I think it would be a smart move to host it separate from a corporate entity, but what do you think?
Should the community foster hosting each of these major projects as separate legal entities, much like FreeBSD and PostgreSQL? I think so, but do you think so too?
EJB Almanac @PrePassivatePosted by mriem on April 24, 2009 at 07:50 PM | Permalink | Comments (0)If you have a rather resource intensive stateful session bean you might need to run some code before passivation happens. This EJB Almanac page will tell you how! EJB Almanac @PostActivatePosted by mriem on April 23, 2009 at 08:05 PM | Permalink | Comments (0)What if you have expensive resources that you only use when a stateful session bean is active? Well, with the @PostActivate annotation you can execute code just after your session bean becomes active, but before the business methods is called. See the EJB Almanac page for more information. EJB Almanac @MessageDrivenPosted by mriem on April 22, 2009 at 01:46 PM | Permalink | Comments (0)If you care to do message beans, then read the EJB Almanac page for more information. EJB Almanac @LocalHomePosted by mriem on April 21, 2009 at 08:04 PM | Permalink | Comments (0)Declaring the LocalHome is surprisingly easy using an annotation. Have a look at the EJB Almanac page for more information. OpenESB making progressPosted by mriem on April 19, 2009 at 10:15 AM | Permalink | Comments (1)One major pet peeve I had with OpenESB was that it only had a full blown bundle that required you to install a separate version of Glassfish. Well, with the latest milestone release that is no longer necessary! Great work from the OpenESB team. I can't wait for the 2.1 FCS release. Finally my migration from Subversion to Mercurial is donePosted by mriem on April 18, 2009 at 12:16 PM | Permalink | Comments (2)No more subversion for me. At least not for my pet projects! It took a while to get everything migrated. Why? Well, I am structuring each project to have its own Mercurial repository, which is a split from how you would look at it from a Subversion perspective. But now I have the ability to share code on a project basis. A big plus in my world. And with Maven2 working with dependencies is easy enough to deal with the additional complexity of one project depending on another project. If anyone wants to tell me about their own experience of migrating from Subversion to Mercurial, feel free to comment ;) EJB Almanac @LocalPosted by mriem on April 16, 2009 at 07:50 AM | Permalink | Comments (0)If you come from the older EJB world, you might be comfortable to express what your local interface looks like. Well, how do you do that with annotations? Easy, read the EJB Almanac page for more information. EJB Almanac @InitPosted by mriem on April 09, 2009 at 07:50 PM | Permalink | Comments (0)Sometimes you need be more specific so the runtime knows which create method corresponds with a method on your bean. See the EJB Almanac page for more information. EJB Almanac @EJBPosted by mriem on April 08, 2009 at 06:14 PM | Permalink | Comments (0)You have the ability to use another EJB from your EJB. How? Well, read the EJB Almanac page for more information. EJB Almanac @ApplicationExceptionPosted by mriem on April 07, 2009 at 08:09 PM | Permalink | Comments (2)If you want your EJB client to have access to your exception classes then this annotation makes that possible. It automatically unwraps it from the EJB exception and exposes it directly to the client. See the EJB Almanac page for more information. EJB Almanac @ActivationConfigPropertyPosted by mriem on April 06, 2009 at 05:07 PM | Permalink | Comments (0)There comes a time you want to split the stream of messages to particular message beans. This annotation can be a handy thing to accomplish that. See the EJB Almanac page for more information. EJB Almanac @RunAsPosted by mriem on April 03, 2009 at 09:02 AM | Permalink | Comments (0)Sometimes you just have to run a particular piece of code in a particular role, and not using the role of the caller. In EJB3 you can use an annotation for that, see the EJB Almanac page for more information. EJB Almanac @RolesAllowedPosted by mriem on April 02, 2009 at 07:19 PM | Permalink | Comments (0)If you only want specific roles to access your EJB then you need to specify which roles are allowed. How is that done? See the EJB Almanac page for more information. EJB Almanac @PermitAllPosted by mriem on March 31, 2009 at 07:49 AM | Permalink | Comments (0)We already know how to deny everyone access, but how do you allow everyone access? Well, see the EJB Almanac page for more information. EJB Almanac @DenyAllPosted by mriem on March 30, 2009 at 08:03 AM | Permalink | Comments (0)Ever wondered how to deny access to a given method in your EJB to any role? Well, have a look at today's EJB Almanac page for more information. Moving to MercurialPosted by mriem on March 28, 2009 at 10:06 AM | Permalink | Comments (2)While both CVS and Subversion have served me well over the years I have decided to move all my personal coding stuff over to Mercurial. The main reason for me is that for each project I will have all the history available on my local system without having to go back to the server. This is particularly useful when you are offline, but still want to be able to code efficiently ;) Beyond that if I want to share my code, but do not want to give anyone access to my repositories I can just give them a copy of my local stuff and voila they have the same sources I have! |
June 2009
Search this blog:CategoriesCommunity: Embedded JavaCommunity: Glassfish Community: Java Enterprise Community: JavaDesktop Databases J2ME Open Source Programming Testing Web Applications Archives
June 2009 Recent Entries | ||||||||||||||||||||||||||||||||||||||||||||
|
|