[JCA/JBoss] - How to create a UDP server?
by BogusException
Is it possible to use JBoss to deploy an app/bean that would listen on, say, port 515 UDP for syslog traffic?
I saw one post talk about doing it with a servlet, but all I can find are examples for web pages. Is this because there can only be one daemon listening on a single port, or is it just that I haven't looked in the right place(s)?
Are we talking about a process outside the app server, running as a J2SE app that then needs JCA to get it's data into, say, a stateless bean?
JBoss seems to be OK at providing web services and web pages from/for apps in the container, but I can't seem to locate even the ,ost basic example of how to create a UDP server that is managed by JBoss.
Thanks very much in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044545#4044545
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044545
19 years, 1 month
[JBoss Messaging] - Re: Can't run example (JBoss Messaging 2.1)
by clebert.suconic@jboss.com
After running release-admin, the only reference I see to mq is at:
./messaging/deploy/cache-invalidation-service.xml
... Which is commented out.
| <!--
| <mbean code="org.jboss.mq.server.jmx.Topic"
| name="jboss.mq.destination:service=Topic,name=JMSCacheInvalidationBridge">
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
| </mbean>
|
| <mbean code="org.jboss.cache.invalidation.bridges.JMSCacheInvalidationBridge"
| name="jboss.cache:service=InvalidationBridge,type=JavaGroups">
| <depends>jboss.cache:service=InvalidationManager</depends>
| <depends>jboss.mq.destination:service=Topic,name=JMSCacheInvalidationBridge</depends>
| <attribute name="InvalidationManager">jboss.cache:service=InvalidationManager</attribute>
| <attribute name="ConnectionFactoryName">java:/ConnectionFactory</attribute>
| <attribute name="TopicName">topic/JMSCacheInvalidationBridge</attribute>
| <attribute name="PropagationMode">1</attribute>
| </mbean>
| -->
|
|
And ./messaging/conf/jboss-service.xml, which is being ignored (not affecting anything)
You could do this check yourself:
$ cd $JBOSS_HOME/server/messaging
$ find . -name \*xml -exec grep -H mq {} \;
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044543#4044543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044543
19 years, 1 month
[Management, JMX/JBoss] - Re: Managing JBoss programmatically?
by BogusException
PeterJ,
Thanks for writing! My answers/reply inline:
1) You should not modify the configuration files in place while the application server is running. Instead, copy the one you want to modify to a temporary location, edit it there, and then copy back to deploy. Note that the files in server/xxx/conf are read only on startup. Not sure that you mean by "file system access", the app server needs access rights to all the configuration files.
Excellent advice. Looking at the files in that directory, they don't appear to be application, connector, or datasource specific. I've noticed this about ./server/xxx/lib as well.
2) To deploy your own destinations, create a *-service.xml file, such as mydests-service.xml, and place the queue and topic descriptions in there. Copy the file to the deploy directory to deploy them, and delete it from there to undeploy them.
Excellent. SO I can make as many as I like, providing they have the correct suffix. Is there a reference listing all of these file suffixes, and their corresponding applicability? It would be great to know which runtime config files can be added/removed like this! This is at the core of my question/problem.
3) I am not sure I understand what you are asking, but I think you want to deploy an exploded directory. You can then easily add/update/remove files in your application. See http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment .
The above is really the same as the below:
4) You can creat a JAR and deploy it programmatically, but I do not have an example.
I was curious how to create stateful, statless, message-driven, and other beans programmatically, then deploy them programmatically as well.
While I look for a solution to this dilemma, the above means to me that it is possible to access the JBoss file system (regardless of OS) from an application inside the container, right?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044542#4044542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044542
19 years, 1 month
[JBoss Messaging] - Re: Can't run example (JBoss Messaging 2.1)
by tamaluna
anonymous wrote : Make sure you are using 1.2.1.SP1
|
I don't see 1.2.1.SP1, only 1.2.0.SP1, which I already have (jboss-messaging-1.2.0.SP1.zip).
anonymous wrote :
| I - downloaded jboss-4.0.4.GA and jboss-4.0.5.GA.
|
| II - unziped jboss-4.0.4.GA
|
| III - set JBOSS_HOME=/myDir/jboss-4.0.4.GA
| ...
So you didn't try it with 4.0.5.GA? Or you did them both side-by-side?
anonymous wrote : [java] #####################
| [java] ### SUCCESS! ###
| [java] #####################
Yes, this much works fantastic for me.
anonymous wrote : So... you are doing something wrong at your install!
Such as? Am I supposed to say a few Hail Mary's? ;)
But seriously, could someone answer the question as to whether these jbossmq-*.jar's or DestinationManager references in the xml files should or shouldn't be there? Maybe I just need to get rid of or alter some files that are interfering?
~PT
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044540#4044540
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044540
19 years, 1 month