Showing posts with label technical. Show all posts
Showing posts with label technical. Show all posts

Friday, July 31, 2015

The declared package does not match the expected package “”? (100/285 technotes for 2015)

The issue description:

The declared package “org.jboss.as.quickstarts.helloworld” does not match the expected package “main.java.org.jboss.as.quickstarts.helloworld” HelloService.java /jboss-helloworld/src/main/java/org/jboss/as/quickstarts/helloworld line 17 Java Problem

image




Resolution:


To resolve this issue.

Right click on the the project → Properties → Java Build Path → Source

Click on the project →


image


Add a new Source folder src/main/java


image


Remove the old src folder


image

Thursday, July 30, 2015

What is JBOSS EAP? (99/285 technotes for 2015)



JBoss Enterprise Application Platform is a rigorously tested, stable, supported platform for developing and deploying mission critical Java applications and services. 

It integrates code from the 

JBoss EAP is certified on 17 operating systems, 5 Database Management systems and JVM combinations. It also integrates with 


Advantages:

  • 0 licence fee, significantly lower Total Cost of Ownership (TCO)- upto 70% savings.
  • avoid vendor lock in ?????


  • With 24x7x365 support with 1 hour SLA you are guaranteed support when you need it.

Monday, July 27, 2015

Useful Java syntaxes.

org.apache.commons.lang3.Validate

This class assists in validating arguments. The validation methods are based along the following principles:  

———————————————————————————

Wednesday, July 22, 2015

What is the difference between JAXB and JAXP? (98/285 technotes for 2015)

JAXP (Java API for XML Processing) is a rather outdated umbrella term covering the various low-level XML APIs in JavaSE, such as DOM, SAX and StAX.

  1. Create a SAX Parser or DOM Parser and then PArse the data, if we use DOM, it may be memory intensive if the document is too big. Suppose if we use SAX parser, we need to identify the beginning of the document. When it encounters something significant (in SAX terms, an “event”) such as the start of an XML tag, or the text inside of a tag, it makes that data available to the calling application.
  2. Then Create a content handler that defines the methods to be notified by the parser when it encounters an event. These methods, known as callback methods, take the appropriate action on the data they receive.

JAXB (Java Architecture for XML Binding) is a specific API (the stuff under javax.xml.bind) that uses annotations to bind XML documents to a java object model.

  1. Bind the schema for the XML document.
  2. Unmarshal the document into Java content objects. The Java content objects represent the content and organization of the XML document, and are directly available to your program. After unmarshalling, your program can access and display the data in the XML document simply by accessing the data in the Java content objects and then displaying it. There is no need to create and use a parser and no need to write a content handler with callback methods. What this means is that developers can access and process XML data without having to know XML or XML processing

References: 

http://stackoverflow.com/questions/2801502/what-is-the-difference-between-jaxp-and-jaxb

Increase Heap Memory in Websphere(97/285 technotes fpr 2015)

Method 1: Using the administrative console

Open the administrative console.

Navigate to Servers > Server Types > WebSphere application servers > <servername>

Navigate to Server Infrastructure > Java and Process Management > Process Definition

Navigate to Additional Properties > Java Virtual Machine > General Properties

Define the values (in MB) for ‘Maximum heap size’ and/or ‘Initial heap size’.

Restart the server.

Note: If the heap size is already low, the administrative console might not open. In such cases, use some other method to configure the heap size.

Method 2: By editing the configuration files

This method should be used with caution.

Search for a file named server.xml in your WebSphere installation.

Generally, the location of this file is as follows:

<profilehome>/config/cells/<cellname>/nodes/<nodename>/servers/<servername>/server.xml

Select the server.xml specific to your server and edit it to add/modify/delete the attributes @initialHeapSize and @maximumHeapSize of the element <jvmEntries> The value of these attributes is the heap size in MB.

For example:

<jvmEntries ... initialHeapSize="2048" maximumHeapSize="3072" ...>
...
</jvmEntries>

Restart the server after saving the changes to server.xml.


References:

https://blakboard.wordpress.com/2013/05/15/how-to-configure-heap-size-for-websphere-application-server/

Tuesday, July 21, 2015

ModelMapper - Simple, Intelligent, Object Mapping.

ModelMapper - Simple, Intelligent, Object Mapping.

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

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

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

Tuesday, May 19, 2015

Basic’s of Networking. (87/295 technotes for 2015)

What is a Public IP Address?

image

What is a Private IP Address?

image


What is a Default Gateway?

Default Gateway - is a the device that passes information from the local subnet to some other subnet (local network to internet)


In home, the home router is assigned the default gateway ip address - 192.168.1.1

What is a CIDR Notation?

First address of a network, followed by a slash character (/), and ending with the bit-length of the prefix. For example, 192.168.1.0/24 is the prefix of the Internet Protocol Version 4 network starting at the given address, having 24 bits allocated for the network prefix, and the remaining 8 bits reserved for host addressing


What is a Subnet?

The practice of dividing a network into two or more networks is called subnetting. 

image



Subnets may be arranged logically in a hierarchical architecture, partitioning an organization’s network address space into a tree-like routing structure.


