Hi,

I want to use  deploy -s to test remote deployment but the message says
already deployed.
So if I want to make changes to the implementation class code and do remote
deploy how do I do it ?

$OPENEJB_HOME/bin/openejb deploy -s ejbd://localhost:4201 hello.jar
Application already deployed at
"/home/zahid/openejb/openejb-3.1.4/apps/hello.jar

I ran this example
http://openejb.apache.org/tomee-9.0/docs/hello-world.html.
The instructions were OK but the import libraries has changed
substantially.
I don't think the libraries I used are even right the  latest OPEN EJB
ones. But anyway I got it running.

java -cp
$OPENEJB_HOME/lib/openejb-client-3.1.4.jar:$OPENEJB_HOME/lib/jakarta.ejb-api-3.2.4.jar:.
org.acme.HelloClient
Hello World!!!!

package org.acme;

import javax.ejb.Remote;
@Remote
public interface Hello{
    public String sayHello();
}

package org.acme;
import javax.ejb.Stateless;
@Stateless
public class HelloBean implements Hello {
    public String sayHello(){
        return "Hello World!!!!";
    }
}


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

Reply via email to