connecting from a jar deployed on jboss to APS


hi all,
i created jar , put inside jboss. implements event manager, take trace of number of prints made restricted document.
in addition control, there part should modify policy, removing permissions print.

now have problem in connecting policy server,by using code error @ line
"apssession = edcfactory.connect(apsproperty);":

here code:


if (evstampa >= limstampa)
{
edcfactory apssession = null;

properties apsproperty = new properties();

//specify property values
apsproperty.setproperty(edcfactory.username_property_name,"admin");
apsproperty.setproperty(edcfactory.password_property_name,"password");
apsproperty.setproperty(edcfactory.url_property_name,"https://xxx.yyy.com:8443/edcws/services/edcpolicyservice?wsdl");
apsproperty.setproperty(edcfactory.mode_property_name,"soap");

try{
apssession = edcfactory.connect(apsproperty);

policymanager pm = apssession.getpolicymanager();

// policy mypol = pm.getpolicybyalternateid("policyprint");
pm.deletepolicy("f5c591b4-b2d2-ef42-76b7-03dc2be91275"); }
catch(exception e)
{
system.out.println("*****************************");
system.err.println("*****************************");
e.printstacktrace();
try {

fileoutputstream fileoutputstream = new fileoutputstream("c:\\logaps.txt", true);
e.printstacktrace(new printwriter(fileoutputstream, true));
fileoutputstream.close();

} catch (ioexception e2) {
// todo auto-generated catch block
e2.printstacktrace();
}

}
// rimuovipermstampa();
}
}


do have suggestion?

hi carlo,

can include full stack trace of exception receive?


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments