Tuesday, July 21, 2015

SVN CLEANUP FAILS(96/285 technotes for 2015)



What to do is SVN Cleanup Fails? Please follow the guide lines below.


Prerequisites

  1. Download and unzip sqlite3 shell tool, e.g. sqlite-shell-win32-x86-3080803.zip
  2. Adjust paths in the commands below to match your environment

Fix (manual)

Run this if you just want to test if this helps

** I placed the sqllite3.exe in the same folder where we have wc.db

D:svn_pmp.svn>sqlite3.exe wc.db
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter “.help” for usage hints.
sqlite> select * from WORK_QUEUE;
812|(file-commit pmp-services/src/main/java/com/hixapi/pmp/service/plan/impl/mapping/PlanRateMapping.java)
sqlite> delete from WORK_QUEUE;
sqlite> .quit

Fix (automated)

If previous step worked for you, consider automating the process with these steps

  1. Go to your .svn folder, e.g.

    D:svn_pmp.svn
  2. Copy sqlite3 shell tool there
  3. Create a fix-svn.bat file in that folder
  4. Next time you need to fix it, just run the shortcut on your desktop

Insert scripting code, and adjust paths

"d:svn_pmp.svnsqlite3.exe" wc.db "delete from WORK_QUEUE"
"C:Program FilesTortoiseSVNbinsvn" cleanup "D:src"

Save bat file and make a shortcut to your desktop

References:

https://changilkim.wordpress.com/2012/12/10/svn-cleanup-fails/

http://stackoverflow.com/questions/18000363/tortoisesvn-wont-allow-me-to-add-any-files

Tuesday, July 7, 2015

Which ESB to choose? (95/285 technotes for 2015)

Mule ESB - 
  • first successful open source ESBs 
  • a commercial enterprise version is available -  offers additional functionality and support for the product
  • graphical editors for an efficient implementation of integration scenarios
  • connectors for B2B products such as SAP or Salesforce
  • functionality of a suite is missing in Mule ESB - products from other vendors has to be used
  • small community,  a restrictive licensing model and limited availability of the source code
Fuse ESB - 
  • based on Eclipse and very intuitive.
  • based on de facto standards in the integration environment such as Apache CXF and Apache Camel 
IBM ESB / IIB - 

  • Based on the research by Forester - conducted by IBM - the performance and maturity of the product IBM IIB makes to significantly ahead of the game.


References:
http://www.infoq.com/articles/ESB-Integration
http://bit.ly/1JT0iz1 - in favour of IBM IIB

JBoss Fuse vs IBM ESB? (94/285 technotes for 2015)

Price:
  • IBM products has a license cost and a support cost.
  • JBoss does not have a License cost - but has a subscription cost. Red Hat JBoss Fuse subscription is over $823K less than IBM WebSphere Enterprise Service bus at list price—or just 7.3% of the IBM cost.
Interest Over Time: 
Click on the link to see how Google Trends shows the interest over the time between the two products and the latest Integration technology - Apache Camel (which is used in JBoss Fuse)

Websphere ESB vs (Jboss Fuse & Apache Camel) (live link)

Sample below - the blue line shows decrease in interest IBM WebSphere technologies



Support:
  • RedHat JBoss Fuse can be used in any customer locations. 
  • The same is applicable for IBM ESB (except IBM WESB - Registry Edition or Retail Edition)
Developer Tooling:
  • RedHat JBoss Developer Studio is used for all Middleware development. 
  • Similarly IBM Websphere Integration Developer used for all development purpose. IBM tooling is more matured - but Red Hat is catching up.
Development:
  • JBoss Fuse development is extremely flexible - developers can swtich between graphical and xml views. Developers can can write a Apache Camel entirely in Java. 
  • IBM does not encourage switching between gui mode and xml mode. 
Other Tools:
  • With Red Hat Subscription, developers can choose to explore all the RedHat JBoss Middleware platforms like RedHat JBoss Data Grid and BRMS etc. 
  • This is not possible with IBM.
Building Integration using patterns:
  • RedHat JBoss uses Apache Camel -  open source, out of the box, standards based integration patterns based out of the book -  Enterprise Integration Patterns by Gregor Hohpe and Bobby Woolf.
  • IBM WESB does not allow pattern based development
Server deployment footprint:
  • RedHat JBoss Fuse requires 100mb free disk space and 2GB RAM. This can be even tuned and optimize. 
  • IBM in geneal required 6GB RAM to run IBM WESB (including IBM Application Server).
Embedded Java Development:
  • Use the Camel core component of Red Hat JBoss Fuse to embed routes in Java applications. This kind of feature is not available in IBM ESB.
Reliable Messaging:
  • RedHat JBoss Fuse uses ActiveMQ - an open source software with a very small footprint. ActiveMQ. 
  • It has several other benefits over IBM Websphere JMS. Please see link below for more info.
Transport Bindings
  • RedHat JBoss Fuse supports all the different types of transport binding including HTTP, JMS, HTTPS, FTP. 
  • On top of that Camel provides 125 connectors to varied systems.
References:

What are the components of JBoss Fuse? (93/285 technotes for 2015)


JBoss Fuse architecture and components - 




















Apache Camel - is a
  • 1. Simple
  • 2. Modular
  • 3. Open Source
  • 4. Java Library
  1. Connecting various components together, provide transformation, implement routing and also include Business Logic. 
  2. This is a rule based routing and mediation engine using EIPs (Enterprise Integration Patterns).
  3. Embed in any JVM and use any dependency injection framework
  4. Embed your integration solution directly where you need to.
  5. It has 100's of components already
  6. Huge community
  7. Also provide Domain Specific Language - you can use Java / Scala / ... or XML to decribe your flows
  8. For XML there is support for visual tooling
