C frequently asked questions – HP Integrity NonStop H-Series User Manual
Page 111

C Frequently asked questions
1.
How do I know when the server has completely started and ready to service requests?
Look at the server.log file in <NSASJ_HOME>/domain/servers/nsasj-server/log
folder. A message like
JBoss AS 7.1.2.Final "Steropes" started in 6155ms - Started 119 of 179 services (60 services are passive
or on-demand)
indicates that the server is started and ready to process requests.
2.
Is there a way to know what NonStop processes constitute my NSASJ environment?
Yes. The names of the server processes that constitute the domain indicate the name of the
server processes on NonStop. The names of the nodes are in the format
nsasj-server:
. The nodes of a domain can be obtained by executing the
operation read-children-names of child-type=server in CLI. The full command is
/host=master/:read-children-names(child-type=server)
. The following is
sample result of executing the command:
/host=master/:read-children-names(child-type=server)
{
"outcome" => "success",
"result" => [
"nsasj-server:0,1118",
"nsasj-server:1,620",
"nsasj-server:2,732",
"nsasj-server:3,611"
]
}
In this sample output there are 4 NonStop processes that constitute NSASJ domain. The other
processes that constitute an NSASJ environment are the Post Master instances, Host Controller
instance and the Cache server instances. The only way to get the process names of these
processes is by using the status server *,detail command in the pathcom prompt.
The CLI does not give information on these processes.
3.
How do I deploy applications on NSASJ?
There are different ways to deploy an application on NSASJ.
a.
Applications can be deployed through CLI. In the GUI CLI the Meta Commands file menu
option can be used to deploy applications.
b.
Applications can be deployed using the CLI in non-GUI mode too. This is explained in
Admin+Guide#AdminGuide-Applicationdeployment
.
c.
Applications can be deployed from a development environment using JBoss maven plugin.
This is explained in
4.
To invoke an EJB remotely I need to construct the JNDI name of the remote object. How do I
know the values of the constituents (such as app name, module name, distinct name) of the
JNDI name?
This information can be obtained from CLI from any running server instance by executing the
command jndi-view on the namingsubsystem. A sample command is
/host=master/server=nsasj-server\:1,620/subsystem=naming/:jndi-view
.
The following is the snippet of the output of executing this command:
....
....
"applications" => {"helloworld.jar" => {
....
....
"HelloWorldImpl" => {
"class-name" => "$Proxy31",
"value" => "Proxy for remote EJB StatelessEJBLocator{appName='',
moduleName='helloworld', distinctName='', beanName='HelloWorldImpl', view='interface
com.hp.nsk.nsasj.samples.helloworld.HelloWorld'}"
},
....
....
111