4

I'm looking to create a custom string JNDI binding in JBoss AS7, but can't quite figure out how to configure it. I looked in the standalone-preview.xml file, but do not see any examples that would enable me to understand how I can configure a JNDI lookup with a simple string (URL) as a return value. I tried looking through the docs, but do not see anything there either.

I found the following snippet on Jboss Forums, but I do not understand how to use it at all. I cannot find any documentation on object-factory - how to define the object-factory and/or even what it is or how it works (ie: which attributes must be set, what they mean, etc):

<subsystem xmlns="urn:jboss:domain:naming:1.1">
    <bindings>
        <object-factory name="java:/custom/dog" module="org.jboss.animalshelter" class="org.jboss.animalshelter.resource.DogFactory"/>
    </bindings>
</subsystem>

I know how this was accomplished in JBoss AS6, but I cannot seem to understand how to do this for AS7.

Can anyone point me in the right direction please?

Thanks,

Eric

casperOne
  • 73,706
  • 19
  • 184
  • 253
Eric B.
  • 23,425
  • 50
  • 169
  • 316
  • I guess [this thread](http://stackoverflow.com/questions/20212343/jboss-binding-values-into-jndi-in-jboss-eap-6-similar-to-jndibindingservicemgr) will answer to this one as well. – eis Nov 29 '13 at 14:14

1 Answers1

0

I believe it's a ObjectFactory. You may find for information in Writing an Object Factory.

Philippe Marschall
  • 4,452
  • 1
  • 34
  • 52