[jboss-dev-forums] [Design of JCA on JBoss] - Re: Datasources not parsing jboss.server.data.dir

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Sep 18 09:26:13 EDT 2008


Currently most (if not all) of the string properties use javax.xml.bind.annotation.adapters.CollapsedStringAdapter. As a quick fix I would propose to extend it, e.g.
public class ManagedConnectionStringAdapter extends CollapsedStringAdapter
  | {
  |    @Override
  |    public String marshal(String v)
  |    {
  |       return super.marshal(v);
  |    }
  | 
  |    @Override
  |    public String unmarshal(String v)
  |    {
  |       v = super.unmarshal(v);
  |       return v == null ? null : StringPropertyReplacer.replaceProperties(v);
  |    }
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177422#4177422

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177422



More information about the jboss-dev-forums mailing list