use of java.util.PropertyPermission in project wildfly by wildfly.
the class MDBCdiIntegrationTestCase method getDeployment.
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "mdb-cdi-integration-test.jar");
ejbJar.addClasses(CdiIntegrationMDB.class, RequestScopedCDIBean.class, JMSMessagingUtil.class, MDBCdiIntegrationTestCase.class, JmsQueueSetup.class, TimeoutUtil.class).addPackage(JMSOperations.class.getPackage());
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr \n"), "MANIFEST.MF");
ejbJar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
ejbJar.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(TimeoutUtil.FACTOR_SYS_PROP, "read")), "permissions.xml");
return ejbJar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class MDBRAScopeCdiIntegrationTestCase method createEAR.
@Deployment(name = deploymentName, order = 1)
public static EnterpriseArchive createEAR() throws Exception {
ResourceAdapterArchive raa = createRAR();
JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "xxx-ejbs.jar");
ejbJar.addClasses(/* MDBRAScopeCdiIntegrationTestCase.class, */
CdiIntegrationMDB.class, RequestScopedCDIBean.class, MDBProxy.class, MDBProxyBean.class, JMSMessagingUtil.class, JmsQueueSetup.class, TimeoutUtil.class).addPackage(JMSOperations.class.getPackage());
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.as.controller, org.jboss.dmr \n"), "MANIFEST.MF");
ejbJar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, deploymentName);
ear.addAsModule(raa);
ear.addAsModule(ejbJar);
ear.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(TimeoutUtil.FACTOR_SYS_PROP, "read")), "permissions.xml");
return ear;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class MDB20MessageSelectorTestCase method getDeployment.
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "mdb.jar");
ejbJar.addClasses(EJB2xMDB.class, AbstractMDB2xTestCase.class);
ejbJar.addPackage(JMSOperations.class.getPackage());
ejbJar.addClasses(JmsQueueSetup.class, TimeoutUtil.class);
ejbJar.addAsManifestResource(MDB20MessageSelectorTestCase.class.getPackage(), "ejb-jar-20-message-selector.xml", "ejb-jar.xml");
ejbJar.addAsManifestResource(MDB20MessageSelectorTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr, org.apache.activemq.artemis\n"), "MANIFEST.MF");
ejbJar.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission("ts.timeout.factor", "read")), "jboss-permissions.xml");
return ejbJar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class SendMessagesTestCase method deploymentMbean.
@Deployment(name = "singleton", order = 1, testable = false, managed = true)
public static Archive<?> deploymentMbean() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, SINGLETON + ".jar").addClasses(HelperSingleton.class, HelperSingletonImpl.class);
// grant necessary permissions
jar.addAsResource(createPermissionsXmlAsset(new PropertyPermission("ts.timeout.factor", "read")), "META-INF/jboss-permissions.xml");
return jar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class SendMessagesTestCase method deploymentMdb.
@Deployment(name = "mdb", order = 2, testable = false, managed = false)
public static Archive<?> deploymentMdb() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MESSAGE_DRIVEN_BEAN + ".jar").addClasses(ReplyingMDB.class, TimeoutUtil.class);
jar.addAsManifestResource(new StringAsset("Dependencies: deployment." + SINGLETON + ".jar\n"), "MANIFEST.MF");
// grant necessary permissions
jar.addAsResource(createPermissionsXmlAsset(new PropertyPermission("ts.timeout.factor", "read")), "META-INF/jboss-permissions.xml");
return jar;
}
Aggregations