Re: [jboss-user] [JBoss Microcontainer] - ClassLoading delegation
by rafael liu
rafael liu [http://community.jboss.org/people/rafaelliu] replied to the discussion
"ClassLoading delegation"
To view the discussion, visit: http://community.jboss.org/message/542982#542982
--------------------------------------------------------------
Yeah, I could make my container's parent domain point to the target application's domain. The problem is I can't change anything at target application bundle.
Is there some documentation about these demos? I ran it and got:
java.lang.NoClassDefFoundError: org/jboss/kernel/plugins/bootstrap/basic/BasicBootstrap
at org.jboss.demos.bootstrap.Main.configure(Main.java:109)
at org.jboss.demos.bootstrap.Main.main(Main.java:54)
at org.jboss.demos.bootstrap.Main.main(Main.java:48)
Caused by: java.lang.ClassNotFoundException: org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Looks like a Microcontainer class. Reading the docs, seems Microcontainer doesn't have a binary release yet..
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542982#542982]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
[JBoss Messaging] - Can I simulate JMS_JBOSS_DO_NOT_DELIVER_BEFORE?
by Richard Kennard
Richard Kennard [http://community.jboss.org/people/kennardconsulting] created the discussion
"Can I simulate JMS_JBOSS_DO_NOT_DELIVER_BEFORE?"
To view the discussion, visit: http://community.jboss.org/message/542981#542981
--------------------------------------------------------------
Hi guys,
I am really enjoying using JBoss Messaging in JBoss AS 5.1.0.GA. Thanks for all your hard work!
I have a query regarding 'sending a message to the back of the queue'. I am processing messages in a cluster and sometimes a message is received but the rest of the cluster hasn't finished doing what it needs to, so that message needs to get sent to the back of the queue. Currently, I do this by just queueing up a new message.
The problem is, if the queue is empty, one node in the cluster will immediately pick up that message again (even though the other nodes are still processing). I want to delay this. I tried using JMS_JBOSS_SCHEDULED_DELIVERY and that +almost+ works, but if the queue is +not+ empty this appears to let the new message (which I have put to the end of the queue) jump the queue in accordance with the 'scheduled delivery time'.
What I need is like a JMS_JBOSS_DO_NOT_DELIVER_BEFORE. So if the queue is empty it will wait, but if the queue was full and it took a long time to get to the message anyway it will be processed as normal.
Can I implement this somehow?
Thanks in advance,
Richard.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542981#542981]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
[EJB 3.0] - Setting Attribute Values with @Service
by Brad Collins
Brad Collins [http://community.jboss.org/people/bradleyscollins] created the discussion
"Setting Attribute Values with @Service"
To view the discussion, visit: http://community.jboss.org/message/542957#542957
--------------------------------------------------------------
We are converting from JBoss 4.2 to JBoss AS 5.1. I'm converting our SARs from using deployment descriptors to using annotations, and I cannot figure out how to set attribute values using annotations.
Our jboss-service.xml file for JBoss 4.2 looks something like this (names changed to protect the innocent):
<server>
<mbean code="messagebus.service.MessageBusService" name="jboss.jmx:service=MessageBus" interface="messagebus.service.MessageBusServiceMBean">
<attribute name="ApplicationName">bus</attribute>
<attribute name="JnpProviderUrl">ssl://localhost:61617</attribute>
<attribute name="ConfigTopic">config</attribute>
</mbean>
</server>
Using annotations for 5.1, the source code is as follows:
@Management
public interface MessageBusServiceMBean {
...
}
@Service(name="jboss.jmx:service=MessageBus")
public class MessageBusService implements MessageBusServiceMBean {
...
}
So then, how do I set my ApplicationName, JnpProviderUrl, and ConfigTopic attributes?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542957#542957]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months