Using clones to run unit test

By Danielle Johnston,

Using clones to run unit test In NexJ Contact 7.1, we introduced the ability to run unit tests in parallel. The benefit of running unit tests with clones is that the entire suite of test cases can be run quicker. For example, a test suite that runs for an hour without clones, might run in  … Read more

Scheme Cheat Sheet

By Evan Wee,

This article provides a quick reference guide for learning Scheme and commonly used expressions. The target audience is for new NexJ developers who have previous programming experience. Please refer to the Introduction to Scheme course for more in-depth discussion. Also, within NexJ Studio, you can mouse-over each function for details. Primitives Description Scheme example Java  … Read more

Proxy Classes: Building a simple proxy class

By Owen Pond,

The NexJ object model provides a set of tools for modelling proxy classes. A proxy class is defined as: The proxy design pattern allows you to provide an interface to other objects by creating a wrapper class as the proxy. The wrapper class, which is the proxy, can add additional functionality to the object of interest without changing the object’s code. In  … Read more

Developing with Mixins

By James Spence,

Mixins allow you to add functionality to your project as an independent model. A mixin is a standalone project, but, when it is added to your working model as a mixin, all of its component files can be referenced and used within your model. When developing your own projects, mixins are a good way to  … Read more

Changing read limits and updating large collection sets

By Savio Lee,

Read limits determine the number of instances that can be returned during a read() call. By default, the read limit is 4096 instances. Each data source can be configured to have its own limit. NexJ recommends that you do not change the limit unless you have a good reason to change it. You can change  … Read more

Getting Control of Your Console Logger

By Ed Shaw,

In this article, I’ll provide details on the ins and outs of our console logger. It is an except from some upcoming intermediate training material. We will discuss some key concepts, instrumenting your code, setting log levels, and some advanced output options. Key Concepts Standard logging provides visibility into the activities of the running system  … Read more

Using pre-commit

By Arjun Subramanian,

The pre-commit function is a server scoped function that flushes the instances in the current transaction to the persistence layer and locks them to the current transaction. If another transaction tries to read this resource, it either reads stale data or is denied access. Difference between commit and pre-commit functions The pre-commit function flushes a  … Read more