Java CAPS Tip : Running STCMS Standalone

With my previous blob entries I have discussed and documented how to run your Java CAPS (5.1.3) applications on both the SJSAS 8.2 & 9.1 and the Glassfish V2 application servers. Given this you may well want to switch the JMS you use but this may not be the case. Alternatively you may want to continue running the STCMS Message Server and by default to do this you will need to install and start a normal Logical Host. You may consider that this is an unnecessary overhead just to run the STCMS component. This blog therefore simply documents the process of running the STCMS in a standalone environment outside the confines of a Logical Host installation.

RelatedArticles

Downloads

Standalone STCMS


The existence of this blog entry does not imply that its implementation is a supported configuration, this itself does not imply that it will not work because I simply extract the standalone files from an existing Logical Host. The steps required to extract just the STCMS components from a Logical Host and run standalone are documented below.

Required Files


Before we can execute the process standalone we will need to copy a number of files from an existing Logical Host installation as follows:
  1. Copy the stcms directory from an existing Logical Host (<LogicalHost Dir>/is/stcms) installation to the destination location. (C:\\Glassfish).
  2. Create the sub-directories config / instance1 / logs
  3. Copy the following files from <LogicalHost Dir>/is/domains/<Domain>/config into the config dir.
    1. stcms.default.properties
    2. stcmsutil.properties
    3. stcmscert.cer
    4. keyfile
    5. stcmscert.pem
    6. stcmskey.pem
dir structure

Configuring STCMS


To configure your STCMS instance to run standalone you will need to modify the stcms.default properties within the config sub-directory to match the following. The example below assumes that the STCMS has been copied to C:\\Glassfish\\stcms and that the Java 1.5 JRE exists in C:\\Software\\Java\\jdk1.5\\jre. The specific changes are highlighted in green but obviously you can change port numbers etc as well.

#################################################################
#                                                               #
#             Message Server Default Properties                 #
#                                                               #
#################################################################

! Note that:
! Yes, True, On, 1 are equivalent
! No, False, Off, 0 are equivalent

!////////////////////////////////////////////////////////////////
! STCMS.Properties.Version:
!             Message server properties version.
!
! values:     5.0 or 5.1, 5.1 by default
!
STCMS.Properties.Version=5.1

!////////////////////////////////////////////////////////////////
! STCMS.OverWrite.JMSTimeStamp:
!             Specifies whether the message server overwrites
!             each message's JMSTimeStamp property when a
!             message is sent out.
!
STCMS.OverWrite.JMSTimeStamp=True

!///////////////////////////////////////////////////////////////
! STCMS.DB.Path:
!             Specifies the directory in which the DB files
!             reside. It can be an absolute directory, or
!             relative to the directory where the message
!             service executable is located.
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.DB.Path=../instance1

!///////////////////////////////////////////////////////////////
! STCMS.DB.Prefix:
!             Specifies the prefix for all the DB file names.
!
STCMS.DB.Prefix=stcms

!///////////////////////////////////////////////////////////////
! STCMS.DB.Suffix:
!             Specifies the suffix for all the DB file names.
!
STCMS.DB.Suffix=dbs

!///////////////////////////////////////////////////////////////
! STCMS.DB.BlockSize:
!             Specifies the block size used for DBS files.
!
! values:     0, 512, and 1024
!             If 0 is specified, the server will determine the
!             value to use automatically by querying the OS.
!
! IMPORTANT:  Note that if you change this value, your
!             existing DBS files will no longer be usable with
!             the new setting.
!
STCMS.DB.BlockSize=0

!///////////////////////////////////////////////////////////////
! STCMS.DB.CacheSize:
!             Specifies the total number of pages in the DB 
!             system disk write cache. A page is 512 bytes on
!             Windows, 1024 bytes on UNIX.
!
! range:      1 - STCMS.DB.SegmentSize
!
STCMS.DB.CacheSize=1024


!///////////////////////////////////////////////////////////////
! STCMS.DB.Sync (UNIX only):
!             True (the default) specifies that Message Service
!             controls the cache synchronization to disk. False
!             specifies that the operating system controls the
!             synchronization schedule.
!
STCMS.DB.Sync=False


