16Transactional Data Pre-Loading

DirLoad

You can get Transportation and Global Trade Management Cloud to load your inbound transmissions into the database faster without involving the application server. This is good when you just want to pre load data into Transportation and Global Trade Management Cloud and process the data later, like during setup of Transportation and Global Trade Management Cloud.

DirLoadServlet only supports these interfaces:

  • TransOrder
  • Shipment
  • ShipmentLink
  • TenderResponse
  • Location
  • Item
  • ItemMaster
  • HazmatGeneric
  • HazmatItem
  • ShipmentStatus
  • Invoice
  • Release
  • ShipmentGroup
  • SShipUnit
  • Sku
  • SkuTransaction
  • Contact
  • TransOrderStatus
Note: The DirLoadServlet does not raise lifetime events (like shipment - created for ActualShipment) so automation agents cannot be triggered. Therefore, care must be taken to ensure that any objects created via DirLoadServlet will be complete and in the expected state.

To do this:

  1. Make sure your transmissions only use the transaction code I. It is possible to use other transaction codes but with the limitation that you need to make sure that no user accesses that data through the application server while you update/delete your data. If a user accesses the data, you need to restart your application server after uploading your data to refresh its caches. To use other transaction codes with the DirLoadServlet you need to enable the relevant glog.integration.dirload.support.<code> property, where <code> is one of – update for 'U', insertUpdate for 'IU' or delete for 'D'. Setting the property value to 'on' will enable that transaction code.
  2. If you load many transactions and want to increase loading speed, you can increase the number of threads assigned to load the data for the 'DirLoad' Event Queue by following the instructions in the Configuration Guide.
  3. Post XML transmissions to http://hostname/GC3/glog.integration.servlet.DirLoadServlet
  4. DirLoadServlet saves your data to the database.

DirLoadServlet sets default statuses for business objects you insert.