package com.raidentrance.session.beans.slsb;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;

/**
 *
 * @author alejandrobautista
 */
@Stateless
@LocalBean
public class MathHelperBean {

    public double areaCalulator(double radius) {
        return Math.PI*Math.pow(radius, 2);
    }
}

@@ -56,21 +56,68 @@
 vax.
-ejb.Stateless
+annotation.PostConstruct;%0Aimport javax.annotation.PreDestroy
 ;%0Aim
@@ -131,25 +131,25 @@
 vax.ejb.
-LocalBean
+Stateless
 ;%0A%0A/**%0A 
@@ -198,19 +198,8 @@
 ess%0A
-@LocalBean%0A
 publ
@@ -225,16 +225,234 @@
 Bean %7B%0A%0A
+    @PostConstruct%0A    public void init() %7B%0A        System.out.println(%22Initializing MathHelperBean%22);%0A    %7D%0A%0A    @PreDestroy%0A    public void destroy() %7B%0A        System.out.println(%22Destroying MathHelperBean%22);%0A    %7D%0A%0A
     publ
@@ -514,17 +514,19 @@
  Math.PI
-*
+ * 
 Math.pow

remove local bean annotation