!///////////////////////////////////////////////////////////////
! STCMS.DB.SegmentSize:
!             Specifies the total number of pages (see
!             STCMS.DB.CacheSize) in a single DB file.
!
! limits:     Should be set to at least the total number of
!             anticipated durable subscribers + (single maximum
!             message size / page size), plus a few pages for
!             overhead.
!
!             A page is 512 bytes on Windows. 16384 pages is
!             8 MB. A page is 1024 bytes on UNIX. 16384 pages
!             is 16 MB.
!
!             For example, for 100 anticipated subscribers and
!             maximum message size of 100000 on UNIX:
!
!             100 + (100000 / 1024) = 198
!
!             Add a few pages for overhead, so set to at least
!             210. Note that with this setting there may only
!             be 1 (100000 byte) message in each segment. The
!             ideal segment size depends on the circumstances.
!             If the slowest subscriber lags behind the fastest
!             publisher by a certain number of messages, you
!             can set the segment size so that this number of
!             messages will fit in a single segment.
!
!             The server cleans up the database by recycling
!             segments for which all messages they contain have
!             been "picked up" by all subscribers or the
!             messages have expired.
!
STCMS.DB.SegmentSize=16384


!///////////////////////////////////////////////////////////////
! STCMS.DB.MinimumNumberOfSegments:
!             Specifies the minimum total number of DB files.
!
! limits:     >= 1
!
STCMS.DB.MinimumNumberOfSegments=4


!///////////////////////////////////////////////////////////////
! STCMS.DB.MaximumNumberOfSegments:
!             Specifies the maximum total number of DB files.
!
! limits:     >= 0, 0 means no limit until out of disk space
!
STCMS.DB.MaximumNumberOfSegments=0


!///////////////////////////////////////////////////////////////
! STCMS.DB.LockCacheIntoRAM (Windows only):
!             The VirtualLock function locks the specified
!             region of the process's virtual address space
!             into memory, ensuring that subsequent access to
!             the region will not incur a page fault.
!
! limits:     Administrator privilege is needed for this
!             feature.
!
STCMS.DB.LockCacheIntoRAM=Yes


!////////////////////////////////////////////////////////////////
! STCMS.DB.PerformanceInterval:
!             Specifies how many LogActions the LogManager needs
!             to process before it dumps its performance
!             statistics.
!
! limits:     > 0
!
STCMS.DB.PerformanceInterval=1000


!///////////////////////////////////////////////////////////////
! STCMS.Msg.MaxPayloadMemory:
!             Specifies the maximum amount (in 1KB) of message
!             payloads (message body data) allowed to be in the
!             physical memory at any moment while the message
!             server is running.
!
! limits:     >= 0, limited by the physical memory size
!
STCMS.Msg.MaxPayloadMemory=20000


!///////////////////////////////////////////////////////////////
! STCMS.Msg.PayloadMemoryPad:
!             The server begins memory recovery and cleanup
!             when the amount of payload memory used exceeds
!             STCMS.Msg.MaxPayloadMemory. In this case the
!             server attempts to recover the exceeded amount
!             plus an extra pad (in 1KB) specified by this
!             variable. The server will try to free message
!             data (for messages already written to disk) until
!             the payload memory usage falls below
!             MaxPayloadMemory - PayloadMemoryPad.
!
! limits:     >= 0, must less than STCMS.Msg.MaxPayloadMemory
!
STCMS.Msg.PayloadMemoryPad=100


!///////////////////////////////////////////////////////////////
! STCMS.Process.MaximumPhysicalRAMUsage (Windows only):
!             Specifies the maximum size (in 1KB) of the
!             working set of message server. The "working set"
!             of a process is the set of memory pages currently
!             visible to the process in physical RAM memory.
!             These pages are resident and available for an
!             application to use without triggering a page
!             fault. It is not always advisable to increase
!             this setting since by doing so, although the
!             message service will require less page swapping,
!             other components may require more.
!
! limits:     >= 0, limited by the physical memory size; 0
!             means the message server sets this value
!
STCMS.Process.MaximumPhysicalRAMUsage=1500


