A developer is creating a new OSGi bundle com.custom.package.b to expose new services. com.custom.package.a is already installed and active in the system and has the following package definition:
The system console shows the following package availability:
Bundle com.custom.package.b to be installed has the following packagedefinition:
What will happen when the developer uploads the bundle com.custom.package.b into the system?
Correct Answer:
A
A custom application contains a service component com.proj.ServiceComponent. A developer needs to configure the string value name and integer value intVal. The actualconfiguration must be deployed using a content package.
What should the developer do to meet these requirements?
Correct Answer:
B
A developer needs to create a new component called “Component A”. Component A must show a list of othercomponents that all have a resource type of existing “Component B”. Component A must render this list of tiles for each Component B where the tile rendering is different from the default one. The list of rendered tiles must be reusable by future new components.
How should the developer implement this functionality?
Correct Answer:
A
Which two methods could a developer use to obtain a Session without using a deprecated API? (Choose two.)
Correct Answer:
BD
A developer creates two custom classes. ClassA has the following code: package com.aem.abc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() {
logger.debug("Message from Class A method");
}
}
The developer createsa custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:
package com.aem.xyz; import org.slf4j.Logger;
importorg.slf4j.LoggerFactory;
public class ClassB {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() {
logger.debug("Message from Class B method");
}
}
Which action mustthe developer take to see the log messages in the same file from both classes?
Correct Answer:
D