aInfoEra
Home
MCQs
Spring — Quiz
Spring Mcq Set 18
50 questions · Test your knowledge
Home
/
MCQs
/
Spring Mcq Set 18
1
This provides a set of diagramming notations that describe a business process. This notation is akin to UML activity diagram.
A
WS-BPEL (BPEL 2.0)
B
WS-BPEL (BPEL)
C
WS-BPEL for People (BPEL4People)
D
Business Process Modeling Notation (BPMN)
2
A way of letting your process rest in a known condition indefinitely.
A
State
B
Activity
C
Sequence
D
Subprocess
3
A pause in the action that can only move forward when a known actor or agent in the system moves it forward.
A
State
B
Activity
C
Sequence
D
Subprocess
4
An aggregation of states, activities, and other types of constructs that serializes them.
A
State
B
Activity
C
Sequence
D
Subprocess
5
A concurrent execution of multiple threads of execution at the same time, originating from a common thread.
A
State
B
Activity
C
Sequence
D
Fork or concurrence or split
6
Each department may have its own task list to complete in order to achieve the goals of the overarching process.
A
State
B
Activity
C
Subprocess
D
Fork or concurrence or split
7
A decision describes a node that is conditional, based on some logic that you inject.
A
True
B
False
C
none
D
all the mentoined
8
To use PostgreSQL, you need to add a the driver library to the classpath.
A
True
B
False
C
none
D
all the mentoined
9
<dependency> <groupId>org.jbpm.jbpm4</groupId> <artifactId>jbpm-jpdl</artifactId> <version>4.3</version> </dependency> Dependency for JBPM 4.
A
True
B
False
C
none
D
all the mentoined
10
JBPM supports databases such as:-
A
Oracle
B
SQL Server
C
MySql
D
All of the mentioned
11
To make use of jBPM from within a Spring application context.
A
org.jbpm.pvm.internal.cfg.SpringConfiguration
B
org.jbpm.pvm.internal.cfg.Spring
C
org.jbpm.pvm.internal.cfg.*
D
All of the mentioned
12
To use jBPM as a stand-alone process server:-
A
Javax
B
JBoss
C
None of the mentioned
D
All of the mentioned
13
It’s not too difficult to get jBPM working on JBoss EJB environment.
A
True
B
False
C
none
D
all the mentoined
14
JBoss itself supports deploying processes to a directory and loading those, with some configuration.
A
True
B
False
C
none
D
all the mentoined
15
jBPM is, fundamentally, a runtime that stores its state and jobs in a database. It uses:-
A
Hibernate
B
Spring
C
All of the mentioned
D
None of the mentioned
16
To have an annotated class be registered as a Hibernate entity, it needs to be registered with the:-
A
AnnotationSessionFactory
B
AnnotationSessionFactoryBean
C
AnnotationSessionFactoryBean
D
None of the mentioned
17
Because our jBPM configuration uses Hibernate, we have to configure the :-
A
AnnotatedSessionFactory
B
AnnotatedSessionFactoryBean
C
None of the mentioned
D
all of the mentioned
18
The next bean—the dataSource—is configured entirely at your discretion. The properties are set using properties in the properties file :-
A
jbpm4.xml
B
jbpm.properties
C
jbpm4.properties
D
none of the mentioned
19
When we’re integrating with Spring, we modify the transaction-context element and the command-service element.
A
True
B
False
C
none
D
all the mentoined
20
The hibernate-session element tells jBPM to reuse an existing Hibernate session:-
A
True
B
False
C
none
D
all the mentoined
21
The spring-transaction-interceptor element is a special element to enable jBPM to defer to the TransactionManager defined in our application context.
A
True
B
False
C
none
D
all the mentoined
22
jBPM will expose beans using the:-
A
jBPM will expose beans using the:-
B
jBoss
C
Spring expression language
D
none of the mentioned
23
jBPM, and indeed most workflow engines, passivate state for you, allowing a process to wait on external events :-
A
True
B
False
C
none
D
all the mentoined
24
The method annotated with @PostConstruct will be run after the bean’s been configured to let the user inject custom initialization logic.
A
True
B
False
C
none
D
all the mentoined
25
The business process file’s name needs to end in :-
A
jpdl
B
xml
C
jpdl.xml
D
none of the mentioned
26
At the top, we’ve injected some dependencies:
A
springConfiguration
B
repositoryService
C
executionService
D
all of the mentioned
27
The class(CustomerServiceImpl) provides a few salient methods:- package com.apress.springrecipes.jbpm.jbpm4.customers; public interface CustomerService { void sendWelcomeEmail(Long customerId); void deauthorizeCustomer(Long customerId); void authorizeCustomer(Long customerId); Customer getCustomerById(Long customerId); Customer createCustomer(String email, String password, String firstName,  String lastName); void sendCustomerVerificationEmail(Long customerId); }
A
void setupProcessDefinitions()
B
Customer createCustomer(String email, String passphrase, String firstName, String lastName)
C
void sendCustomerVerificationEmail(Long customerId)
D
all of the mentioned
28
In the bean, setupProcessDefinitions is run when the bean is created.
A
True
B
False
C
none
D
all the mentoined
29
Process definition will reference Spring beans using the JBoss expression language.
A
True
B
False
C
none
D
all the mentoined
30
In jBPM, a business process is built using jPDL.
A
True
B
False
C
none
D
all the mentoined
31
.In the customerService bean, a client will use createCustomer to create a customer record. <?xml version="1.0" encoding="UTF-8"?> <process name="RegisterCustomer" xmlns="http://jbpm.org/4.0/jpdl"> <start> <transition to="send-verification-email" /> </start> <java name="send-verification-email" expr="#{customerService}" method="sendCustomerVerificationEmail"> <arg> <object expr="#{customerId}" /> </arg> <transition to="confirm-receipt-of-verification-email" /> </java> <state name="confirm-receipt-of-verification-email"> <transition to="send-welcome-email" /> </state> <java name="send-welcome-email" expr="#{customerService}" method="sendWelcomeEmail"> <arg> <object expr="#{customerId}" /> </arg> </java> </process>
A
True
B
False
C
none
D
all the mentoined
32
Inside the createCustomer method, we use jBPM to start the business process to track the Customer. This is done with the :- <?xml version="1.0" encoding="UTF-8"?> <process name="RegisterCustomer" xmlns="http://jbpm.org/4.0/jpdl"> <start> <transition to="send-verification-email" /> </start> <java name="send-verification-email" expr="#{customerService}" method="sendCustomerVerificationEmail"> <arg> <object expr="#{customerId}" /> </arg> <transition to="confirm-receipt-of-verification-email" /> </java> <state name="confirm-receipt-of-verification-email"> <transition to="send-welcome-email" /> </state> <java name="send-welcome-email" expr="#{customerService}" method="sendWelcomeEmail"> <arg> <object expr="#{customerId}" /> </arg> </java> </process>
A
startProcessInstanceByKey
B
startProcessInstance
C
all of the mentioned
D
None of the mentioned
33
Once in the java element named send-verification-email, jBPM will invoke the method:-
A
sendCustomerVerificationEmail
B
sendCustomerVerification
C
veifyCustomerVerificationEmail
D
all of the mentioned
34
Inside authorizeCustomer, the service queries the server for the any processes waiting at the:-
A
confirm-receipt-of-verification
B
confirm-receipt
C
confirm-receipt-of-verification-email
D
none of the mentioned
35
The authorizeCustomer method also updates the Customer entity, marking it as authorized. From there, execution proceeds to the send-welcome-email java element.
A
True
B
False
C
none
D
all the mentoined
36
OSGi—which was formerly known as the:-
A
Open Services Gateway initiative
B
Open Source Gateway initiative
C
Open Services Gateway initialisation
D
None of the mentioned
37
OSGi provides a layer on top of the JVM’s default class loader.
A
True
B
False
C
none
D
all the mentoined
38
On top of Spring Dynamic Modules, SpringSource built SpringSource dm Server, which is a server wired from top to bottom with OSGi and Spring.
A
True
B
False
C
none
D
all the mentoined
39
OSGi is a framework.
A
True
B
False
C
none
D
all the mentoined
40
User component models are:-
A
OSGi
B
Spring
C
All of the mentioned
D
None of the mentioned
41
In OSGi, anything used by something else is a state.
A
True
B
False
C
none
D
all the mentoined
42
“Service†doesn’t imply any:-
A
RPC
B
inheritance
C
transactional qualities
D
All of the mentioned
43
OSGi bundles are simply standard .jar files with customized MANIFESTs that OSGi consumes at runtime.
A
True
B
False
C
none
D
all the mentoined
44
Tool which dynamically interrogates classes for their imports and generates OSGi–compliant entries.
A
pnd
B
jndi
C
bnd
D
None of the mentioned
45
The plug-in produces OSGi–compliant bundles that work in any container.
A
True
B
False
C
none
D
all the mentoined
46
The Bundle-Activator directive describes to the OSGi environment, which class implements :-
A
BundleActivator
B
BundleActivate
C
All of the mentioned
D
None of the mentioned
47
When the bundle begins to load and start, it calls the start method of the:-
A
BundleActivator
B
Activator
C
All of the mentioned
D
None of the mentioned
48
To start using Spring to smooth over some of the minutiae of resource acquisition and to help build more reliable systems in an OSGi environment.
A
Spring DM server
B
Spring Dynamic Modules
C
All of the mentioned
D
None of the mentioned
49
Spring Dynamic Modules scans our deployed bundles and loads an ApplicationContext (actually, the specific type of the ApplicationContext is OsgiBundleXmlApplicationContext) into memory based on an event, or a trigger.
A
True
B
False
C
none
D
all the mentoined
50
You’ll split your OSGi–specific Spring configuration and your plain-vanilla Spring configuration into:-
A
modulename-context.xml
B
modulename-osgi-context.xml
C
all of the mentioned
D
None of the mentioned
Submit Quiz
Back to All Quizzes