[jboss-jira] [JBoss JIRA] (AS7-6143) HiloKeygenerator not registered in JNDI

Manuel Fehlhammer (JIRA) jira-events at lists.jboss.org
Wed Dec 12 03:46:17 EST 2012


    [ https://issues.jboss.org/browse/AS7-6143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740809#comment-12740809 ] 

Manuel Fehlhammer commented on AS7-6143:
----------------------------------------

Thank you for your superfast reaction! 
OK. Wasn't aware, that in JBOSS-AS 7 there is no intention providing the key generator as a public service.
Since I am using JPA and was using the keygenerator in JBOSS 5 for other key functionality (not entity PKs) it seems, that I have to develop my own HiLoKey-generator component.


                
> HiloKeygenerator not registered in JNDI
> ---------------------------------------
>
>                 Key: AS7-6143
>                 URL: https://issues.jboss.org/browse/AS7-6143
>             Project: Application Server 7
>          Issue Type: Bug
>    Affects Versions: 7.1.1.Final
>            Reporter: Manuel Fehlhammer
>              Labels: cmp
>
> The HiLoKeygenerator from subsystem cmp is not registered in JNDI.
> Therefore it is not really usable.
> I managed to get the service successfully started up with the following subsystem confiuration in standalone.xml:
> {code:xml}
> <subsystem xmlns="urn:jboss:domain:cmp:1.0">
>    <key-generators>
>                 <hilo name="itemidgenerator">
>                     <block-size>
>                         10
>                     </block-size>
>                     <data-source>
>                         java:jboss/datasources/MySqlDS
>                     </data-source>
>                     <id-column>
>                         highvalue
>                     </id-column>
>                     <sequence-column>
>                         sequencename
>                     </sequence-column>
>                     <sequence-name>
>                         itemid
>                     </sequence-name>
>                     <table-name>
>                         HiLoSequences
>                     </table-name>
>                 </hilo>
>             </key-generators>
>         </subsystem>
> {code} 
>   
> But I do not find any JNDI registration related to this HiLoKeygenerator.
> From JBOSS 5.x times I know that the generator was bound as "KeyGeneratorFactory" or something. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list