It seems SA project which I've created doesn't contain the file SU and xmpp
SU.

Inside xmpp-sa-1.0-SNAPSHOT.jar:

META-INF [folder]
    maven [folder]
        org.apache.servicemix.examples [folder]
            xmpp-sa [folder]
                pom.xml [file]
                pom.properties [file]
        dependencies.properties  [file]
        
    MANIFEST.MF [file]
    jbi.xml [file]

pom.xml file content:

        <?xml version="1.0" encoding="UTF-8"?><project>
          <parent>
            <artifactId>my-xmpp</artifactId>
            <groupId>org.apache.servicemix.examples</groupId>
            <version>1.0-SNAPSHOT</version>
          </parent>
          <modelVersion>4.0.0</modelVersion>
          <groupId>org.apache.servicemix.examples</groupId>
          <artifactId>xmpp-sa</artifactId>
          <packaging>jbi-service-assembly</packaging>
          <name>XMPP :: XMPP SA</name>
          <version>1.0-SNAPSHOT</version>
          <url>http://www.myorganization.org</url>
          <build>
            <plugins>
              <plugin>
                <groupId>org.apache.servicemix.tooling</groupId>
                <artifactId>jbi-maven-plugin</artifactId>
                <version>${servicemix-version}</version>
                <extensions>true</extensions>
                <configuration>
                  <type>service-assembly</type>
                </configuration>
              </plugin>
            </plugins>
          </build>
          <repositories>
            <repository>
              <releases />
              <snapshots>
                <enabled>false</enabled>
              </snapshots>
              <id>apache</id>
              <name>Apache Repository</name>
              
<url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
            </repository>
            <repository>
              <releases>
                <enabled>false</enabled>
              </releases>
              <snapshots />
              <id>apache.snapshots</id>
              <name>Apache Snapshots Repository</name>
              <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            </repository>
          </repositories>
          <pluginRepositories>
            <pluginRepository>
              <releases />
              <snapshots>
                <enabled>false</enabled>
              </snapshots>
              <id>apache</id>
              <name>Apache Repository</name>
              
<url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
            </pluginRepository>
            <pluginRepository>
              <releases>
                <enabled>false</enabled>
              </releases>
              <snapshots />
              <id>apache.snapshots</id>
              <name>Apache Snapshots Repository</name>
              <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            </pluginRepository>
          </pluginRepositories>
          <dependencies>
            <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
              <version>3.8.1</version>
              <scope>test</scope>
            </dependency>
          </dependencies>
          <properties>
            <servicemix-version>3.2.2</servicemix-version>
          </properties>
        </project>

pom.properties file content:

        #Generated by Maven
        #Mon Oct 20 15:24:07 GMT+08:00 2008
        version=1.0-SNAPSHOT
        groupId=org.apache.servicemix.examples
        artifactId=xmpp-sa

dependencies.properties file content:

        # Project dependencies generated by the Apache ServiceMix Maven Plugin
        # Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008

        groupId = org.apache.servicemix.examples
        artifactId = xmpp-sa
        version = 1.0-SNAPSHOT
        org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT

        # dependencies

        junit/junit/version = 3.8.1
        junit/junit/type = jar
        junit/junit/scope = test

MANIFEST.MF file content:

        Manifest-Version: 1.0
        Archiver-Version: Plexus Archiver
        Created-By: Apache Maven
        Built-By: MethoD
        Build-Jdk: 1.6.0_10-rc

jbi.xml file content:

<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
  <service-assembly>
    <identification>
      <name>xmpp-sa</name>
      <description>XMPP :: XMPP SA</description>
    </identification>
  </service-assembly>
</jbi>


Gert Vanthienen wrote:
> 
> L.S.,
> 
> You seem to be going the right way, just until the very end.  After you 
> have created your Maven SA project, you should add the xmpp SU and file 
> SU there as a dependency.  This way, both SU will get packaged inside 
> the same SA.  You only have to deploy the SA.  Have a quick look at 
> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
> and 
> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
> 
> Regards,
> 
> Gert
> 
> aznmedia wrote:
>> Hello guys.
>>
>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>
>> My swing test application successfully connected to Openfire server by
>> using
>> smack API.
>> But how can I integrate with servicemix xmpp?
>>
>> I've created:
>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>
>> 2. create pom.xml file with following content:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd";> 
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>org.apache.servicemix.examples</groupId>
>>  <artifactId>my-xmpp</artifactId>
>>  <version>1.0-SNAPSHOT</version>
>>  <packaging>pom</packaging>
>>  <name>XMPP demo</name>
>>  <url>http://www.servicemix.org</url>
>> </project>
>>
>> 3. mvn clean install
>>
>> 4. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>
>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>> following content:
>>
>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0";
>>        xmlns:tut="urn:servicemix:tutorial">
>>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>     uri="xmpp://[EMAIL PROTECTED]/Smack" password="password"
>> room="[EMAIL PROTECTED]"/>
>> </beans>
>>
>> 6. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>
>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>> following content:
>>
>> <beans xmlns:file="http://servicemix.apache.org/file/1.0";
>>        xmlns:tut="urn:servicemix:tutorial">
>>   <file:sender service="tut:file" endpoint="sender"
>>              directory="file:///C:/test/myOutbox"
>>              autoCreateDirectory="true">
>>              <property name="marshaler">
>>                    <bean
>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>              </property>
>>   </file:sender>
>>   <file:poller service="tut:file" endpoint="poller"
>>              file="file:///C:/test/myInbox"
>>              targetService="tut:file"
>>              targetEndpoint="xmpp"
>>              period="60000"
>>              recursive="true"
>>              autoCreateDirectory="true"/>
>> </beans>
>>
>> 8. mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly
>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>
>> 9. mvn install
>>
>> 10. copied following files to servicemix hotdeploy directory.
>>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>> Servicemix said successful.
>>
>> But I don't see any integration with openfire and servicemix?
>> Maybe I'm doing wrong with misunderstood.
>>
>> Help me to integrate please.
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: 
http://www.nabble.com/XMPP-tp17412424p20126600.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to