Guillaume,
first thanks for all your answers... :-)
You say that I must wait for m1 xml files to be commited...
Does it mean I would not be able to build a "correct" SM war to start
working with SM on Tomcat ?
I am asking this question to prevent me wasting time in testing the web
app if it is a wrong one...
Thanks again
Charles
Guillaume Nodet wrote:
Charles Souillard wrote:
What do I have to do to go back to m1 ?
I only need to use maven 1 and run smaven install instead of mvn
install ?
You may want to switch back to m1 when the maven files have been put
in svn back.
You can still continue to use m2, but the official build will be m1
until we manage to stabilize the m2 one.
What do you mean by it is a demo ?
If I generate the war and deploy it into Tomcat, it will not allow me
use SM with all its features ?
The servicemix-web application contains examples and ships with a xml
config file that contains
components you may want to remove.
That said, you can still use all features of ServiceMix.
Guillaume
Rergards,
Charles
Guillaume Nodet wrote:
We are experiencing lots of problems with m2.
The build is quite unstable, and we are considering shifting back to
m1 until the build can be made stable enough.
You'd better try with m1.
Note that servicemix-web is more a demo than a real web application.
Guillaume Nodet
Charles Souillard wrote:
Guillaume,
is it planned to move servicemix-web to m2 ?
I am interesting in using SM into tomcat...
Thanks
Regards,
Charles
Guillaume Nodet wrote:
Charles Souillard wrote:
Guillaume,
can you confirm my understanding please...
In fact deploying servicemix-web.war into my J2EE app server will
allow me to use SM exactly in the same way as if I was using it
standalone ?
I will dispose of all features ?
Yes. But some features need access the the j2ee server resources,
so you will have to configure ServiceMix accordingly.
How can I then deploy a new component in SM (through my app
server ?) ?
You should use JMX management specified in the JBI spec to do so.
You can also use the ant tasks (they use jmx).
In fact I am trying to understand why you are having a lot of
work integrating SM in Geronimo.. Is it only to add some specific
features ?
You may experience problem using the transaction layer in Geronimo
for example : in Geronimo, the TransactionManager and
UserTransaction are not the same object and this may lead to
problem because ServiceMix uses the TransactionManager, but
managed resources will use the UserTransaction.
We also want to integrate with Geronimo deployer to ease
deployment of components and service units.
Cheers,
Guillaume Nodet
Regards,
Charles
Guillaume Nodet wrote:
The easiest way to integrate into an app server is to deploy
servicemix as a web application, like axis.
You will be able to use the jmx features for installing
components and deploying service units.
The can do that by using a servicemix.xml configuration file :
you do not have to put any activation specs,
but you can pre-install some components if you like.
Using spring, you should be able to access the resources of your
j2ee server in jndi, like the TransactionManager or
a WorkManager, if you want to do so.
Cheers,
Guillaume Nodet
Charles Souillard wrote:
Guillaume,
I can understand from your answer that I can not work now on
trying to deploy servicemix on my favourite J2EE app server.
Can you tell me if integrating SM into my app server is a lot
of work ?
I know it depends on my app server but there is a list of stuff
to do you can perhaps give to let me evaluate the effort I will
have to give...
Cheers,
Charles
Guillaume Nodet wrote:
The integration of ServiceMix in Geronimo will consist in a
set of gbeans which
you will be able to deploy in Geronimo. These gbeans will
provide :
* a ServiceMix JBI container
* integration with geronimo hot deployer
* use Geronimo resources : transaction manager, work manager
We also hope to provide in the future other features:
* jms binding component linked to geronimo jms broker
* http binding component using geronimo web server
* portlets for managing ServiceMix
The exact packaging of ServiceMix integration is still to
decide :
* a j2ee artifact : war, ear
* a geronimo car (configuration archive) : a geronimo plan is
available in servicemix-gplan
In any cases, the goal is to be able to install / deploy jbi
artifacts (components, service assemblies).
The tooling\servicemix-web has not been ported yet to m2 :(
Cheers,
Guillaume Nodet
Charles Souillard wrote:
Hi all,
I am trying to understand how SM is "integrated" in geronimo
and what functionnalities it gives.
First of all, when I read the doc on the web site, I can
understand that there is a SM web app which is deployed into
the web container of Geronimo. This allows to list SM MBeans
and to launch a packaged HelloWorld sample.
There is a paragraph called "Deploying Components on
servicemix-web.war" which is not really enthousiastic :
This section is on hold until the Jira issue: is fixed.
So my first question is :
What means integrated ?? !!
As we can't deploy any component on the web app, I don't
understand what is the add value to deploy SM in a web
container...
There is another part on the web site dealing with SM
integration in JBoss. As it is said in the web page, web can
deploy new components in the web app. But when I browse SM
source code I never found something aboutthe JBoss deployer...
Is it in the JBoss project or is it deprecated since SM
moved to Geronimo ?
Nevertheless, I am interesting in deployng the SM web app on
my J2EE app server. To do such a thing I tried the commands
line given :
maven war (mvn war) but I get an error. Perhaps you had not
time to move the web app to SM 3.0 ?
Can you help me ?
Here is the stacktrace :
mvn war
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: servicemix
ArtifactId: servicemix
Version: 2.1-SNAPSHOT
Reason: Unable to download the artifact from any repository
servicemix:servicemix:pom:2.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM
'servicemix:servicemix' not found in repository: Unable to
download the artifact from any repository
servicemix:servicemix:pom:2.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException:
POM 'servicemix:servicemix' not found in repository: Unable
to download the artifact from any repository
servicemix:servicemix:pom:2.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:430)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:988)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:594)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:304)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:274)
at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
... 11 more
Caused by:
org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
servicemix:servicemix:pom:2.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:387)
... 18 more
Caused by:
org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
... 20 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Jan 10 09:56:08 CET 2006
[INFO] Final Memory: 1M/2M
[INFO]
----------------------------------------------------------------------------
Thanks a lot
Charles