[EJB/JBoss] - Invokation of the create-method
by ngewecke
Hey,
I am new to working with JBoss(4.0.4GA), and I was wondering if there is an easy way to invoke the create method of an ejb from the server side of a web service.
My problem is that I have a client and a server. The server is fed data by another source, and it opens another thread under the create method (@ejb-create-method using xdoclet(1.2.3) to retrieve the data. Then the client connects and gets the data. But the thread isnt invoked until the client connects to the server for the first time. This is an issue because what if the server is fed data before the client connects to it the first time.
I have thought about making a server-side client that starts when the client starts but I would have no idea how to get that to run as well without making another ant script that runs the server then automatically runs a one time client.
The best solution i could think of is a way that the server could "invoke" the create method on start up, but I have been doing research and not found much.
Any advice?
Nathan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152094#4152094
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152094
18 years, 1 month
[JBoss Messaging] - auto discovery via multicasting problem
by bfach
Hello,
I am trying to determine what is causing this following issue. I have 2 VM's running with a JBoss running on each. Each of the JBoss's is running clustered with only one node in the partition. In other words I have 2 clusters each with 1 jboss running (More than one in the future but having only one for test right now).
The situation is that if I send a message via a JMSClient (standalone) to a queue that is deployed, the message is received by both jbosses in both clusters.
I determined that the JMSClient has auto discovered the other JBoss and is sending to the same queue on the other Jboss as well.
Attempts at a solution was to edit the cluster-server.xml file in the deploy directory and set disablediscovery to true with no effect.
Please let me know if you require more information.
Thanks for the help in advance!
Brad
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152090#4152090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152090
18 years, 1 month