Hello Jonas Developers & Users!

Finally we found a Solution for our problem using
JOnAS behind firewalls and proxys.

Problem was, we had no control over the ports
jonas used for the beans. The solution is
(if you finally know it :-) very simple.

All EJBs in Jonas extend org.objectweb.jonas.common.RemoteObject 
and if you put in its default constructor just a 
  super(4711);
all beans use this port 4711.

We modified RemoteObject.jpp and jonas.properties
so we can configure the port, and we wuld very much 
appreciate it if you could incorporate this changes
(or a similar one) in your next Jonas version.

The relevant change in RemoteObject.jpp is:

    protected RemoteObject() throws  RemoteException{
        // --- patch begin ---
        super(Integer.parseInt(Prop.svr.getValue("jonas.rmi.port")));
        // --- patch end ---
    }

The relevant change in jonas.property is:

# If you need the EJBs to communicate throug a special port 
# (eg. if you have a firewall) set the port the beans must use.
# If you set a port of 0, the port is assinged by the RMI
# implementation and may be different on every start of jonas
jonas.rmi.port                  4711


Thanks, Max

Dipl.-Ing. Maximilian Weißböck
i-online Software AG
Campus21 - Businesspark Wien Süd
Europaring A/03/6/01
A-2345 Brunn am Gebirge
mailto:[EMAIL PROTECTED]
http://www.i-online.cc
Tel.: 02236 3080 3785
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to