Topic
5 replies Latest Post - ‏2013-01-28T17:13:58Z by kewl
kewl
kewl
4 Posts
ACCEPTED ANSWER

Pinned topic EJB3.x in RAD 8.5 Trial version

‏2013-01-28T12:31:38Z |
Hello
I am struggling to create EJB Project in RAD 8.5 trial version.
the problem is "no packages" so Stateless is not available.

Not sure whether Target Runtime is mandatory at the time of creating project. Is there a limitation in the trial version? or should I configure build path?

please help
Updated on 2013-01-28T17:13:58Z at 2013-01-28T17:13:58Z by kewl
  • SystemAdmin
    SystemAdmin
    14225 Posts
    ACCEPTED ANSWER

    Re: EJB3.x in RAD 8.5 Trial version

    ‏2013-01-28T14:45:53Z  in response to kewl
    Hello,

    The Trial edition has the same code as the one you purchase. Only the applied license is different.

    What version of EJB do you want to generate?

    What type/version server do you want to deploy to?

    Could you describe in more detail the issue you are having (attach a screenshot of any errors)?

    You need to specify a Target Runtime (have you installed the WAS Test Environment supplied with the RAD Trial)?

    I attach some screenshots of how you would create an EJB 3.1 project targeting WAS 8.5.

    File > New Project > EJB project

    Right-click on the Project and choose:

    New > Session Bean (3.x)

    Select a package name and a class Name. I chose to generate a Local and Remote Interface and this gave the resulting code below (with the interface classes contained in the EJB Client Project).

    package com;

    import com.view.MyBeanLocal;
    import com.view.MyBeanRemote;
    import javax.ejb.Local;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;

    /**
    * Session Bean implementation class MyBean
    */
    @Stateless
    @Local(MyBeanLocal.class)
    @Remote(MyBeanRemote.class)
    public class MyBean implements MyBeanRemote, MyBeanLocal {

    /**
    * Default constructor.
    */
    public MyBean() {
    // TODO Auto-generated constructor stub
    }

    }

    I attach the screenshots and sample projects (which you can import with
    File >Import>General > Existing projects into Workspace )

    Thank you, Lara

    Attachments

    • kewl
      kewl
      4 Posts
      ACCEPTED ANSWER

      Re: EJB3.x in RAD 8.5 Trial version

      ‏2013-01-28T15:42:33Z  in response to SystemAdmin
      Please see the screen shot. Reg server...I have preview and Liberty Profile.
      • SystemAdmin
        SystemAdmin
        14225 Posts
        ACCEPTED ANSWER

        Re: EJB3.x in RAD 8.5 Trial version

        ‏2013-01-28T15:54:33Z  in response to kewl
        Hello,
        As Lara mentioned, you need to select a target runtime when you create your EJB project. You can also set the target runtime after the project was created, by going to the Targeted Runtimes property page of the project (right click on the project > Properties > Targeted Runtimes. By looking at the screen shot, I think you did not select a target runtime when you created the project, correct?

        But one thing to have in mind: the target runtime must support EJB. In the new EJB project wizard, you will see listed only the target runtimes that support EJB. As Lara suggested, you can try the WAS Test Environment supplied with the RAD Trial, which supports EJB.

        Hope this helps.
        • kewl
          kewl
          4 Posts
          ACCEPTED ANSWER

          Re: EJB3.x in RAD 8.5 Trial version

          ‏2013-01-28T16:47:20Z  in response to SystemAdmin
          thanks!
          I understand the point that I need WAS test env.
          Can I get the steps? I have tried from launch and also from Installation Manager...but could not find a way
          • kewl
            kewl
            4 Posts
            ACCEPTED ANSWER

            Re: EJB3.x in RAD 8.5 Trial version

            ‏2013-01-28T17:13:58Z  in response to kewl
            used the below blog
            http://blog.webspheretools.com/2012/10/24/downloading-installing-rad-8-5/
            now installing WAS 85 from WAS_UTE_8.5_EVL_1 and WAS_UTE_8.5_EVL_2 zip files
            hopefully I can do EJB's