1 Reply Latest reply: May 16, 2013 6:03 AM by 1003028 RSS

    EJB on Oracle Java Cloud Service

    1003028
      Hi, I am new to the world of Java, EJB, Weblogic Server.

      Steps that I have carried out -

      1. I have implemented a HelloBean, HelloHome, HelloObject - objective is just to print "Hello" through one of the bean's biz method.

      2. I created class files for the above 3 java programs.

      3. I have created a JAR file of 3 javas programs, its' class, along with the required META-INF/ejb-jar.xml.

      4. Now, when I tried to deploy this JAR file in Oracle Java Cloud service, I got errors stating that RemoteException is not allowed, EJBObject is not allowed. So, I changed everything to local removing RemoteException reference, changing EJBObject to EJBLocalObject.

      Now, the questions -

      a] Reference to point (4), why should I have it as LOCAL? Is it because the client is excepted to be in the same heap of the Cloud?

      b] I deployed the JAR file in cloud, but when I checked the logs, it was looking for WAR file. I understand that WAR will have access points that will inturn use the JAR that I created.

      c] Reference to point (5), how do I invoke the biz method now?

      Thanks,
      J
        • 1. Re: EJB on Oracle Java Cloud Service
          1003028
          I get this below message when I try to follow the Application URL when I opt for "Test Application" of the above in Oracle Java Cloud Service.
          ...
          Error 403--Forbidden
          From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
          10.4.4 403 Forbidden

          The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
          ...

          This is in reference to the last question raised above.