Re: [jboss-dev-forums] [JBoss AS7 Development] - JBoss AS7 vs AS6
by Brian Stansberry
Brian Stansberry [http://community.jboss.org/people/brian.stansberry] commented on the document
"JBoss AS7 vs AS6"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16778#comment-7099
--------------------------------------------------
> Ales Justin wrote:
>
>
>
> > If jboss-beans.xml works,
> When it works. :-)
> I unfortunately haven't found the time to do this before 7.0.0.Final.
> But it's getting higher on my TODO list. :-)
>
> > then basically a bean defined in that could do the deployment of e.g. datasources programmatically, just like the mbeans in JBoss AS 5 did, couldn't it?
> >
> I don't see why not.
> A bean could definitely do the same ops as CLI client.
>
It wouldn't be able to invoke ops from its start() method -- it would have to use a separate thread and not block start() waiting for that thread to complete its task.
If a service (i.e. this MC bean) that is installed as part of executing a management op (i.e. deploying an MC deployment) tries to invoke an management op during its start() method, it will deadlock the management layer. So it's forbidden. See https://issues.jboss.org/browse/AS7-876 https://issues.jboss.org/browse/AS7-876 for what happens when it's attempted.
--------------------------------------------------
13 years, 5 months
Re: [jboss-dev-forums] [JBoss AS7 Development] - Remote EJB lookup and invocation in JBoss AS 7.0.0
by Mohan Potturi
Mohan Potturi [http://community.jboss.org/people/mohanpotturi] commented on the document
"Remote EJB lookup and invocation in JBoss AS 7.0.0"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16994#comment-7097
--------------------------------------------------
Kabir,
I was able to build the jar file successfully following your instructions. I have created the mainest.mf file and jboss-service.xml file with your directions by hand. I have added the global JNDI names of all my stateless session beans to the right section inside jboss-service.xml file. Then, created a folder called EjbLookup.sar inside deployments folder, created MTEA-INF folder inside the EjbLookup.sar and copied the manifest file and jboss-service.xml files to it. Copied the jboss-as-remote-via-jmx.jar to EjbLookup.sar folder and then fired up JBoss AS. I get the following error
As you can see it is not able to find the RemoteViaJMX class. I have verified that this class exists in the jar file in the right package (org.jboss.as.remote.jmx.mbean). Not sure what am i doing wrong. Can you please help me?
Mohan
--------------------------------------------------
13 years, 5 months
Re: [jboss-dev-forums] [JBoss AS7 Development] - Remote EJB lookup and invocation in JBoss AS 7.0.0
by Kabir Khan
Kabir Khan [http://community.jboss.org/people/kabirkhan] commented on the document
"Remote EJB lookup and invocation in JBoss AS 7.0.0"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16994#comment-7093
--------------------------------------------------
Hi,
You would need maven (I am using 3.0.3) to build it initially. There are quite a few dependencies which I don't know how to set up using just ant. I just pushed a fix to git to set up the jboss repositories in the pom.xml, so I think it should work now with a new maven setup. Just check it out from git and then from the project root directory:
> /path/to/maven/installation/bin/mvn install
>
Since the tests use JMS make sure you build it against a server started using (since the default profile does not have JMS):
> standalone.sh --server-config=test
>
Or to not bother with tests
> /path/to/maven/installation/bin/mvn install -Dmaven.test.skip=true
Once you have the project built, you can probably just include target/jboss-as-remote-via-jmx-7.0.0-SNAPSHOT.jar (or the compiled classes are also available in target/classes) and do a bit of work in ant to rename it to whatever.sar and add the META-INF/jboss-service.xml file and a META-INF/MANIFEST.MF containing:
> Manifest-Version: 1.0
> Dependencies: javax.jms.api,org.hornetq,javax.api
>
>
HTH
--------------------------------------------------
13 years, 5 months