Archive

Archive for January, 2013

Default Web Service Ports of WebSphere Message Broker

Port# Usage
7080 This port will be used by the bipHTTPListener process for plain HTTP traffic to all ExecutionGroups
7083 This port will be used by the bipHTTPListener for encrypted HTTP (HTTPS) traffic to all ExecutionGroups
7800-7842 This range of ports will be assigned incrementally for plain HTTP traffic to each EG that has a SOAPInput node, in the order that each EG starts up
7843-7885 This range of ports will be assigned correspondingly to the plain HTTP traffic port for HTTPS traffic to each EG that has a SOAPInput node, in the order that each EG starts up

The ports can be configured individually on each Broker by using the options for mqsichangeproperties as described here, with corresponding information on configuring the ports for SOAPInput over HTTP and HTTPS here.

You can check the configuration of the broker with the following commands:

SET "BROKER_HOME=C:\Program Files\IBM\MBroker\7.0"
SET "path=%path%;%BROKER_HOME%\bin"
mqsiprofile
mqsireportproperties Brokername -b httplistener -o AllReportableEntityNames -a 
mqsireportproperties Brokername -b httplistener -o HTTPListener -a
mqsireportproperties Brokername -b httplistener -o HTTPSConnector -a

You can check the configuration of an executiongroup with the following commands:

SET "BROKER_HOME=C:\Program Files\IBM\MBroker\7.0"
SET "path=%path%;%BROKER_HOME%\bin"
mqsiprofile
mqsireportproperties Brokername -e EXECUTIONGROUP-o HTTPConnector -r
mqsireportproperties Brokername -e EXECUTIONGROUP-o HTTPSConnector -r

And you can change the default configuration like this

mqsichangeproperties Brokername -e EXECUTIONGROUP -o HTTPSConnector -n explicitlySetPortNumber -v 7843

See more Informations here and here.

Advertisements

Display system information for Microsoft Windows

Displays complete system information for Microsoft Windows XP Professional or Windows 7 computers.

systeminfo[.exe] [/s Computer [/u Domain\User [/p Password]]] [/fo {TABLE|LIST|CSV}] [/nh]

systeminfo

Star Wars Ascii animation movie

You can watch an ASCII version of the Star Wars Episode IV movie here:
http://www.asciimation.co.nz/

There is also a version with sound here:
https://www.youtube.com/watch?v=h_GSRymSCt8

Categories: Misc

How to get the directory structure of a drive or path

The tree command displays the directory structure of a drive or path graphically.

tree [drive:][path] [/F] [/A]

/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.

tree c: /F

The dir command allows you to see the available files in a directory.

dir [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

dir /s /b

Maven Assembly Plugin: You must set at least one file.

maven_assembly_plugin_error

If you got an error message like this, check if your directory really exists.

...
<directory>checkThisDirectory</directory>
...

Execute specific Maven goal

...
<plugin>
  <groupId>com.mygroup.maven.plugins</groupId>
  <artifactId>myplugin-maven-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>mygoal</goal>
      </goals>
      <configuration>
        <myConfiguration>something</myConfiguration>
      </configuration>
    </execution>
  </executions>
</plugin>
...

Call the goal with ‘myplugin’ as the plugin name, not ‘myplugin-maven-plugin’:

mvn myplugin:mygoal

Executing multiple mvn commands from a Windows batch file

If you try to run multiple Maven commands in a batch (.bat) file, it only runs the first one and exits to the command prompt cause mvn itself starts with a bat file. Use the call command for each call to mvn:

call mvn clean
if not "%ERRORLEVEL%" == "0" echo Exit Code = %ERRORLEVEL% exit /b

call mvn package
if not "%ERRORLEVEL%" == "0" echo Exit Code = %ERRORLEVEL% exit /b