Message-ID: <1564159663.300192.1369035535673.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_300191_762643337.1369035535673" ------=_Part_300191_762643337.1369035535673 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If you're using the Java API there are 2 solutio= ns to instantiate a container:
DefaultContainerFactoryclass= . The advantage is that you can instantiate the container by name and thus = your code can be generic which is nice if you plan to run the same code wit= h different containers. For example, to instantiate a Resin 3.x installed local container:
In general we recommend that you use the factory method to i= nstantiate a container as this makes your code more flexible.
The cla= ss or container id to use for instantiating a container can be found on eac= h container's documentation page:
If you're using = a Cargo extension you'll use the = way defined by the extension to instantiate a container. Underneath, all ex= tensions use the factory method to instantiate containers.------=_Part_300191_762643337.1369035535673--