Hi Kinga,

I am sorry to bother you again. Please help me regarding my following
problem related to the enterprise application that you guided me to.

This is regarding the resourceadmin service that is the part of
enterprise example(that comes along with muse) . Enterprise application
has already provided the generated java code for resourceadmin.xml and
the generated  jar called resourceadmin-xbeans.jar which contains the
following package:

1)       org.apache.ws.muse.example.resourceadmin
2)       org.apache.ws.muse.example.resourceadmin.impl
3)       org.apache.ws.muse.example.resourceadmin.properties
4)       org.apache.ws.muse.example.resourceadmin.properties.impl
5)       org.apache.ws.namespaces.muse.muwsExt1
6)       org.apache.ws.namespaces.muse.muwsExt1.impl

But if I try to generate the java code from  the resourceadmin.wsdl then
the created  resourceadmin-xbeans.jar does not create the last two
highlighted packages ie  the following packages are missing : 

1) org.apache.ws.namespaces.muse.muwsExt1
2) org.apache.ws.namespaces.muse.muwsExt1.impl

I used the genearate code given in the build.xml to do so. The code is
shown below...

<target name="generate"
              depends="init"
              description="generate service classes and XMLBeans types
for the source WSDLs...Note this has already been done and claases have
been implemented.">      
        <!-- the wsdls imports xsd located at schemaLocation="../wsdl/
to accomodate this temp dir name is wsdl -->

        <property name="tmp.dir" location="${muse.webapp.dir}/wsdl" />
        <mkdir dir="${tmp.dir}" />
        <copy todir="${tmp.dir}" overwrite="true">
        <fileset dir="${wsdl.dir}">
           <include name="**/*"/>
        </fileset>
        </copy>
        <mkdir dir="${muse.webapp.dir}/wsdl" />
       <taskdef name="wsdl2Java"
classname="org.apache.ws.muws.tool.MuwsWsdl2JavaTask"
classpath="${muse.classpath}" />              
   <wsdl2Java outputDir="${out.dir}"
                   classpath="${muse.classpath}"
                   debug="off"
                   proxyHost="${http.proxyHost}"
                   proxyPort="${http.proxyPort}"
                   nonProxyHosts="${http.nonProxyHosts}">
          <wsdls dir="${tmp.dir}">
            <include name="**/*.wsdl" />       
          </wsdls>
        </wsdl2Java>
        <delete dir="${tmp.dir}" />
    </target> 

  Please guide me to what I might be missing .. ?? 


 

-----Original Message-----
From: Kinga Dziembowski [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 6:21 AM
To: [email protected]
Subject: Re: Please Help

In my previous message I said that Integrationserver is the class to
look...
You should look for resourceadmin instead. Sorry for misleading you.
Hopefully Muse_Example.html helped you to figure out which class to
look.
Kinga


On 4/20/06, Sachdeva, Pushkar K <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot Kinga. This was exactly what I was looking for ...:-)
>
> -----Original Message-----
> From: Kinga Dziembowski [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 6:45 AM
> To: [email protected]
> Subject: Re: Please Help
>
> Hi,
> If I understand you correctly during the life of your application,
more
> instances of this same resource type needs to be managed. There are at
> least
> two approaches for this problem. One approach is to use the Factory
> pattern
> and create dedicated service which will create for you new managed
> resources
> instances - this pattern is illustrated in muse examples/enterprise.
> Download Muse-1.0.zip, unzip and look at \muse-
> 1.0\examples\enterprise\Muse_Example.html
> You will get some sense how it works. The Integrationserver is the
> service
> implementing this factory pattern.
>
> Please take a look.
> Kinga Dziembowski
>
> On 4/18/06, Sachdeva, Pushkar K <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> >
> >
> > I have a Web Service that exposes two devices located at say
> 10.10.10.10
> > and 10.10.10.12. Now I want to dynamically add a new resource
located
> at
> > 10.10.10.12 to this
> >
> > Web Service( ie, I want this Web Service to expose 3 resources
now.).
> > What I understand from my basic knowledge about Apache Muse is that
I
> > need to call
> >
> > add(createInstance("10.10.10.12")) method of ResourceHome class
> > dynamically.
> >
> >
> >
> > But the problem is where should I add this code . I don't want to do
> > this in my init() method of Home class as I want it to happen
> > dynamically( not at initializing time).
> >
> > I tried putting it in my custom operation that I defined my WSDL
file,
> > but these operations are specific to the resources so it requires
the
> > ResourceID field to invoke the function.
> >
> >
> >
> > So, is there any way to define operations in the MUWS WSDL that are
> not
> > related to resources( i.e that does not require a Resource
Identifier
> to
> > invoke it). ???
> >
> >
> >
> > Is there any other alternative to achieve what I want.. ???
> >
> >
> >
> > Please help me. I am trying to explore the Apache Muse to use  it in
> our
> > project.
> >
> >
> >
> >
> >
> > -Regards
> >
> > Pushkar Sachdeva
> >
> >
> >
>

Reply via email to