!///////////////////////////////////////////////////////////////
! STCMS.Msg.MaxTimeToLive:
!             Specifies the maximum amount(in seconds) of time
!             for a message to live before it expires.
!     
! example:    STCMS.Msg.MaxTimeToLive = 2592000 (30 days in
!             seconds)
!
! limits:     >= 0, 0 means the message never expires
!
STCMS.Msg.MaxTimeToLive=2592000

!////////////////////////////////////////////////////////////////
! STCMS.Msg.PerformanceInterval:
!             Specifies how many IMessages the IMessageManager
!             needs to create before it dumps its performance
!             statistics.
!     
! limits:     > 0
!
STCMS.Msg.PerformanceInterval=1000


!////////////////////////////////////////////////////////////////
! STCMS.Action.PerformanceInterval:
!             Specifies how many times the ActionManager's
!             Update() function gets called before it dumps its
!             performance statistics.
!
! limits:     > 0
!
STCMS.Action.PerformanceInterval=1000


!////////////////////////////////////////////////////////////////
! STCMS.Server.Port:
!             Specifies the port number that the message server
!             listens to.
!
! limits:     depends on operating systems; usually 1025 - 65535          
!
STCMS.Server.Port=19007


!////////////////////////////////////////////////////////////////
! STCMS.Server.MaxMessages:
!             Used in conjuction with STCMS.Topic.MaxMessages.
!             Specifies the maximum total number of messages
!             allowed in server message queues. When the number
!             of messages in the server reaches this value, the
!             server starts throttling publishers based on the
!             number of messages in their respective topic
!             queues and the value of STCMS.Topic.MaxMessages.
!
! limits:     >= 0, 0 means that publishers are never throttled
!             < 0x7fffffff
!
STCMS.Server.MaxMessages=0


!////////////////////////////////////////////////////////////////
! STCMS.Server.Journalling:
!             Turns on/off journalling and archiving.
!
STCMS.Server.Journalling=On

!////////////////////////////////////////////////////////////////
! STCMS.Server.JournalDebug:
!             Turns on/off Journal remote debug on port 2044.
!
STCMS.Server.JournalDebug=Off

!////////////////////////////////////////////////////////////////
! STCMS.Server.JournalStart:
!             Sets Journal JVM binary path.
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.Server.JournalStart=../../../Software/Java/jdk1.5/jre/bin/java

!////////////////////////////////////////////////////////////////
! STCMS.Server.JournalClassPath:
!             Sets Journal JVM class path.
!
STCMS.Server.JournalClassPath=../lib/com.stc.jms.stcjms.jar;../lib/com.stc.jms.stcqueueviewer.jar;../lib/com.stc.jms.stcjournaller.jar;../lib/jms.jar;../lib/jta.jar;

!////////////////////////////////////////////////////////////////
! STCMS.Server.JournalTimeToLive:
!             Specifies the maximum amount (in seconds) of time
!             for a "journalled" message to live before it
!             expires and becomes an "archived" message.
!
! example:    STCMS.Server.JournalTimeToLive = 604800 (7 days in
!             seconds)
!
! limits:     >= 0, 0 means the journal time to live is not set
!
STCMS.Server.JournalTimeToLive=604800

!////////////////////////////////////////////////////////////////
! STCMS.Server.JournalPath:
!             Specifies the directory under which the journal
!             files will be created. It can be an absolute
!             directory, or relative to the directory where the
!             message service executable runs.
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.Server.JournalPath=../instance1/journal


!////////////////////////////////////////////////////////////////
! STCMS.Topic.MaxMessages:
!             Specifies the maximum number of messages allowed
!             on a topic queue. When the number of messages on
!             a topic reaches this value, all publishers to the
!             topic are "throttled". This means that the server
!             stops reading messages from the publishers.
!
! limits:     >= 0, 0 means that publishers are never throttled
!             < 0x7fffffff
!
STCMS.Topic.MaxMessages=0


