Home > Archive > EAserver > November 2005 > Setting oroperty values at deploy time









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Setting oroperty values at deploy time
Peter Abbott

2005-11-20, 8:24 pm

I am having a bit of a mental block today! Does anybody know how to set
values for the Resource Env References at deploy time.

With the Resource References you can do something like:

<configure type="update"
entity="Component/ ResReference:SomePac
kage/SomeComponent/!merge">
<property name="res-ref-name" value="jms/JNDIQueueName" />
<property name="res-link" value="some_active_queue" />
</configure>


Trying the obvious variations for the environment properties doesnt seem
to work, but I am sure that I have done this before, just can't remember how

Pete
a Friend

2005-11-23, 7:24 am

This is a simple example:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE sybase-easerver-config PUBLIC '-//Sybase,
Inc.//DTD EAServer configuration 1.0//EN'
'http://download.sybase.com/specifications/xsd/sybase-easerver-config_1_0.dtd'>

<sybase-easerver-config description="Configuring EAServer
properties for Component Kitikat/EJBEngine">
<configure type="update"
entity="Component:Kitikat/EJBEngine">
<property
name="com.sybase.jaguar.component.resource-ref"
value="(description=A description for
ResourceRefName,res-sharing-scope=Shareable,res-type=javax.sql.DataSource
,res-ref-name=jdbc/DBCache,res-link=JavaCache,res-auth=Container)"
/>
</configure>
</sybase-easerver-config>

If you need more help you can use -configtype
An example:
jagtool -configtype update Component:Kitikat/EJBEngine

It will generate and XML File, you can modify directly this
file.

Regards
A Friend

> I am having a bit of a mental block today! Does anybody
> know how to set values for the Resource Env References at
> deploy time.
>
> With the Resource References you can do something like:
>
> <configure type="update"
> entity="Component/ ResReference:SomePac
kage/SomeComponent/!
> merge">
> <property name="res-ref-name"
> value="jms/JNDIQueueName" />
> <property name="res-link" value="some_active_queue"
> />
> </configure>
>
>
> Trying the obvious variations for the environment
> properties doesnt seem to work, but I am sure that I have
> done this before, just can't remember how
>
> Pete

Peter Abbott

2005-11-23, 1:34 pm

Yes, I know how to use the approach, but some entities you can merge
values instaed of having to specify the entire property value. The
resource-ref property is one of these where instead of the sample below
you can actually use:

<configure type="update" entity=" ResReference:Kitikat
/EJBEngine">
<property name="res-ref-name" value="jdbc/JavaCache" />
<property name="res-link" value="JavaCache" />
</configure>

What I was after was something similar to set the link values for
resource-env-refs property without having to specify all the properties
which get set through the ejb-jar.xml anyway

Pete

a Friend wrote:[color=darkred
]
> This is a simple example:
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE sybase-easerver-config PUBLIC '-//Sybase,
> Inc.//DTD EAServer configuration 1.0//EN'
> 'http://download.sybase.com/specifications/xsd/sybase-easerver-config_1_0.dtd'>
>
> <sybase-easerver-config description="Configuring EAServer
> properties for Component Kitikat/EJBEngine">
> <configure type="update"
> entity="Component:Kitikat/EJBEngine">
> <property
> name="com.sybase.jaguar.component.resource-ref"
> value="(description=A description for
> ResourceRefName,res-sharing-scope=Shareable,res-type=javax.sql.DataSource
> ,res-ref-name=jdbc/DBCache,res-link=JavaCache,res-auth=Container)"
> />
> </configure>
> </sybase-easerver-config>
>
> If you need more help you can use -configtype
> An example:
> jagtool -configtype update Component:Kitikat/EJBEngine
>
> It will generate and XML File, you can modify directly this
> file.
>
> Regards
> A Friend
>
>
A Friend

2005-11-23, 8:24 pm

You tested this:

<property file="myfile.properties" />

and in the properties file you can use, something like this:
jaguar.host=localhost
jaguar.port=9000
jaguar.user=jagadmin
jaguar.password=
jaguar.directory=C:/Program Files/Sybase/EAServer
jaguar.server=Jaguar

A friend
[color=darkred]
> Yes, I know how to use the approach, but some entities you
> can merge values instaed of having to specify the entire
> property value. The resource-ref property is one of these
> where instead of the sample below you can actually use:
>
> <configure type="update"
> entity=" ResReference:Kitikat
/EJBEngine">
> <property name="res-ref-name" value="jdbc/JavaCache" />
> <property name="res-link" value="JavaCache" />
> </configure>
>
> What I was after was something similar to set the link
> values for resource-env-refs property without having to
> specify all the properties which get set through the
> ejb-jar.xml anyway
>
> Pete
>
> a Friend wrote:
> 'http://download.sybase.com/specifications/xsd/sybase-ease
> ,res-ref-name=jdbc/DBCache,res-link=JavaCache
> at >>deploy time.
> /! >>merge">
> have >>done this before, just can't remember how
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com