[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3565) Remoting interface generation problem

Andy Siu (JIRA) jira-events at lists.jboss.org
Wed Oct 15 05:48:20 EDT 2008


Remoting interface generation problem
-------------------------------------

                 Key: JBSEAM-3565
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3565
             Project: Seam
          Issue Type: Bug
          Components: Remoting
            Reporter: Andy Siu
            Assignee: Shane Bryzak


There is a problem about the caching mechanism of generating remote interface for ajax call.

at
public void generateComponentInterface(Set<Component> components, OutputStream out, Set<Type> types)

The generated interface is cached in interfaceCache. However, when passing more than one component at the same time, there may be problem.
E.g.
seam/resource/remoting/interface.js?A&B
where both A and B contain a type C
A->C will be cached with the name A
but only B will be cached with the name B (C will be skipped as it is already generated in A)

when another page only calls seam/resource/remoting/interface.js?B
C will be missed as the cached B does not contains C

I've make a workaround by passing a new HashSet<Type>() into appendComponentSource everytime
appendComponentSource(bOut, c, new HashSet<Type>());

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list