!////////////////////////////////////////////////////////////////
! STCMS.Topic.MaxMessagesPad:
!             Used in conjuction with STCMS.Topic.MaxMessages.
!             Specifies the number of messages that must be
!             deleted from the topic queue before publishers to
!             the topic are unthrottled. For example, if
!             STCMS.Topic.MaxMessages is 1000, then publishers
!             to a topic that have been throttled will only be
!             unthrottled when the number of messages in the
!             queue goes down to 900.
!
! limits:     >= 0
!             < STCMS.Topic.MaxMessages
!
STCMS.Topic.MaxMessagesPad=100


!////////////////////////////////////////////////////////////////
! STCMS.Trace.ToFile:
!             Specifies whether or not to output the debug trace
!             info into a file. 
!
STCMS.Trace.ToFile=Yes


!////////////////////////////////////////////////////////////////
! STCMS.Trace.Level:
!             Specifies the trace print level.
!
! range:      0 - 3: 0 - INFO
!                    1 - WARN
!                    2 - ERROR
!                    3 - FATAL
!
STCMS.Trace.Level=1


!////////////////////////////////////////////////////////////////
! STCMS.Trace.JournalTraceLevel:
!             Specifies the Journal trace print level.
!
! range:      0 - 5: 0 - INFO
!                    1 - WARN
!                    2 - ERROR
!                    3 - FATAL
!                    4 - MEMORY
!                    5 - PERFORMANCE
!
STCMS.Trace.JournalTraceLevel=2

!////////////////////////////////////////////////////////////////
! STCMS.Trace.MaxFileSize:
!             Specifies the maximum size (in MB) to which each
!             trace log can grow before rolling over to a new
!             new file. 
!
! limits:     > 0
!
STCMS.Trace.MaxFileSize=10

!////////////////////////////////////////////////////////////////
! STCMS.Trace.MaxBackupIndex:
!             Specifies the maximum number of backup trace logs
!             that will be created by message server to backup
!             trace info. 
!
! limits:     >= 0
!
STCMS.Trace.MaxBackupIndex=5

!////////////////////////////////////////////////////////////////
! STCMS.Trace.LogFileName:
!             Specifies the name of the file into which the
!             message server outputs the debug trace info. 
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.Trace.LogFileName=../logs/stcms.log

!////////////////////////////////////////////////////////////////
! STCMS.Trace.Memory:
!             Turns on/off memory level tracing.
!
STCMS.Trace.Memory=Off

!////////////////////////////////////////////////////////////////
! STCMS.Trace.Performance:
!             Turns on/off performance level tracing.
!
STCMS.Trace.Performance=Off

!////////////////////////////////////////////////////////////////
! STCMS.Trace.ToStdout:
!             Specifies whether or not to print the debug trace
!             info to the standard output.
!
STCMS.Trace.ToStdout=No

!////////////////////////////////////////////////////////////////
! STCMS.Trace.Verbose:
!             Turns on/off verbose level tracing.
!
STCMS.Trace.Verbose=Off

!////////////////////////////////////////////////////////////////
! STCMS.Trace.Timestamp:
!             Turns on/off printing timestamps in the trace log.
!
STCMS.Trace.Timestamp=On

!////////////////////////////////////////////////////////////////
! STCMS.TimeDependency:
!             Specifies the order in which to process messages
!             depending on the messages' enqueue time - the
!             oldest message first, the newest message last.
!
! example:    {T:TopicA;T:TopicB;Q:QueueA;Q:QueueB} 
!             where TopicA, TopicB are the logical names of
!             topics, and QueueA, QueueB are the logical names
!             of queues. {} means empty, where no time
!             dependency order is defined.
!
STCMS.TimeDependency={}

!////////////////////////////////////////////////////////////////
! STCMS.Queue.Serialization.Expiration:
!             Specifies  the maximum time each commit request is
!             allowed to wait.

! example:    STCMS.Queue.Serialization.Expiration = 604800
!             (7 days in seconds)
!
STCMS.Queue.Serialization.Expiration=604800

