WSO2 EI - disable Random ports on startup - wso2

that is the question, how can I disable the dynamic ports that initialize the "integrator.sh", I need to disable or fix it by a requirement of the infrastructure people.
Thanks a lot!
wso2-ei documentation

Actually u can change default ports via carbon.xml ($EI_Home/conf/carbon.xml).
You have to set 0 property as u want. Default port is 9443 for management console and it will change according to given offset.
If you give offset as 10, port will be 9453 for management console. And other ports also change accordingly.

I solved it in the following way. In the file integrator.sh comment the line
-Dcom.sun.management.jmxremote \
with that it does not generate random ports

Related

DisableAddressSharing registry is not working

I am trying to use DisableAddressSharing registry to disable port sharing between sockets but it's not working.
DisableAddressSharing is set to 1.
socket server1 = bind(INADDR_ANY,Port)
socket server2 = bind("127.0.0.1",Port)
If I use SO_EXCLUSIVEADDRin server1 socket then address sharing is disabled. Is there any reason that registry is not working ?
A reboot is required for this setting to take effect.
As a workaround, Microsoft provides a registry setting that will globally (system-wide) prevent all sockets from reusing any port that is already in use. This is done by setting to 1 the "DisableAddressSharing" value of the "HKLM\System\CurrentControlSet\Services\Afd\Parameters" key. (Reboot required for the setting to take effect).
The administrator should first confirm that disallowing socket reuse globally does not break the functionality/correctness of existing legitimate servers on the system. If it's safe, the setting described above should be used to apply this security measure.
Please refer to Microsoft article on SO_EXCLUSIVEADDRUSE before implementing this feature.

Multiple VLAN port group configuration on vMware standard vSwitch not working

I need to move servers to different VLANS(10, 20, 30). I tried to configure Multiple port groups in vMWare standard vSwitch. But only Vms in one port group (VLAN10) are able to access internet, rest are not. Can someone please help me on this.
Is it possible or i need to create different Switches for this?
You will need separate port group for each VLAN, but you can use the same standard switch. Of note, please ensure that the uplinks (from the physical host) for that standard switch have proper connectivity to each of those VLANs.

Install WSO2 ESB and Api Manager server in one server

I have to install both WSO2 ESB and API manager server in same development server. But always get Port already in use exception. I think that caused by the two apps using same JVM.
Could anyone please shed me light on proper configuration to make two server working tighter?
When you run multiple WSO2 products/clusters or multiple instances of the same product on the same server or virtual machines (VMs), you must change their default ports with an offset value to avoid port conflicts. An offset defines the number by which all ports in the runtime (e.g., HTTP/S ports) will be increased. For example, if the default HTTP port is 9763 and the offset is 1, the effective HTTP port will change to 9764. For each additional WSO2 product instance, you set the port offset to a unique value. The offset of the default ports is considered to be 0.
There are two ways to set an offset to a port:
Pass the port offset to the server during startup. The following
command starts the server with the default port incremented by
3:./wso2server.sh -DportOffset=3
Set the Ports section of <PRODUCT_HOME>/repository/conf/carbon.xml.
E.g., <Offset>3</Offset>
Refer Changing the Default Ports with Offset

location of cassandra.port in BAM2.2.0

I would like to monitor my application server application using WSO2 BAM. Intially I
didn't change the BAM offset address, keep it as by default(ie offset 0) and I changed the
application server offset as 2. It seems some problem to show. If I change the offset of BAM
server as 2. How can I change the cassandra.port address. I mean the location of the file in BAM 2.2.0 server.
Thanks
Cassandra port can be changed from wso2bam-2.2.0/repository/conf/etc/cassandra-component.xml.
But if you change BAM offset to 2, it automatically increases Cassandra port as well, unless you have enabled
<!--Nodes>localhost:9160</Nodes-->
entry in cassandra-component.xml.
If Lakmali's answer is not working properly apply the port offsets in,
All Hive scripts, if port numbers are used inside them. (Make sure you use DROP TABLE command before each Hive table's CREATE command, if you update the script in the same BAM pack without extracting a fresh pack.)
Cassandra port numbers in wso2bam-2.2.0/repository/conf/datasources/master-datasources.xml file.

How to Disable Wireless Network Connection Notification Balloon?

I want to programmatically disable the notification I get when I connect to a wireless network. I know there is a way to disable ALL notifications (see here) but is there a way to only disable the one issued by Windows wireless Manager (i.e. wlanapi.dll).
Many thanks!
I don't think this is possible, except in Windows 7 when it's available. (It apparently includes a much more configurable tray-program manager).
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
New \ DWORD
EnableBalloonTips
Hexadecimal
0