[Design of Messaging on JBoss (Messaging/JBoss)] - Jar dependencies chapter
by timfox
Looks good so far, some comments suggestions:
1) We need a section on what jars the user needs on the client and server classpaths, e.g.
If you're using core, you need:
jbm-core-core-client.jar
if you're using netty you need netty.jar
if you're using jms you need jbm-jms-cllient.jar (we should have separate jar for jms *client* stuff)
If you're using log4j you need.. blah blah
3)
We should also take the javax.jms.* interface classes out of jboss-jee.jar and put them in their own jar so the user doesn't have to include *all* the jee classes.
4) Also I think we should take all the jars that the JBoss MC needs to run, unzip them and rebuild them into another jar jboss-mc.jar (or whatever) and distribute that, this will greatly limit and simplify the number of jars we distribute.
5) jboss-logging.jar has dependencies to both log4j *and* jboss as logging. Is this right? I don't think we should expect users who just want to use log4j to include all the jboss as logging jars!
6) Why are we including jbm-ra.jar in the distro? Isn't jbm-ra.jar sufficient?
7) JAASSecurity manager should be in core, not integration layer, since JAAS is standard part of JDK now. (I have moved this).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232628#4232628
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232628
15 years, 1 month
[Design of JBoss Remoting, Unified Invokers] - Can not get connection to server - port out of range -1
by tsaulpau
I'm getting this exception from the Invoker:
INFO | jvm 1 | main | 2009/05/21 16:21:13 | EXCEPTION: org.jboss.remoting.CannotConnectException: Can not get connection to
server. Problem establishing socket connection for InvokerLocator [socket://toms-d2003x64/10.1.3.100:1600]
INFO | jvm 1 | main | 2009/05/21 16:21:13 | org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem
establishing socket connection for InvokerLocator [socket://toms-d2003x64/10.1.3.100:1600]
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroS
ocketClientInvoker.java:525)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.j
ava:125)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:630)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:622)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:607)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.i365.archive.contentservice.ContentServiceImpl.invoke(ContentServiceImpl.
java:436)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.metalincs.analysis.framework.Main.startAllServices(Main.java:403)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.metalincs.analysis.framework.Main.start(Main.java:169)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:3011)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | Caused by: java.lang.IllegalArgumentException: port out of range:-1
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at java.net.InetSocketAddress.(Unknown Source)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketCl
ientInvoker.java:178)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(Mi
croSocketClientInvoker.java:796)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroS
ocketClientInvoker.java:521)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | ... 8 more
INFO | jvm 1 | main | 2009/05/21 16:21:13 |
Does anybody know what causes this?
Is this valid?: socket://toms-d2003x64/10.1.3.100:1600
I also get this if I try port 5400 like in the samples.
Thanks,
Tom
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232602#4232602
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232602
15 years, 1 month
[Design of Management Features on JBoss] - Re: ManagementObjects not getting Picked up
by ALRubinger
Hmm, changes I made to the ProfileServiceBootstrap are in changing the type of server used...what do you mean by "relies on the context injection of Bootstrap implementations"?
Index: /home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
| ===================================================================
| --- /home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java (.../home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java) (working copy)
| +++ /home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java (.../https://svn.jboss.org/repos/jbossas/branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java) (revision 89258)
| @@ -25,6 +25,7 @@
| import java.lang.annotation.Annotation;
| import java.util.ArrayList;
| import java.util.Collection;
| +import java.util.Collections;
| import java.util.HashMap;
| import java.util.HashSet;
| import java.util.Iterator;
| @@ -35,12 +36,11 @@
|
| import org.jboss.beans.info.spi.BeanInfo;
| import org.jboss.beans.metadata.spi.BeanMetaData;
| -import org.jboss.bootstrap.spi.as.JBossASBootstrap;
| -import org.jboss.bootstrap.spi.as.config.JBossASServerConfig;
| -import org.jboss.bootstrap.spi.as.server.JBossASServer;
| -import org.jboss.bootstrap.spi.mc.config.MCServerConfig;
| -import org.jboss.bootstrap.spi.mc.server.MCServer;
| -import org.jboss.bootstrap.spi.server.Server;
| +import org.jboss.beans.metadata.spi.BeanMetaDataFactory;
| +import org.jboss.bootstrap.spi.Bootstrap;
| +import org.jboss.bootstrap.spi.Server;
| +import org.jboss.bootstrap.spi.ServerConfig;
| +import org.jboss.bootstrap.spi.microcontainer.MCServer;
| import org.jboss.dependency.spi.ControllerContext;
| import org.jboss.dependency.spi.ControllerState;
| import org.jboss.deployers.client.spi.IncompleteDeploymentException;
| @@ -67,6 +67,7 @@
| import org.jboss.managed.api.ManagedProperty;
| import org.jboss.managed.api.MutableManagedObject;
| import org.jboss.managed.api.annotation.ManagementComponent;
| +import org.jboss.managed.api.annotation.ManagementConstants;
| import org.jboss.managed.api.annotation.ManagementObject;
| import org.jboss.managed.api.annotation.ViewUse;
| import org.jboss.managed.api.factory.ManagedObjectFactory;
| @@ -75,12 +76,16 @@
| import org.jboss.managed.plugins.ManagedObjectImpl;
| import org.jboss.managed.plugins.ManagedOperationImpl;
| import org.jboss.managed.plugins.ManagedPropertyImpl;
| +import org.jboss.managed.plugins.factory.AbstractManagedObjectFactory;
| import org.jboss.metatype.api.types.ArrayMetaType;
| +import org.jboss.metatype.api.types.CollectionMetaType;
| import org.jboss.metatype.api.types.MetaType;
| import org.jboss.metatype.api.types.SimpleMetaType;
| import org.jboss.metatype.api.values.ArrayValueSupport;
| +import org.jboss.metatype.api.values.CollectionValueSupport;
| import org.jboss.metatype.api.values.EnumValue;
| import org.jboss.metatype.api.values.EnumValueSupport;
| +import org.jboss.metatype.api.values.GenericValue;
| import org.jboss.profileservice.spi.MutableProfile;
| import org.jboss.profileservice.spi.NoSuchProfileException;
| import org.jboss.profileservice.spi.Profile;
| @@ -98,7 +103,7 @@
| * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
| * @version $Revision$
| */
| -public class ProfileServiceBootstrap implements JBossASBootstrap, KernelRegistryPlugin
| +public class ProfileServiceBootstrap implements Bootstrap, KernelRegistryPlugin
| {
| /** The log */
| private static final Logger log = Logger.getLogger(ProfileServiceBootstrap.class);
| @@ -226,7 +231,7 @@
| /**
| *
| */
| - public void start(JBossASServer server)
| + public void start(Server server)
| throws Exception
| {
| shutdown.set(false);
| @@ -246,7 +251,7 @@
|
| // Load the profiles
| if(this.profileKey == null)
| - this.profileKey = new ProfileKey(server.getConfiguration().getServerName());
| + this.profileKey = new ProfileKey(server.getConfig().getServerName());
|
| Map<String, Object> metaData = server.getMetaData();
| ProfileMetaData pmd = (ProfileMetaData) metaData.get(ProfileMetaData.class.getName());
| @@ -293,14 +298,14 @@
| }
| }
|
| - public void prepareShutdown(JBossASServer server)
| + public void prepareShutdown(Server server)
| {
| shutdown.set(true);
| if (mainDeployer != null)
| mainDeployer.prepareShutdown();
| }
|
| - public void shutdown(JBossASServer server)
| + public void shutdown(Server server)
| {
| // Disable hotdeployment scanning
| for(ProfileKey key : profileService.getActiveProfileKeys())
| @@ -557,7 +562,7 @@
| }
| // ServerConfig
| type = new ComponentType("MCBean", "ServerConfig");
| - MCServerConfig config = mcserver.getConfiguration();
| + ServerConfig config = mcserver.getConfig();
| ManagedObject mo = mof.initManagedObject(config, null);
| ManagedComponentImpl configComp = new ManagedComponentImpl(type, firstDeployment, mo);
| firstDeployment.addComponent("ServerConfig", configComp);
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232570#4232570
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232570
15 years, 1 month