https://vimeo.com/7393498

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

https://vimeo.com/7393498

Zahid Rahman
The demonstration  worked like a charm.

Excellent accompanied talk
i.e. debug and remote server code changes.

tested on using JDK 8 on
Eclipse IDE for Enterprise Java Developers.
Version: 2020-03 (4.15.0
Ubuntu 20.04 LTS
openejb 3.1.4

same version stateless bean example
and OpenEJB eclipse plugin

Regards
Zahid

https://www.backbutton.co.uk/ <http://Backbutton.co.uk>
¯\_(ツ)_/¯
♡۶Java♡۶RMI ♡۶
<http://www.backbutton.co.uk>
Reply | Threaded
Open this post in threaded view
|

Re: https://vimeo.com/7393498

jgallimore
The OpenEJB Eclipse Plugin works on the latest version of Eclipse? Wow. A
few people have reached me through a few different mediums about it, and
had wondered if it was time for an update. OpenEJB 3.1.4 is super old, I'm
wondering if we can use this to deploy EARs to recent versions of TomEE
without too many changes.

Thanks for sharing your experience.

Jon

On Sun, Aug 16, 2020 at 11:27 AM Zahid Rahman <[hidden email]> wrote:

> The demonstration  worked like a charm.
>
> Excellent accompanied talk
> i.e. debug and remote server code changes.
>
> tested on using JDK 8 on
> Eclipse IDE for Enterprise Java Developers.
> Version: 2020-03 (4.15.0
> Ubuntu 20.04 LTS
> openejb 3.1.4
>
> same version stateless bean example
> and OpenEJB eclipse plugin
>
> Regards
> Zahid
>
> https://www.backbutton.co.uk/ <http://Backbutton.co.uk>
> ¯\_(ツ)_/¯
> ♡۶Java♡۶RMI ♡۶
> <http://www.backbutton.co.uk>
>
Reply | Threaded
Open this post in threaded view
|

Re: https://vimeo.com/7393498

Zahid Rahman
Getting to this stage is usually the hardest, hence your video was much
needed,
after that it is downhill.

package org.superbiz.calculator;

import java.util.Properties;

import javax.naming.Context;
import javax.naming.InitialContext;

public class Client {

public static void main(String[] args) throws Exception {

    //START SNIPPET: setup
     final InitialContext initialContext;
       Properties properties = new Properties();
       properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.RemoteInitialContextFactory");
       properties.setProperty(Context.PROVIDER_URL,
"ejbd://localhost:4201");
       initialContext = new InitialContext(properties);
       //END SNIPPET: setup

   /**
    * Lookup the Calculator bean via its remote home interface
    *
    * @throws Exception
    *
    **/

       Object object = initialContext.lookup("CalculatorImplRemote");

       //START SNIPPET: remote
CalculatorRemote calc = (CalculatorRemote) object;
System.out.println("call cal.sum(4 + 6) = "+ calc.sum(4,6));
System.out.println("call cal.multiply(3 * 4) = " + calc.multiply(3,4));
   //END SNIPPET: remote

}
}


https://www.backbutton.co.uk/ <http://Backbutton.co.uk>
¯\_(ツ)_/¯
♡۶Java♡۶RMI ♡۶
<http://www.backbutton.co.uk>


On Sun, 16 Aug 2020 at 20:42, Jonathan Gallimore <
[hidden email]> wrote:

> The OpenEJB Eclipse Plugin works on the latest version of Eclipse? Wow. A
> few people have reached me through a few different mediums about it, and
> had wondered if it was time for an update. OpenEJB 3.1.4 is super old, I'm
> wondering if we can use this to deploy EARs to recent versions of TomEE
> without too many changes.
>
> Thanks for sharing your experience.
>
> Jon
>
> On Sun, Aug 16, 2020 at 11:27 AM Zahid Rahman <[hidden email]>
> wrote:
>
> > The demonstration  worked like a charm.
> >
> > Excellent accompanied talk
> > i.e. debug and remote server code changes.
> >
> > tested on using JDK 8 on
> > Eclipse IDE for Enterprise Java Developers.
> > Version: 2020-03 (4.15.0
> > Ubuntu 20.04 LTS
> > openejb 3.1.4
> >
> > same version stateless bean example
> > and OpenEJB eclipse plugin
> >
> > Regards
> > Zahid
> >
> > https://www.backbutton.co.uk/ <http://Backbutton.co.uk>
> > ¯\_(ツ)_/¯
> > ♡۶Java♡۶RMI ♡۶
> > <http://www.backbutton.co.uk>
> >
>