What is a Subnet Mask?

A subnet mask is a screen of numbers used for routing traffic within a subnet. Once a packet has arrived at an organization’s gateway or connection point with its unique network number, it can be routed to its destination within the organization’s internal gateways using the subnet number.

What is a DHCP Server?


Where is a DHCP Server located?

DHCP server is located in the Router. If you do ipconfig /all you will see any entry mentioning the DHCP entry.

image

Goto your browser and type the ip address of the DHCP Server -> it will take you to the router admin console

image

Most likely it will be the same as the default gateway.


What is a DNS Server?

Domain Name Servers (DNS) are the Internet’s equivalent of a phone book. They maintain a directory of domain names and translate them to Internet Protocol (IP) addresses. This is necessary because, although domain names are easy for people to remember, computers or machines, access websites based on IP addresses

Where is a DNS Server located?

DNS Server is a servics provided by the ISP - http://dns.comcast.net/

Some smart routers act as a local DNS Server by remembering ip addresses of a websites.

Command - ipconfig /all | findstr /R "DNS Servers"


What is a primary DNS?


References:

Friday, May 15, 2015

What is a Root CA and Intermediate Certificate? (86/285 technotes for 2015)

  • The Root certificate has the private key issued by the CA (Certificate Authority). 
  • This is set offline and has to be in a secured location as it contains the private key.
  • From the Root CA - 2nd Level / Intermediate Certificate’s are generated
  • 2nd Level Certificates are responsible for issuing certificated to any websites which require certificates.
  • In order for the browser accesing a website to trust a certificate, the browser has to be pre-loaded with the Root Certificate (the red arrow).

References:

https://youtu.be/LRMBZhdFjDI

Wednesday, May 13, 2015

IBM ODM Introduction (85/285 technotes for 2015)

Challenges Solved:

  • Rules hidden in your application or processes - hard to find and change
  • You want to Automate Operational Decisions - assuming safe
  • Legacy system is hard to use - and not accessible by Business users
  • Change requests often take months to implement

TIME TO SWITCH to ODM - ODM is all about CHANGE

  • Rules that change
  • Detect real time Business Events - apply rules accordingly

ODM (Operational Decision Management) system is the evolution of BRMS (Business Rules Management System).

  • Easy to use system to automate day-to-day operational decisions
  • Intuitive interface both for business and IT

References:

ODM for Dummies - http://ibm.co/1PjfJq6

Importing Image into AWS as an AMI using AWS CLI. (84/285 technotes for 2015)

Importing an external image into AWS requires the steps below.

aws ec2 help

  • Download the VM image from its current environment as an OVA file (or VMDK, VHD, or RAW).
  • Upload the VM image to S3 using the web console. Goto S3 –> choose / create a bucket and upload the VM file.
image
image


  • Once the VM image is uploaded, import your VM using the ec2 import-image command.

aws ec2 import-image –cli-input-json “
{  "Description": "Datapower OVA",
    "DiskContainers": [
          { "Description": "First CLI task",
            "UserBucket": 

             { "S3Bucket": "datapower-bucket", 

               "S3Key" : "rel_agoradco_nonpd_xen.vhd" 

           }
        } ]
}”

  • Use the ec2 describe-import-image-tasks command to monitor the import progress.

aws ec2 describe-import-image-tasks –import-task-ids import-ami-fgifmh5x

  • Once your import task is completed, you can use the ec2 run-instances command to create an Amazon EC2 instance from the AMI generated during the import process.

References:

Monday, May 4, 2015

Global Business Process Management (BPM) as a Service Market 2015-2019

Global Business Process Management (BPM) as a Service Market 2015-2019

How to disable a wsdl/port type is WSRR? (82/285 technotes for 2015)

Login to WSRR –> WSDL Document –> click on the wsdl that you want to “retire” –> Governance tab –> “Retire from use” –> Transition

image
image
image

Top 3 vendors in smart/intelligent BPM space. (81/285 technotes for 2015)

Changing Market - iBPMs include social, analytics and cloud in their offering

For different factors for iBPMs are

  • Composition of intelligent, process-centric applications
  • Continuous process improvement (CPI)
  • Business transformation
  • Digitalized process

Appian

  • what is happening right now within their organization, markets and customers, and accelerate the translation of that awareness into action and business outcomes 
  • social centricity 

Short Comings

  • does not have full CEP(Complex Event Processing) and analytics capabilities 


  • less support for top down transformation.

Pega System

  • Largest pure play vendor
  • can be leveraged for large complex business scenarios


  • advanced operational decision management capabilities, predictive analytics and IoT integration

Short Comings

  • did not focus on low end mid market
  • finding resource is difficult

IBM BPM

  • Steadily moving to cloud
  • enabling mobile, social, cloud and big data while driving efficiency and optimization into end-to-end processes.

  • starting to handle -  more-agile, lightweight projects.

  • leader in decision management 

Short Comings

  • relatively hard to configure and deploy
  • customer feedback is lukewarm / tepid.

References:

http://bit.ly/1R6rXk4