Thanks Scott,
    What do you think about this implementation ?
    Is there different ticket excepted ServiceTicketImpl (ST-) and TicketGrantingTicketImpl (TGT-) ?

<bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.SelectTicketRegistry">
        <property name="ticketRegistrySelectorByObject">       
            <map>
                <entry key="org.jasig.cas.ticket.ServiceTicketImpl" value-ref="ticketRegistryMemory"/>
                <entry key="org.jasig.cas.ticket.TicketGrantingTicketImpl" value-ref="ticketRegistryBDB"/>
            </map>
        </property>
        <property name="ticketRegistrySelectorByPrefix">       
            <map>
                <entry key="ST-" value-ref="ticketRegistryMemory"/>
                <entry key="TGT-" value-ref="ticketRegistryBDB"/>
            </map>
        </property>               
    </bean>
    <bean id="ticketRegistryMemory" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" />
    <bean id="ticketRegistryBDB" class="org.jasig.cas.ticket.registry.BerkeleyDbTicketRegistry" >
            <property name="dbHome" value="file:C:/esupdev/CAS3/BDB-ticket"/>
    </bean>

I must have to map (ticketRegistrySelectorByObject, ticketRegistrySelectorByPrefix) to defined which registry to use because ticket can be find by prefix (ST, TGT) or by object type.

Thanks a lot for help.

Best regards.

Scott Battaglia a écrit :
Julien,

We don't offer a way to do that out of the box. You could easily write a "DelegatingTicketRegistry" which implements the TicketRegistry interface and depending on the Ticket saved delegates to the appropriate type.

-Scott


On Nov 19, 2007 8:17 AM, Julien Marchal <[EMAIL PROTECTED]> wrote:
Hi all,
    We want to use BerkeleyDbTicketRegistry but we are littel affraid to acces to the berkley file for each ticket type.
    Is there a way to store "ServiceTicket" in memory (DefaultTicketRegistry) and long ticket "TicketGrantingTicket" in BerkeleyDbTicketRegistry.

    If it's not possible, are you interessted if we make a contribibution to make it ?

Best regards,



--
> Université Nancy 2
Pôle Lorrain de Gestion
13 rue du Maréchal Ney
CO 30075
54036 NANCY Cedex
> Téléphone 03.54.50.36.54
> Fax 03.54.50.36.51
Julien Marchal
Equipe réseau - CRI

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia

_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas


--

Pôle Lorrain de Gestion
13 rue du Maréchal Ney
CO 30075
54036 NANCY Cedex
> Téléphone 03.54.50.36.54
> Fax 03.54.50.36.51
Julien Marchal
Equipe réseau - CRI
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to