Re: instanceof validation error on checking value obects from server
Jonathan Thompson <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Martin,
Update the openamf-config.xml as so with no luck.
<invoker>
<name>Spring</name>
<class>org.openamf.invoker.SpringBeanInvoker</class>
</invoker>
We have successfully used "Java" in other projects here as well.
Martin Wood wrote:
>
>
> 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
> _______________________________________________
> Openamf-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openamf-user
>
-------------------------------------------------------
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