Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.3
-
Fix Version/s: 1.0.4
-
Component/s: Documentation, JBoss
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
In the cargo maven plugin you have to set <cargo.rmi.port> in case of not using the default jboss port.
To know the port I have opened my jboss_home/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml and look for the rmi port.
I found this :
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss:service=Naming</property>
<property name="bindingName">Port</property>
<property name="port">1299</property>
<property name="description">The listening socket for the Naming service</property>
</bean>
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss:service=Naming</property>
<property name="bindingName">RmiPort</property>
<property name="port">1098</property>
<property name="description">Socket Naming service uses to receive RMI requests from client proxies</property>
</bean>
So I put 1098 for the <cargo.rmi.port> instead of the 1299...
I think cargo.rmi.port might be badly named...
Hello
Indeed, the jboss6x container clearly shows we've inversed something:
<!-- Naming Service --> <bean class="org.jboss.services.binding.ServiceBindingMetadata"> <property name="serviceName">jboss:service=Naming</property> <property name="bindingName">Port</property> <property name="port">@cargo.rmi.port@</property> <property name="description">The listening socket for the Naming service</property> </bean> <bean class="org.jboss.services.binding.ServiceBindingMetadata"> <property name="serviceName">jboss:service=Naming</property> <property name="bindingName">RmiPort</property> <property name="port">@cargo.jboss.naming.port@</property> <property name="description">Socket Naming service uses to receive RMI requests from client proxies</property> </bean>I think it has been done that way so that JBoss can act like the other containers: in other container, to look up EJBs for example, you use the JNDI registry on the (only) RMI port. If we inverse, then people testing EJBs on JBoss will need to invert.
Hence, I think the current way of working is better.
What do you think?