OpenejbJar openejbJar = new OpenejbJar();
EjbDeployment ejbDeployment = new EjbDeployment();
openejbJar.addEjbDeployment(ejbDeployment);
ejbDeployment.setEjbName("MySessionBean");
ejbDeployment.addProperty("webservice.security.realm", "MyRealm");
ejbDeployment.addProperty("webservice.security.securityRealm", "MySecurityRealm");
ejbDeployment.addProperty("webservice.security.transportGarantee", TransportGuaranteeType.NONE.value());
ejbDeployment.addProperty("webservice.security.authMethod", AuthMethodType.BASIC.value());
ejbDeployment.addProperty("wss4j.in.action", "Timestamp");
ejbDeployment.addProperty("wss4j.out.action", "Timestamp");