!////////////////////////////////////////////////////////////////
! STCMS.Queue.Mode:
!             Specifies the FIFO queues. The format is
!             {QueueName:Mode}
!
! values:     Mode = [0,1,2], 0 by default
!                     Mode 0 :  fully concurrent FIFO mode
!             Mode 1 :  protected concurrent FIFO mode
!             Mode 2 :  fully serialized FIFO mode
! example:    STCMS.Queue.Mode = {Q1:1;Q2:2}
!
STCMS.Queue.Mode={}

!////////////////////////////////////////////////////////////////
! STCMS.Alert:
!             Turns on/off alerts.
!
STCMS.Alert=Off

!////////////////////////////////////////////////////////////////
! STCMS.Alert.Queue:
!             Specifies alert queue name.
!
! values:     STCMS.Alert by default
!
STCMS.Alert.Queue=STCMS.Alert

!////////////////////////////////////////////////////////////////
! STCMS.Alert.Persistent:
!             Turns on/off persisting alert messages.
!
STCMS.Alert.Persistent=Off

!////////////////////////////////////////////////////////////////
! STCMS.AAS.Option:
!             Authentication and Authorization Service.
!
! values:     None:     Do not use any authentication and
!                       authorization service
!             File:     FileRealm authentication and
!                       authorization service
!             LDAPName: LDAPRealm authentication and
!                       authorization service
!
!             Multiple Security Realms are supported since 5.1;
!             options can be: File, LDAPName1, LDAPName2, etc.
!
STCMS.AAS.Option=None

!////////////////////////////////////////////////////////////////
! STCMS.AAS.SecurityFileName:
!             Specifies the name of the file in which the AAS
!             security info is stored for the message server. 
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.AAS.SecurityFileName=../config/keyfile


!////////////////////////////////////////////////////////////////
! xxxxx.STCMS.LDAP.xxxxx:
!             Configuration for SunONE, Active Directory and
!             Generic LDAP.
!
SunONE.STCMS.LDAP.Naming.Initial.Factory=com.sun.jndi.ldap.LdapCtxFactory
SunONE.STCMS.LDAP.Naming.Provider.URL=ldap://127.0.0.1:589
SunONE.STCMS.LDAP.Naming.Security.Authentication=simple
SunONE.STCMS.LDAP.Naming.Security.Principle=uid=Administrator,ou=People,dc=ican,dc=com
SunONE.STCMS.LDAP.Naming.Security.Credentials=sMFRfMIgDV8=
SunONE.STCMS.LDAP.GroupDNAttributeNameInGroup=entrydn
SunONE.STCMS.LDAP.GroupNameFieldInGroupDN=cn
SunONE.STCMS.LDAP.GroupsOfUserFilterUnderGroupsParentDN=uniquemember={1}
SunONE.STCMS.LDAP.GroupsParentDN=ou=Groups,dc=ican,dc=com
SunONE.STCMS.LDAP.RoleNameAttributeNameInUser=nsroledn
SunONE.STCMS.LDAP.RoleNameFieldInRoleDN=cn
SunONE.STCMS.LDAP.RolesParentDN=dc=ican,dc=com
SunONE.STCMS.LDAP.UserDNAttributeNameInUser=entrydn
SunONE.STCMS.LDAP.UserIDAttributeNameInUser=uid
SunONE.STCMS.LDAP.UsersParentDN=ou=People,dc=ican,dc=com
SunONE.STCMS.LDAP.SearchRolesSubTree=false
SunONE.STCMS.LDAP.SearchUsersSubTree=false
SunONE.STCMS.LDAP.SearchGroupsSubTree=false

