Saturday, 15 January 2011

Glassfish, add new property to jndi custom-resource via command line -


Hello I got a question about glassfish and command line. I am creating a new property like this for example:

  asadmin> Make-Custom-Resource - StevePage java.util.Properties --factoryclass org.glassfish.resources.custom.factory.PropertiesFactory --property firstName = John person   

And now I want to Add a new property for the example nickname, can you tell me how can I do this? I know that I can leave resources and make new ones, but I just need new qualities, thanks for everyone

  Asadmin --user = admin --passwordfile = myPassFile --host = localhost --port = 4848 create-custom-processing - livepipe java.util.properties --factoryclass org.glassfish.resources.custom.factory.PropertiesFactory - The property Y "First name = myFirstName" myGroup / myLastPart   

You can add a new asset like this to:

  asadmin --user = admin --passwordfile = MyPassFile --host = localhost - set = 4848 set resources. Custom-processing MyGroup / myLastPart.property.lastName = myLastName   

As you can see, I have deliberately named my JNDI properties by the name of a complex name (myGroup / myLastPart). , So that you proceed in that case. (I'm using glassfish 3, so ....)

No comments:

Post a Comment