You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by middleware <da...@infocamere.it> on 2012/11/22 10:20:45 UTC

EJB socket deamon in tomee

I'd like to test TomEE ejb remote invocation performance. For this reason,
I'd like to invoke ejb via TCP socket instead of via HTTP. How do I
configure the ejb socket daemon in Tomee? 

I found somewhere, these properties:

properties.setProperty("openejb.embedded.remotable", "true");
//Uncomment these properties to change the defaults
//properties.setProperty("ejbd.port", "4202");
//properties.setProperty("ejbd.bind", "localhost");
//properties.setProperty("ejbd.threads", "200");
//properties.setProperty("ejbd.disabled", "false");
//properties.setProperty("ejbd.only_from", "127.0.0.1,192.168.1.1");

Are these client or server properties?

Can I configure the deamon in tomee.xml? 

Regards
Davide



--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by falcon <ma...@gmail.com>.
You are right, I was not putting the properties in the correct place.

Thanks



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4672882.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by Romain Manni-Bucau <rm...@tomitribe.com>.
Hi

it still works. You should see this line(s):

INFOS:   NAME                 IP              PORT
nov. 13, 2014 2:55:14 PM org.apache.openejb.server.SimpleServiceManager printRow
INFOS:   httpejbd             127.0.0.1       4204

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-11-13 11:13 GMT+01:00 falcon <ma...@gmail.com>:
> Hi Romain
>
> It doesn't work for me, I trying to do the same as you put here
>
> to skip tomcat in tomee on ejbd invocations you need:
> 1) set system property (either on the jvm or in
> conf/system.properties)
> openejb.service.manager.class=org.apache.openejb.server.SimpleServiceManager
> 2)  set the properties (ejbd.*) you mentionned either as system properties
> or simply use conf/conf.d/ejbd.properties (created after one startup if not
> already present)
>
> But I have the newest version of Tomee (1.7.1) and I don't know if the
> process of activate ejb remote invocation via TCP socket instead of via HTTP
> has changed.
>
> Regards
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4672877.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by falcon <ma...@gmail.com>.
Hi Romain

It doesn't work for me, I trying to do the same as you put here

to skip tomcat in tomee on ejbd invocations you need:
1) set system property (either on the jvm or in
conf/system.properties)
openejb.service.manager.class=org.apache.openejb.server.SimpleServiceManager
2)  set the properties (ejbd.*) you mentionned either as system properties
or simply use conf/conf.d/ejbd.properties (created after one startup if not
already present) 

But I have the newest version of Tomee (1.7.1) and I don't know if the
process of activate ejb remote invocation via TCP socket instead of via HTTP
has changed.

Regards



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4672877.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
ln,e 259: http://svn.apache.org/repos/asf/openejb/trunk/openejb/server/openejb-client/src/main/java/org/apache/openejb/client/SocketConnectionFactory.java

here what we currently do but ejbds.properties can take far more
configs, just need some little hacks ;)

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/11/30 middleware <da...@infocamere.it>:
> Ok thanks. I thought ejbds was SSL encrypted. It was just out of my curiosity
>
> I could write a doc page on how to configure the ejb deamon if you think
> it's worthy
>
> D
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4659026.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by middleware <da...@infocamere.it>.
Ok thanks. I thought ejbds was SSL encrypted. It was just out of my curiosity 

I could write a doc page on how to configure the ejb deamon if you think
it's worthy

D



--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4659026.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
admin is for openejb standalone = way to stop openejb

i dont think we manage certificates today, you have to extend the
service for it IMO and create your own one (could be a contribution
btw ;))

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/11/30 middleware <da...@infocamere.it>:
> Hi Romain
>     I got it working. Setting
> openejb.service.manager.class=org.apache.openejb.server.SimpleServiceManager
> activates these listners:
> admin
> ejbd
> ejbds
> httpejbd
>
> ejbd is what I was looking for. I guess httpejbd is a http implementation in
> case I don't want to use the 8080 port for ejb invocation. what's the admin
> listner for? I tried to connect to the port via browser but I got nothing.
>
> One other question: how do I set a certificate for the ejbds?
>
> Regards
> D
>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4659021.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by middleware <da...@infocamere.it>.
Hi Romain
    I got it working. Setting
openejb.service.manager.class=org.apache.openejb.server.SimpleServiceManager  
activates these listners:
admin
ejbd
ejbds
httpejbd

ejbd is what I was looking for. I guess httpejbd is a http implementation in
case I don't want to use the 8080 port for ejb invocation. what's the admin
listner for? I tried to connect to the port via browser but I got nothing.

One other question: how do I set a certificate for the ejbds?

Regards
D





--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792p4659021.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: EJB socket deamon in tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Davide,

to skip tomcat in tomee on ejbd invocations you need:
1) set system property (either on the jvm or in
conf/system.properties)
openejb.service.manager.class=org.apache.openejb.server.SimpleServiceManager
2)  set the properties (ejbd.*) you mentionned either as system properties
or simply use conf/conf.d/ejbd.properties (created after one startup if not
already present)

Note: openejb.embedded.remotable is useless in tomee

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/11/22 middleware <da...@infocamere.it>

> I'd like to test TomEE ejb remote invocation performance. For this reason,
> I'd like to invoke ejb via TCP socket instead of via HTTP. How do I
> configure the ejb socket daemon in Tomee?
>
> I found somewhere, these properties:
>
> properties.setProperty("openejb.embedded.remotable", "true");
> //Uncomment these properties to change the defaults
> //properties.setProperty("ejbd.port", "4202");
> //properties.setProperty("ejbd.bind", "localhost");
> //properties.setProperty("ejbd.threads", "200");
> //properties.setProperty("ejbd.disabled", "false");
> //properties.setProperty("ejbd.only_from", "127.0.0.1,192.168.1.1");
>
> Are these client or server properties?
>
> Can I configure the deamon in tomee.xml?
>
> Regards
> Davide
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/EJB-socket-deamon-in-tomee-tp4658792.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>