ActiveDirectory.STCMS.LDAP.Naming.Provider.URL=ldap://127.0.0.1:389
ActiveDirectory.STCMS.LDAP.Naming.Initial.Factory=com.sun.jndi.ldap.LdapCtxFactory
ActiveDirectory.STCMS.LDAP.Naming.Security.Authentication=simple
ActiveDirectory.STCMS.LDAP.Naming.Security.Principle=cn=Administrator,cn=Users,dc=ican-rts,dc=com
ActiveDirectory.STCMS.LDAP.Naming.Security.Credentials=sMFRfMIgDV8=
ActiveDirectory.STCMS.LDAP.UsersParentDN=cn=Users,dc=ican-rts,dc=com
ActiveDirectory.STCMS.LDAP.UserDNAttributeNameInUser=distinguishedName
ActiveDirectory.STCMS.LDAP.UserIDAttributeNameInUser=sAMAccountName
ActiveDirectory.STCMS.LDAP.RolesParentDN=ou=ICANRoles,dc=ican-rts,dc=com
ActiveDirectory.STCMS.LDAP.RoleDNAttributeNameInRole=cn
ActiveDirectory.STCMS.LDAP.RolesOfUserFilterUnderRolesParentDN=(&(member={1})(objectclass=group))
ActiveDirectory.STCMS.LDAP.GroupsParentDN=cn=users,dc=ican-rts,dc=com
ActiveDirectory.STCMS.LDAP.GroupDNAttributeNameInGroup=distinguishedName
ActiveDirectory.STCMS.LDAP.GroupNameFieldInGroupDN=cn
ActiveDirectory.STCMS.LDAP.GroupsOfUserFilterUnderGroupsParentDN=(&(member={1})(objectclass=group))
ActiveDirectory.STCMS.LDAP.SearchUsersSubTree=false
ActiveDirectory.STCMS.LDAP.SearchRolesSubTree=false
ActiveDirectory.STCMS.LDAP.SearchGroupsSubTree=false

GenericLDAP.STCMS.LDAP.Naming.Provider.URL=ldap://127.0.0.1:489
GenericLDAP.STCMS.LDAP.Naming.Initial.Factory=com.sun.jndi.ldap.LdapCtxFactory
GenericLDAP.STCMS.LDAP.Naming.Security.Authentication=simple
GenericLDAP.STCMS.LDAP.UsersParentDN=ou=People,dc=ican,dc=com
GenericLDAP.STCMS.LDAP.UserIDAttributeNameInUser=uid
GenericLDAP.STCMS.LDAP.RolesParentDN=ou=ICANRoles,dc=ican,dc=com
GenericLDAP.STCMS.LDAP.RoleNameAttributeNameInRole=cn
GenericLDAP.STCMS.LDAP.RolesOfUserFilterUnderRolesParentDN=uniquemember={1}
GenericLDAP.STCMS.LDAP.GroupNameFieldInGroupDN=cn
GenericLDAP.STCMS.LDAP.GroupsParentDN=ou=Groups,dc=ican,dc=com
GenericLDAP.STCMS.LDAP.GroupsOfUserFilterUnderGroupsParentDN=uniquemember={1}
GenericLDAP.STCMS.LDAP.SearchUsersSubTree=false
GenericLDAP.STCMS.LDAP.SearchRolesSubTree=false
GenericLDAP.STCMS.LDAP.SearchGroupsSubTree=false

!////////////////////////////////////////////////////////////////
! STCMS.sServer.Option:
!             Turns the secured message server on/off.
!
STCMS.sServer.Option=true

!////////////////////////////////////////////////////////////////
! STCMS.Server.sPort:
!             Specifies the secured port number that the secured 
!             message server listens to.
!
! limits:     depends on operating systems; usually 1025 - 65535          
!             Valid only if secured server is on.
!
STCMS.Server.sPort=19008

!////////////////////////////////////////////////////////////////
! STCMS.SSL.CertificateFileName:
!             Specifies the name of the file in which the
!             certificate is stored. Valid for UNIX and Windows.
!             For Windows, it is PKCS12 format and contains all
!             of the private keys, public keys and certificates.
!             It stores in a binary format. For UNIX, it is PEM
!             format and contains all of the private keys (RSA
!             and DSA), public keys (RSA and DSA) and (x509)
!             certificates.
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.SSL.CertificateFileName=../config/stcmscert.cer

!////////////////////////////////////////////////////////////////
! STCMS.SSL.KeyFileName (UNIX only):
!             Specifies the name of the file in which the key is
!             stored.    
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.SSL.KeyFileName=../config/stcmskey.pem

