Re: Bind rmi registry to specific IP address

2011-04-22 Thread Andreas Pieber
Hey Certus, Future ideas for Karaf are always welcomed :) I'm not sure if it is enough to set the RMI host to another IP. This have to be validated first. Though, please feel free to create a JIRA for this that we can collect the ideas, requirements and experiences to this topic. TBH I've never m

Re: Bind rmi registry to specific IP address

2011-04-22 Thread Certus Technology
Not sure I am in a position to ask for enhancements ;) but the -b IPAddress feature of JBoss is something we make great use of, and it makes running multiple instances of JBoss on a single machine very simple. A similar feature in karaf would be great, so we have a single point to configure the

Re: JSR-330 Dependency Injection with KARAF ?

2011-04-22 Thread Johan Edstrom
There are extensions to guice (peaberry) that deal with services registration and such. It is quite simple to use. If you do not need services exchanges, guice works great in an osgi environment. And combining Blueprint with guice also works quite well. On Apr 22, 2011, at 1:42 PM, Cristiano Ga

JSR-330 Dependency Injection with KARAF ?

2011-04-22 Thread Cristiano Gavião
Hi people, Today I was studying a little more about the options that we have on DI area with OSGi environment. I could see that Blueprint is the actual standard DI for OSGi, and that we could also use spring DM. I have been using @inject from JSR-330 (Dependency Injection for Java specific

Re: Bind rmi registry to specific IP address

2011-04-22 Thread Andreas Pieber
As already discussed in IRC this is a good "quick and dirty" solution. Though the "longer lasting" method would be to add the rmiHost parameter to Karafs management kernel (https://issues.apache.org/jira/browse/KARAF-581) Kind regards, Andreas On Fri, Apr 22, 2011 at 9:08 AM, Jean-Baptiste Onofré

Re: Bind rmi registry to specific IP address

2011-04-22 Thread Jean-Baptiste Onofré
-b is a specific parameter used by JBoss. JBoss populates several args with that in the jboss-service.xml. To set the IP address used by the RMI server (in any system), you have to use the following Java arg: -Djava.rmi.server.hostname= If you use 0.0.0.0 it will be bound to all IP address: