Two ticketRegistry
Scott Battaglia
scott.battaglia at gmail.com
Mon Dec 3 13:19:07 EST 2007
You could simply this and always just map by prefix as any ticket will have
the prefix readily available. You'll just need to make sure that if any
additional prefixes are added to the server then the map is updated.
Otherwise, it looks good!
-Scott
On Nov 20, 2007 2:53 AM, Julien Marchal <Julien.Marchal at univ-nancy2.fr>
wrote:
> 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 <Julien.Marchal at univ-nancy2.fr>
> 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,
> >
> >
> >
> > --
> > [image: > Université Nancy 2] <http://www.univ-nancy2.fr/> Pôle
> > Lorrain de Gestion
> > 13 rue du Maréchal Ney
> > CO 30075
> > 54036 NANCY Cedex
> > [image: > Téléphone] 03.54.50.36.54 [image: > Fax] 03.54.50.36.51 Julien
> > Marchal Equipe réseau - CRI
> >
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
> ------------------------------
>
> _______________________________________________
> Yale CAS mailing listcas at tp.its.yale.eduhttp://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
> --
> [image: > Université Nancy 2] <http://www.univ-nancy2.fr/> Pôle
> Lorrain de Gestion
> 13 rue du Maréchal Ney
> CO 30075
> 54036 NANCY Cedex
> [image: > Téléphone] 03.54.50.36.54 [image: > Fax] 03.54.50.36.51 Julien
> Marchal Equipe réseau - CRI
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1829 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1044 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 932 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1829 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment-0003.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1044 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment-0004.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 932 bytes
Desc: not available
Url : http://tp.its.yale.edu/pipermail/cas/attachments/20071203/80e0988e/attachment-0005.png
More information about the cas
mailing list