Hi Colleagues,

I need urgent help.
I must change getServicePoint() which gets the  service point" " to look up 
using Spring instead of the  ClientConfig"

Thanks and regards,
Rafal

private static final ClientConfig config = 
ClientConfig.getConfig(ClientConfig.generateName(HittegodsAPI.class));
        
        protected HittegodsAPI servicePoint;

        private static boolean report = false;

        protected HittegodsAPI getServicePoint() throws ArrException {
                if (servicePoint == null) {
                        String address = config.getParameter("xfire.address");
                        if (address == null) {
                                throw new ArrException("No address configured - 
set xfire.address in client.host.*.properties");
                        }
                        if (report) {
                                System.out.println("Hittegods connecting to 
"+address);
                                report = false;
                        }
                        Service serviceModel = new 
ObjectServiceFactory().create(HittegodsAPI.class, "HittegodsService", null, 
null);
                        try {
                                servicePoint = (HittegodsAPI) new 
XFireProxyFactory().create(serviceModel, address);
                        } catch (MalformedURLException e) {
                                throw new ArrException("The xfire.address value 
is malformed: "+address);
                        }
                }
                return servicePoint;
        }



-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to