!////////////////////////////////////////////////////////////////
! STCMS.SSL.CAFileName (UNIX only):
!             Specifies the name of the file in which the CA
!             is stored.   
!
STCMS.SSL.CAFileName=./stcmscert.pem

!////////////////////////////////////////////////////////////////
! STCMS.SSL.CAFilePath (UNIX only):
!             Specifies the name of the file path where the CA
!             is stored.    
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.SSL.CAFilePath=../config/stcmscert.pem

!////////////////////////////////////////////////////////////////
! STCMS.SSL.CertificateFileStore.Option (Windows only):
!             Turns file-based certificate store on/off.   
!
STCMS.SSL.CertificateFileStore.Option=On

!////////////////////////////////////////////////////////////////
! STCMS.JAVA.ClassPath
!             Sets the classpath, only used for LDAP service.
!
STCMS.JAVA.ClassPath=../lib/com.stc.jms.stcaasclient.jar;

////////////////////////////////////////////////////////////////=
! STCMS.JVM.{OSTYPE}.LibPath
!             Sets path of JVM library. Only used for the LDAP
!             service. Default path:
!
! Windows 2000/XP:     ../../../jre/bin/client/jvm.dll
! Linux6/7/8/AS/SuSE8: ../../../jre/lib/i386/server/libjvm.so
! LinuxAMD64:          ../../../jre/lib/amd64/server/libjvm.so
! Solaris64:           ../../../jre/lib/sparcv9/server/libjvm.so
! Solx86:              ../../../jre/lib/i386/server/libjvm.so
! HP-UX64 PA_RISC:     ../../../jre/lib/PA_RISC2.0W/server/libjvm.sl
! HP-UX64 Itanium:     ../../../jre/lib/IA64W/server/libjvm.so
! AIX32/AIX64:         ../../../jre/bin/classic/libjvm.a
! Tru64:               ../../../jre/lib/alpha/classic/libjvm.so
! z/OS:                ../../../jre/lib/classic/libjvm.so
!
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
! \*\*\*\*\*\* Editted for standalone
! \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
STCMS.JVM.Windows.LibPath=../../../Software/Java/jdk1.5/jre/bin/client/jvm.dll
STCMS.JVM.Linux.LibPath=../../../jre/lib/i386/server/libjvm.so
STCMS.JVM.solx86.LibPath=../../../jre/lib/i386/server/libjvm.so
STCMS.JVM.SunOS.LibPath=../../../jre/lib/sparcv9/server/libjvm.so
STCMS.JVM.HPUX.PARISC.LibPath=../../../jre/lib/PA_RISC2.0W/server/libjvm.sl
STCMS.JVM.HPUX.ITANIUM.LibPath=../../../jre/lib/IA64W/server/libjvm.so
STCMS.JVM.AIX.LibPath=../../../jre/bin/classic/libjvm.a
STCMS.JVM.OSF1.LibPath=../../../jre/lib/alpha/classic/libjvm.so
STCMS.JVM.ZOS.LibPath=../../../jre/lib/classic/libjvm.so

Running STCMS


To run the STCMS you need to execute the commands below, I have added them as a Windows bat file in the attached example, and this will run the stcms directly. If you need to keep the stcms running after you close your session (on Unix) then it will need to be executed as a background process.

SETLOCAL
SET STCMS_HOME=C:\\Glassfish\\stcms
SET LIB_PATH=%STCMS_HOME%\\bin;%LIB_PATH%
SET CLASSPATH=%STCMS_HOME%\\lib\\com.stc.jms.stcjms.jar;%STCMS_HOME%\\lib\\com.stc.jms.stcjournaller.jar;%CLASSPATH%

cd %STCMS_HOME%\\bin
stcms.exe -c %STCMS_HOME%\\config\\stcms.default.properties
cd %STCMS_HOME%


Comments:

Post a Comment:
Comments are closed for this entry.
About

As a member of the Oracle A-Team we specialise in enabling and supporting the Oracle Fusion Middleware communities.

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today