Apache CXF -
Apache ActiveMQ is an
  • open source message broker written in Java together with a full
  • Java Message Service (JMS) client.
Apache Karaf is a
  • modern and 
  • polymorphic container. It’s a 
  • lightweight, 
  • powerful, and 
  • enterprise ready container powered by OSGi. 
  • You can deploy different kind of applications in Karaf, OSGi or non-OSGi.
Fuse Fabric is a
  • technology layer that allows a 
  • group of containers to form a cluster that 
  • shares a common set of configuration information and a 
  • common set of repositories from which to access run-time artifacts.









What is JBoss Fabric? (92/285 technotes for 2015)



Fuse Fabric is a runtime environment that leverages capabilities of Apache Karaf, the container underlying JBoss Fuse, to provide centralized configuration and provisioning capabilities. In brief, Fuse Fabric provides the ability to create container instances running locally or remotely, including on cloud environments like Amazon EC2 and Rackspace. You can then create and apply Profiles that define what OSGi bundles and associated configurations (name / value pairs) to apply to each managed container.


References:

https://github.com/FuseByExample/docs/blob/master/deploy-using-fabric/README.md

Tuesday, June 30, 2015

Datapower Setup in VMWare Workstation (91/285 technotes for 2015)

  • Download the “idg7104.vmware_deved.ova” file (Datapower virtual appliance file) from the IBM Passport Advantage site.
  • Download the VMWare Workstation 11 from http://vmw.re/1FsfizF
  • Start VMWare Workstation - File–> Open –> 

    “idg7104.vmware_deved.ova”

  • Once the import is complete - start the appliance 
    • If required adjust the number of processors and memory Datapower uses.


Static IP:

Do you want to install Wizard? y

Step1:
Do you want to Configure network interfaces? y
Do you have this information? y
Do you want to configure the eth0 interface? y
Do you want to enable DHCP? n
Enter the IPv4 address for the interface in CIDR notation: 10.0.0.124/24
Enter the IPv4 address for the default gateway: 10.0.0.1
Do you want to configure the eth1 interface? n
Do you want to configure the eth2 interface? n
Do you want to configure the eth3 interface? n

Step2: Do you want to configure network interfaces? y
Do you want to configure DNS? y
Enter the IP Address of the DNS Server: 10.0.0.1 (this is the ip address of my default gateway)

Step3: Do you want to define a unique system identifier? y
Enter a unique system identifier: data123

Step 4 - Do you want to configure remote management access? y
Do you want to enable SSH? y
Enter the local IP address : 10.0.0.124 (this is the static ip for the DP)
Enter the port number: 22

Do you want to enable WebGUI access? y
Enter the local IP address : 10.0.0.124 (this is the static ip for the DP)
Enter the port number : 9090

Step5-7 - no

Saved the configuration

Post Installation:
Now goto internet browser and type the url

https://10.0.0.124:9090/login.xml?session=false

DHCP:

Do you want to install Wizard? y

Step1:
Do you want to Configure network interfaces? y
Do you have this information? y
Do you want to configure the eth0 interface? y
Do you want to enable DHCP? y
Do you want to configure the eth1 interface? n
Do you want to configure the eth2 interface? n
Do you want to configure the eth3 interface? n

Step2: Do you want to configure network interfaces? y
Do you want to configure DNS? n

Step3: Do you want to define a unique system identifier? y
Enter a unique system identifier: data767

Step 4 - Do you want to configure remote management access? y
Do you want to enable SSH? y
Enter the local IP address : 0.0.0.0 (this is the default ip)
Enter the port number: 22

Do you want to enable WebGUI access? y
Enter the local IP address : 0.0.0.0 (this is the default ip)
Enter the port number : 9090

Step5-7 - no

Saved the configuration

Post Installation:

cmd -> show int
this will give the ip address

Now goto internet browser and type the url

https://10.0.0.16:9090
If there is any issue with the DP Portal not working, login to CLI and type the command below

→ show int

If you dont see the ip address for eth0, type the commands below

→ co
→ ethe eth0
→ show

Check if the above value of ip-config-mode is static / dhcp. If static, set it to dhcp

→ ip-config-mode dhcp
→ exit
→ write mem
→ exit
→ show int

Pile of books that Mark Zucerberg wants to read.

http://on.fb.me/1T1jizA

Thursday, May 28, 2015

If Workstation fails to load or you have issues using the Workstation UI. (90/285 technotes for 2015)

Windows:
  1. Navigate to the VMware Workstation folder in Program Files.
  2. Double-click vm-support.vbs support script.
  3. When the process completes, you are presented with a message informing you that a file was created in a folder calledvmware-support in your host’s %TEMP% folder. The compressed support bundle name begins with vmsupport and includes a date stamp for month, day, and year.
  4. After collecting your support data, upload it as an attachment to your Support Request (SR). For more information, seeUploading diagnostic information to VMware (1008525).

References: 

Complete article - http://vmw.re/1RrInD5

Wednesday, May 20, 2015

Creating Virtual NIC (Network Interface Card) using Microsoft Loopback Adapter.

  • Under hdwwiz.exe - … - 
  • Select from list - Network Adapters, you should have a"Microsoft Loopback Adapter" device.
  • Finish 


References:

http://superuser.com/questions/339465/creating-a-virtual-nic-on-windows-7

What is Microsoft Wifi Mini Virtual Adapter? (88/285 technotes for 2015)



Virtual WiFi is a technology that virtualizes your network adapter much in the same way VMWare virtualizes your entire operating system. Once virtualized, you can basically convert one physical wireless adapter into two virtual ones



References:

http://bit.ly/1EYpbE3