Backing Up and Restoring Your DB2 Toolkit Database

backup and restore db2 toolkit database

Sometimes you have to backup and restore your local toolkit VM. Backing Up a Database Backing up the database is as simple as running the following command in DB2 Command Window – Administrator: But that may end up with an error: SQL1035N The operation failed because the specified database cannot be connected to in the mode requested. SQLSTATE=57019 The problem happens when there are connects to the database. First, you need to make sure the server is stopped. Then, run the following Then you can run the following again: Afterwards, you can run the following to bring the database back: […]

Overview of Blockchain Technology and Potential Uses

ibm blockchain overview hyperledger fabric

The introduction of blockchain technology is revolutionizing business by allowing two or more parties to trust a ledger of records. While this technology is beneficial in many business areas, it is particularly useful when it comes to supply chain management. Before describing the benefits, we should first define what the blockchain is and is not. It is a distributed ledger of data. That data is a specific record, a block, which is linked to the next block. The links to the next block are cryptographically secure to ensure the integrity of the entire list of records, the chain. The blockchain, […]

Returning 404 Response Code On Command Not Found Error Pages

return 404 response code

The generic error page is used for several types of errors. However, the error itself is usually not because of that page. This causes some tricky response code situations. If the error page successfully loads, a 200 success code could be returned. When errors do occur, the response code should reflect the error that triggered the generic error page to show. Otherwise, it’s very possible that Google will index the error page. An easy fix is to let the generic error return the 500 error code, but check for the command not found error. When that error triggered the page, […]

Configure and Test Emails With SendMsgCmd and FakeSMTP

send emails with sendmsgcmd and fakesmtp

To send emails in WebSphere Commerce, you first need to define and activate the email transport. Then the server defined needs to be configured and started to actually handle the incoming requests. Once that is set up, create a new JSP view, define it in Struts, and set the access control policies. Finally, the view can be used with the SendMsgCmd to send emails. Configure WCS Email Transport Log into WCS Admin Console Select Site Select Configuration > Transports Select Email, and click the Change Status button to make it Active. For testing, enter the following values: Host: localhost Port: […]

Refresh Properties at Run Time (Instead of Restarting the Server)

When developing with WCS, having to restart the server takes up a lot of time and really drags out the amount of time needed to test. If you follow IBM’s best practices, even sites with only one language still use properties files, and any changes to those typically means the servers needs restarted. On a project using version 7 FeP 7, I got tired of having to restart all the time, and found code to refresh the properties at run time rather than having to restart the server. However, after pasting the code into my JSP, I got the following […]