The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: Setting up GlassFish v3 (Prelude) with Solaris 10 SMF

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Jul 6, 2009 1:14 AM by: sebsto
ikevintv

Posts: 5
Setting up GlassFish v3 (Prelude) with Solaris 10 SMF
Posted: Jul 5, 2009 9:04 AM
  Click to reply to this thread Reply

Hi, I am trying to use Service Management Facility (SMF) with GlassFish v3 Prelude. I tried to follow this documentation:

http://docs.sun.com/app/docs/doc/819-3671/gewdn?a=view

I looked into the asadmin help but could not find the "create-service" command listed. I then simply executed "asadmin create-service" to test it and it says comannd is not available.

Is the "asadmin create-service" removed with GlassFish v3 Prelude?

What about the GlassFish v3 or GlassFish Preview versions? Is this command available?

OK, put simply, I would like to set SMF with GlassFish v3 inside a Solaris Container zone. What is the best way to easily create the manifest and method files? The operating system is Solaris 10.

Thanks!

Kevin Pan
Open Source Developer
http://ObjectsOnClouds.org

delabassee

Posts: 3
Re: Setting up GlassFish v3 (Prelude) with Solaris 10 SMF
Posted: Jul 6, 2009 12:51 AM   in response to: ikevintv
  Click to reply to this thread Reply

The 'create-service' command has never been available in GFv3 Prelude.
You should either create your SMF manually or create it using the 'create-service' command on a v2 instance and tweak the created SMF file to your need.

--David

sebsto

Posts: 3
Re: Setting up GlassFish v3 (Prelude) with Solaris 10 SMF
Posted: Jul 6, 2009 1:14 AM   in response to: ikevintv
  Click to reply to this thread Reply

And here is a XML SMF service definition for GlassFish
You might need to modify your paths and service name

--Seb


<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<service_bundle type='manifest' name='glassfish:yajug'>

<service name='application/glassfish/yajug' type='service' version='1'>
<create_default_instance enabled='true' />
<single_instance />
<dependency name='fs-local' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local' />

</dependency>
<dependency name='network-service' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/network/service' />
</dependency>
<method_context>
<method_credential user='glassfish' group='glassfish' />

</method_context>
<exec_method type='method' name='start' exec='/opt/glassfish/glassfish/bin/asadmin start-domain yajug' timeout_seconds='600' />
<exec_method type='method' name='stop' exec='/opt/glassfish/glassfish/bin/asadmin stop-domain yajug' timeout_seconds='600' />
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='transient' />
</property_group>

<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'>Glassfish V3 Simple non-root user SMF</loctext>
</common_name>

</template>
</service>
</service_bundle>




 XML java.net RSS