You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by vidaniello <vi...@gmail.com> on 2014/11/06 17:26:10 UTC

Question about tomEE http remote ejb port

how can i change port from 8080 to, for example, 2345??

from
 p.put("java.naming.provider.url", "http://localhost:8080/tomee/ejb");

to, for example
 p.put("java.naming.provider.url", "http://localhost:2345/tomee/ejb");

what file in conf/ directory must compile?!? tank...



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Question-about-tomEE-http-remote-ejb-port-tp4672785.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Question about tomEE http remote ejb port

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

- is it best to dissociate both? depend 100% of your app
- you can do it defining another connector and another host and
associating this new host with a webapp containing only EJbServlet.
Alternative is to use ejbd:// directly but then you swicth completely
tomcat (can be nicer since faster but drawback is it is not that
standard for prod in general)


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-06 17:15 GMT+00:00 vidaniello <vi...@gmail.com>:
> Ok...
> Therefore for lookup a remote EJB using HTTP, is necessary using the same
> port of http web?!?
> Can't dissociate the two port?!
>
> For this purpose is best to use openejb remote (ejbd://localhost:4201)??
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Question-about-tomEE-http-remote-ejb-port-tp4672785p4672788.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Question about tomEE http remote ejb port

Posted by vidaniello <vi...@gmail.com>.
Ok...
Therefore for lookup a remote EJB using HTTP, is necessary using the same
port of http web?!?
Can't dissociate the two port?!

For this purpose is best to use openejb remote (ejbd://localhost:4201)??



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Question-about-tomEE-http-remote-ejb-port-tp4672785p4672788.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Question about tomEE http remote ejb port

Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi,

This is picked up from the server.xml file in the conf/ directory:

<Connector port="8080"
protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>

Simply changing this port will move anything that was exposed on port 8080
to the new port that you want to use, so you may wish to add another
connector if that's not quite what you're after.

Hope that helps.

Jon

On Thu, Nov 6, 2014 at 8:26 AM, vidaniello <vi...@gmail.com> wrote:

> how can i change port from 8080 to, for example, 2345??
>
> from
>  p.put("java.naming.provider.url", "http://localhost:8080/tomee/ejb");
>
> to, for example
>  p.put("java.naming.provider.url", "http://localhost:2345/tomee/ejb");
>
> what file in conf/ directory must compile?!? tank...
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Question-about-tomEE-http-remote-ejb-port-tp4672785.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>