Re: instanceof validation error on checking value obects from server

Martin Wood <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>

Jonathan Thompson wrote:
> Martin,
> 
> Thanks for your quick reply. Unfortunately, adding the local var in the 
> vo did not alleviate the problem.
> 
> I added the line:
> 
>    private var ct:ContentTemplate;
> 
> and alternately added the line with full path:
> 
>    private var ct:com.rbx.selfservice.model.vo.ContentTemplate;
> 
> in both cases I am sorry to report  that the instanceof call still 
> returned false.
> 
> Jonathan
> 
> 
> in my GetContentTemplateCommand class; the ContentTemplate class was 
> already being imported.

erm, i dont know if the name used for an invoker actually matters?

but in your config you have :

    <invoker>
        <name>Java</name>
        <class>org.openamf.invoker.SpringBeanInvoker</class>
    </invoker>

and i always use

    <invoker>
        <name>Spring</name>
        <class>org.openamf.invoker.SpringBeanInvoker</class>
    </invoker>

i would have thought its just a label but this seems to imply otherwise 
(although im probably completely wrong because its the first time ive 
looked at the openamf source)

    public ServiceInvokerConfig getServiceInvokerConfig(String name) {

         ServiceInvokerConfig serviceInvokerConfig = null;

         for (Iterator i = getServiceInvokerConfigs(); i.hasNext();) {
             ServiceInvokerConfig sic = (ServiceInvokerConfig) i.next();
             if (sic.getName().equals(name)) {
                 serviceInvokerConfig = sic;
                 break;
             }
         }
         return serviceInvokerConfig;
     }

maybe try changing the name to spring and see what happens?

anyway, let me know, if not, we'll keep trying :)


martin

btw, my advanced gateway is now working...

weird..





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.