SMA and LLA Guide : Creating and running LLA applications with Java : Overview of using LLA with Java
  
Overview of using LLA with Java
LLA enables Java applications to start a local solidDB® server, which will be loaded into the Java Virtual Machine context from a dynamic library. The Java application is then able to connect to the solidDB® server and use the services solidDB® server provides through a standard JDBC API. Linking to the dynamic library allows the application to avoid the overhead of RPC (Remote Procedure Calls) through the network.
Java/JDBC programs that want to use LLA link to the LLA library (ssolidacxx). The LLA library contains the entire solidDB® server, except that it is in the form of a callable library instead of a stand-alone executable program. The libraries used with Java/JDBC are the same as the ones used with C/C++ applications; there are not separate versions for Java.
When you use LLA with Java/JDBC, you link the following into a single executable process:
LLA library,
your Java-language client program, and
the JVM.
The layers in the executable process are, from top to bottom:
Local Java (JDBC) client application
JVM (Java Virtual Machine)
LLA library
Java commands in your client are executed by the JVM. If the command is a JDBC function call, the JVM calls the appropriate function in ssolidacxx. The function call is direct, it does not go through the network (through RPC). The calls are made using Java Native Interface (JNI). You do not need to write any JNI code yourself; you simply have to call the same JDBC functions that you would call if you were a remote client program.
Accessing a solidDB® database from with LLA is identical to accessing a solidDB® database through RPC — with one exception: to access the database services, the application using LLA must first start the LLA server. You can start the LLA server with a proprietary API called solidDB® Server Control (SSC) API for Java (named after SolidServerControl class. The actual database connections are done with normal solidDB® JDBC API. Both the SSC API for Java and solidDB® JDBC driver can be found in the .jar file named SolidDriver2.0.jar.
When the local solidDB® server is started, it is loaded into the Java Virtual Machine context from the dynamic library. The Java application can then connect to the solidDB® server and use the services the server provides through a standard JDBC API.
Every application that uses LLA follows the same basic four-step pattern:
1 Configure the solidDB® server and the connection settings.
2 Start the LLA server with SolidServerControl class.
3 Access the database by using normal JDBC API.
4 When database processing is done, stop the LLA server again with SolidServerControl class.
See also
Limitations
Creating and running LLA applications with Java