Hi, I have setup another company beside the sample Trend Billing. I am trying to add a user via the suggested APIs with user authentication. The user is logged in with admin privilege. The user verification is being done from a jsp page after login.
I am trying RMI as well as Hessian. When I set the default user/password in jbilling-remoting.xml (RMI method) or user/password in jbilling-remote-beans.xml (Hessian method) for Trend I get exception when trying to verify and add user using the new company. The code is as follows: JbillingAPI api = JbillingAPIFactory.getAPI(); Integer result = api.authenticate(username, pass); Integer userId = api.getUserId(newuser); // rest of the code... The same code works if I login as Trend Billing admin. My question: Do I have to write my own authentication for multiple companies or is there an easier configuration setting to accomplish this? Thanks in advance! Shay ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ www.jbilling.com - jBilling-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jbilling-users
