[JBoss-user] [Clustering/JBoss] - Re: How can I stop these warning messages ? [UDP] discarded

2005-08-03 Thread monocongo
Now I need help on how to stop watching this topic (especially since it was hijacked and is no longer very relevant to my original question, which was answered satisfactorily six months ago). The means of removing a watched topic on this forum doesn't appear to work, in that if I choose "Watche

[JBoss-user] [JBossCache] - Re: Is JBossCache appropriate for this problem ?

2005-05-10 Thread monocongo
Hi Justin. I have made another posting to this forum which hopefully explains my approach: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=63328. Basically I have written an MBean which uses a TreeCacheAop service to cache some objects, and it is supposed to synchronously replicate acr

[JBoss-user] [JBossCache] - Re: Shallow synchronous replication with TreeCacheAop

2005-05-03 Thread monocongo
Yes I agree it should be replicating, the problem is that it isn't. I must be doing something wrong, but for the life of me I can't see what it is. I've gone through all of the tutorials and reference pages, and my configuration seems correct. The synchronous replication of the cached objects

[JBoss-user] [JBossCache] - Shallow synchronous replication with TreeCacheAop

2005-04-28 Thread monocongo
In my application I have an MBean which uses the TreeCacheAop service (MBean) for caching. I am getting synchronous replication only when a new object is added to the cache. So when I add a new object to the cache it gets replicated on all servers of the cluster, but when I update member field

[JBoss-user] [JNDI/Naming/Network] - Re: java:comp/env bound and unbound at the same time?

2005-04-26 Thread monocongo
The bonehead mistake which was causing the problem: I was always looking up my EJBs with "java:comp/env/" prefixed to the actual JNDI name of the EJB. Now that I've removed this everything works as it should. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewto

[JBoss-user] [JNDI/Naming/Network] - Re: java:comp/env bound and unbound at the same time?

2005-04-26 Thread monocongo
A little more information: The ServiceLocator is a Singleton object which runs as part of the server, and has its InitalContext bound the first time it's used (this happens in the ServiceLocator Singleton's constructor). The weirdness I'm experiencing is that it completes several lookups succes

[JBoss-user] [JNDI/Naming/Network] - java:comp/env bound and unbound at the same time?

2005-04-25 Thread monocongo
I have a ServiceLocator class which has a method that looks up and caches EJB remote home objects. I am occasionally getting a NameNotFoundException from this method telling me that env is not bound when I try doing a lookup using a JNDI name such as "java:comp/env/ejb/MyEjb". What is so odd i

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Value for the useBean class attribute is invalid -- why?

2005-04-11 Thread monocongo
The problem was that the class was missing a no-args constructor, and hence wasn't a valid JavaBean. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873463#3873463 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=

[JBoss-user] [HTTPD, Servlets & JSP] - Value for the useBean class attribute is invalid -- why?

2005-04-11 Thread monocongo
I have a JSP which when called gives the following error: 11:27:07,135 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception | org.apache.jasper.JasperException: /useractivity/UserActivitiesDisplayAndUpdate.jsp(9,0) The value for the useBean class attribu

[JBoss-user] [JBossCache] - Error adding a cached object as an HttpSession attribute

2005-04-08 Thread monocongo
I have some code in which I first fetch a cached HashMap from a TreeCacheAop using getObject(). I then wrap the HashMap as an object of another class which provides getters and setters to access the HashMap values. Next I add the object to an HttpSession as an attribute. The wrapper object's

[JBoss-user] [Clustering/JBoss] - Re: How to isolate clusters ? Modifying mcast_addr isn't wo

2005-03-31 Thread monocongo
I had modified the mcast address in the configurations for the two servers on the first cluster node machine, but only in the configuration of one of the servers on the second cluster node machine. Bonehead carelessness burned me good (and for all to see since I posted about it), but fortunatel

[JBoss-user] [Clustering/JBoss] - Re: How to isolate clusters ? Modifying mcast_addr isn't wo

2005-03-30 Thread monocongo
Thanks for the responses. A dumb mistake on my part was the problem, and now that I've corrected it the multiple clusters configuration is working as advertised. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872058#3872058 Reply to the post : htt

[JBoss-user] [Clustering/JBoss] - How to isolate clusters ? Modifying mcast_addr isn't workin

2005-03-28 Thread monocongo
I have two clustered servers which run on the same machines, and I have not been able to isolate them by modifying the PartitionConfig attribute's UDP mcast_addr value in the cluster-service.xml. In other words I can have one application running with nodes on machine A and B, and when I start t

[JBoss-user] [Clustering/JBoss] - Re: How to get failover with HASingletons ?

2005-03-23 Thread monocongo
Thanks for your response. Yes this is exactly what I am doing now, I only wish I had known of this possibility before wasting so much time trying to use a Singleton. I now have MBeans which use the TreeCacheAop service with synchronous replication, and except for a few minor problems it is wor

[JBoss-user] [Beginners Corner] - Re: JBoss API documentation (JavaDoc)

2005-02-25 Thread monocongo
Why can't someone at JBoss just create the JavaDocs and package them for download, as is the case for the Java API documentation ? --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867768#3867768 Reply to the post : http://www.jboss.org/index.html?modu

[JBoss-user] [Clustering/JBoss] - Re: Need help with JBoss 4.0.1 clustering configuration!

2005-02-14 Thread monocongo
Actually on second look that document is almost entirely about HASingletons running in a cluster. Better to look in the getting started guides or here http://www.onjava.com/pub/a/onjava/2002/07/10/jboss.html?page=1 The documentation is sparse but in the end basic clustering with JBoss is very

[JBoss-user] [Clustering/JBoss] - Re: Need help with JBoss 4.0.1 clustering configuration!

2005-02-14 Thread monocongo
You can look here for a how-to clustering document that I created which is HASingleton specific. There are all of the basics of clustering included, you just have to pay attention to what steps are HASingleton specific and skip those. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55

[JBoss-user] [Clustering/JBoss] - RpcDispatcher Errors

2005-02-14 Thread monocongo
I am getting the below exception when running a clustered application using JBoss 4.0.1, no idea why. It doesn't appear to be coming from my application code, although I am calling a QueueSession.commit() when sending as message in an EJB which might be causing this to happen (can't tell from t

[JBoss-user] [Clustering/JBoss] - Re: How can I stop these warning messages ? [UDP] discarded

2005-02-11 Thread monocongo
Anil thanks so much for your quick and helpful response. What you suggested did the trick. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866263#3866263 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866263

[JBoss-user] [Clustering/JBoss] - How can I stop these warning messages ? [UDP] discarded mes

2005-02-11 Thread monocongo
I'm running a JBoss 4.0.1 clustered application and I'm getting the following console messages every 15 seconds: | 14:32:37,181 WARN [UDP] discarded message from different group (Tomcat-Cluster). Sender was brooklyn:32774 | 14:32:37,931 WARN [UDP] discarded message from different group (

[JBoss-user] [Beginners Corner] - Re: Unable to load .properties file

2005-02-10 Thread monocongo
Thanks so much, getting a PropertyResourceBundle as you describe works well. The initial slash in front of my properties file name didn't help. It seems that loading Properties isn't as straight-forward as it should/could be with JBoss. Can it even be done at all ? If so can someone post the

[JBoss-user] [Beginners Corner] - Re: Where do you put .jar files?

2005-02-08 Thread monocongo
Give some more detailed info and exception messages so we can better help you. For example do you have the ejb-jar.xml in your JAR ? What are the specific exceptions ("it blows up" is rather vague) ? etc. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopi

[JBoss-user] [Beginners Corner] - Unable to load .properties file

2005-02-08 Thread monocongo
I have a JBoss application which is deployed in its own directory, for example JBOSS_HOME/server/myapp/deploy/myapp.sar. In this directory is a myapp.properties file. I have been unsuccessful at loading the Properties contained in this file, and I can't figure out why. First I tried a simple

[JBoss-user] [Messaging, JMS & JBossMQ] - Oracle AQ as JMS Provider: Patch no longer available

2005-02-02 Thread monocongo
When I try to go to the page with the Oracle AQ as JMS Provider Patch, http://sourceforge.net/tracker/index.php?func=detail&aid=912173&group_id=22866&atid=376687 I get an error: ERROR Artifact: Only Group Members Can View Private ArtifactTypes Do I need to join a JBoss group to have access t

[JBoss-user] [Beginners Corner] - Re: JBoss API documentation (JavaDoc)

2005-01-25 Thread monocongo
I have unzipped and untarred the source distribution. I went into the build directory and ran the build command as suggested: $ cd jboss-4.0.1-src/build $ ./build.sh docs Here is the output and error message: | Searching for build.xml ... | Buildfile: c:\Home\Software\JBoss\jboss-4.0.1-sr

[JBoss-user] [HTTPD, Servlets & JSP] - Apache/mod_jk: HTTP request query string being lost

2005-01-12 Thread monocongo
I have set up Apache/mod_jk/Tomcat/JBoss in order to route requests to servlets running on JBoss/Tomcat. It appears that the setup is OK, in that it all works fine for a VB client (the client's HTTP requests are properly routed to the servlets with their query strings intact), and it properly r

[JBoss-user] [Beginners Corner] - JBoss API documentation (JavaDoc)

2004-11-23 Thread monocongo
I have searched for JBoss API documentation but have had no luck. I'm trying to find JavaDocs such as those available for the J2SE and J2EE APIs. Can someone tell me whether or not such documentation exists, and if so then what is the URI to use for downloading it and/or to accessing it online

[JBoss-user] [Clustering/JBoss] - Re: how to use singleton

2004-10-27 Thread monocongo
"monocongo" wrote : Once I finally have everything worked out I will post a forum message or Wiki entry outlining all of the steps I needed to take to get this working. Hopefully it will help other developers who want to use Singletons in a clustered JBoss application avoid the head

[JBoss-user] [Clustering/JBoss] - Clustered HASingleton How-To

2004-10-27 Thread monocongo
Here is an outline of the steps I took in order to use HASingletons in a clustered JBoss application. I hope it will be helpful to others who try to use HASingletons for the first time. The below is based on the approach explained by Ivelin Ivanov in the ONJava article found here: http://www.

[JBoss-user] [Clustering/JBoss] - How to get failover with HASingletons ?

2004-10-27 Thread monocongo
I have created an application which uses "stateful" HASingletons. In the event of the master node going down these HASingletons are successfully started on the new master node, but they lose all state information. Once this occurs my application becomes confused and bad voodoo ensues. I had a

[JBoss-user] [Clustering/JBoss] - Re: how to use singleton

2004-10-26 Thread monocongo
Try this link: http://www.theserverside.com/patterns/thread.tss?thread_id=20819 --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852810#3852810 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852810

[JBoss-user] [Clustering/JBoss] - Re: how to use singleton

2004-10-26 Thread monocongo
"lac_raz" wrote : Have tou read the singleton discussion on TheServerSide.com ? Thanks for making me aware of this discussion. I *really* wish I had seen it before going down this path with Singletons. My original idea was to use an EntityBean instead of a Singleton, and from looking at this d

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JMS methods undefined in JBoss 3.2.5

2004-10-23 Thread monocongo
My apologies, I stand rebuked. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852409#3852409 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852409 --- This

[JBoss-user] [Messaging, JMS & JBossMQ] - JMS methods undefined in JBoss 3.2.5

2004-10-22 Thread monocongo
I have just discovered that I'm unable to use three methods which are in the J2EE 1.4 API but which are undefined in the JBoss 3.2.5 library I'm using (jboss-j2ee.jar): javax.jms.ConnectionFactory.createConnection() javax.jms.Connection.createSession(boolean, int) javax.jms.Session.createConsum

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-22 Thread monocongo
This illegal argment error has mysteriously disappeared. The RMIAdaptor now appears to be working for me as advertised. Hallelujah ! --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852338#3852338 Reply to the post : http://www.jboss.org/index.html?

[JBoss-user] [Clustering/JBoss] - Re: how to use singleton

2004-10-21 Thread monocongo
I'm using version 3.2.5 on Solaris and Linux machines. Once I finally have everything worked out I will post a forum message or Wiki entry outlining all of the steps I needed to take to get this working. Hopefully it will help other developers who want to use Singletons in a clustered JBoss app

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-21 Thread monocongo
I have worked this out and can access the RMIAdaptor from a non-master node. Here is the jboss-service.xml of the jmx-invoker-adaptor-server.sar which was copied from deploy to deploy-hasingleton: | | | | | | | | | jboss:service=invoker,type=jrmp |

[JBoss-user] [Clustering/JBoss] - HA-JNDI and jndi.properties

2004-10-21 Thread monocongo
I'm unable to start the NamingService when I set the java.naming.provider.url property in jndi.properties to the URL for the HA-JNDI tree. When I set this property to anything other than localhost:1099 (or jnp://localhost:1099, or nothing at all) then JBoss complains when starting up the Naming

[JBoss-user] [Clustering/JBoss] - Re: how to use singleton

2004-10-20 Thread monocongo
My understanding is that the JBoss HASingleton MBeans do in fact behave as real singletons (just one instance per JVM) when you run them on a single node of a cluster. At least they are working well in that capacity for me. I fortunately do not have the problem of the original poster in that m

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-20 Thread monocongo
"[EMAIL PROTECTED]" wrote : Otherwise its on every node and you have to connect to the jndi service on the singleton node to lookup the correct RMIAdaptor. How would I determine at run time which node is the master node ? If I don't know this then how could I specify a lookup of an object runni

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-20 Thread monocongo
This doesn't work as I was hoping. I have added the below to JBOSS3.2.5/server/all/deploy/jmx-invoker-adaptor-server.sar/META-INF/jboss-service.xml: | | | jboss:service=DefaultPartition | jboss.jmx:type=adaptor,name=Invoker | jboss.jmx:type=adaptor,na

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-20 Thread monocongo
So from what you're saying it appears that the solution is to use the RMIAdaptor/InvokerAdaptorService as an HASingleton. This way I will always get an RMIAdaptor which has access to the other HASingleton MBeans as long as I do the lookup of the RMIAdaptor using HAJNDI in my Servlets and EJBs.

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-20 Thread monocongo
I can't find any reference to a JMX Remote Connector anywhere in the Admin/Devel 3.2.3 Guide, which I assume is the latest Admin/Devel Guide available. Are you referring to using the InvokerAdaptorService (p. 179) in the same manner as the RMIAdaptor (p. 90) being used in the RMIAdaptor client

[JBoss-user] [Clustering/JBoss] - Re: How to access HASingleton MBeans from a non-master clust

2004-10-19 Thread monocongo
I have just discovered a section in the JMX book (Lindfors, et al) about an RMI Connector implementation which looks promising. Is this the solution I should be pursuing ? Any good online references on this topic ? --James View the original post : http://www.jboss.org/index.html?module=bb&o

[JBoss-user] [Clustering/JBoss] - How to access HASingleton MBeans from a non-master cluster n

2004-10-19 Thread monocongo
I have an application which uses several HA Singleton MBeans. It is working well when running as a single node cluster. But when I run it on additional nodes I can't locate the singleton MBeans. It seems that the singleton MBeans are only registered with the MBeanServer on the initial node, a

[JBoss-user] [Management, JMX/JBoss] - Re: HA Singleton complete example

2004-10-19 Thread monocongo
Here's a good article to get you started: http://www.onjava.com/pub/a/onjava/2003/08/20/jboss_clustering.html --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851951#3851951 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mod

[JBoss-user] [Clustering/JBoss] - Re: Unable to use another partition name other than DefaultP

2004-10-08 Thread monocongo
This suggestion appears to have gotten me past my original problem, but not out of the woods. I now get an error with my EJBs not being able to be started in that JBoss is still looking for DefaultPartition: | 11:39:19,403 ERROR [StatelessSessionContainer] Starting failed jboss.j2ee:jndiNa

[JBoss-user] [Clustering/JBoss] - Re: Unable to use another partition name other than DefaultP

2004-10-04 Thread monocongo
darrenl perhaps I initially misunderstood your suggestion. Are you suggesting that I add a PartitionName attribute to the HASingletonControllers, and not just change the name of the service dependency (depends jboss:service=DevPartition) ? I will give this a try and see what happens. --James

[JBoss-user] [Clustering/JBoss] - Re: Unable to use another partition name other than DefaultP

2004-10-04 Thread monocongo
I have done this, see my original post above. In fact in every *.xml file which contained DefaultPartition I have changed the name to DevPartition, including the jboss-service.xml which is included in my MBeans' SAR. I use the partition name "DevPartition" in the depends sections for the HASin

[JBoss-user] [Clustering/JBoss] - Re: Unable to use another partition name other than DefaultP

2004-10-04 Thread monocongo
anonymous wrote : | Add a PartitionName attribute to the deploy-hasingleton-service.xml HASingletonController: | As you can see in my original post above I have done this already. Unfortunately it seems to have no effect. anonymous wrote : | Its easier to isolate the cluster traffic

[JBoss-user] [Clustering/JBoss] - Unable to use another partition name other than DefaultParti

2004-09-30 Thread monocongo
I am attempting to run a cluster using a non-default partition name. In every *.xml file which originally had "DefaultPartition" I replaced it with "DevPartition". The jboss-service.xml which is included in the SAR being deployed in the deploy-hasingleton directory is also using "DevPartition"

[JBoss-user] [Messaging, JMS & JBossMQ] - JMS Sender class as an EJB ?

2004-09-17 Thread monocongo
I have created a class to send messages to a JBoss queue. It works well but there is a lot of overhead with each send method call (roughly 60% from what I can tell) since each time I'm doing JNDI lookups of the QueueConnectionFactory and Queue, and then establishing the QueueConnection, QueueSe

[JBoss-user] [Clustering/JBoss] - Re: Clustering 3.x or 4.x

2004-09-09 Thread monocongo
I'm running 3.2.5 with clustering, and it was relatively painless to move from 3.2.3. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847705#3847705 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847705 --

[JBoss-user] [JBoss Getting Started Documentation] - 5.3.1. The jbossmq-destinations-service.xml File

2004-09-08 Thread monocongo
When I tried adding a queue using an entry like the one specified on page 34 of the "Getting Started Guide" I ran into trouble, until I figured out that I need to also have a DestinationManager dependency. So the actual entry needed in jbossmq-destinations-service.xml should look like this:

[JBoss-user] [Management, JMX/JBoss] - How to get a reference to a MBean ?

2004-09-03 Thread monocongo
I have a MBean which I want to access in other classes. I assume that I should get a reference to this MBean via a JNDI lookup. If this is true then what name should I use for the lookup ? Do I need to bind the MBean to a name in the MBean's constructor or start() method, and then use this na

[JBoss-user] [Clustering/JBoss] - Re: Private constructors not allowed for singletons

2004-09-02 Thread monocongo
You're right, I had no understanding of how this actually works under the hood. You make a very good point that when using the HASingletonDeployer you create a service and not a true singleton -- I wasn't thinking of it that way. Things are clearer in that light. Another point you make which

[JBoss-user] [Clustering/JBoss] - Re: Private constructors not allowed for singletons

2004-09-02 Thread monocongo
An off topic reply, but interesting nevertheless. I think you misunderstand singletons and how they're used, or I do. My understanding is that a singleton is a class which should never be instantiated more than once in an application. This is the opposite of what you suggest -- it absolutely d

[JBoss-user] [Clustering/JBoss] - Which directory for singletons -- farm or deploy-hasingleton

2004-09-01 Thread monocongo
The documentation I have found regarding the deployment of singletons in a cluster is contradictory -- in one place it tells you to put your singleton's SAR into the deploy-hasingleton directory (see http://www.jboss.org/wiki/Wiki.jsp?page=HASingletonDeployer) but in another place (the O'Reilly

[JBoss-user] [Clustering/JBoss] - Private constructors not allowed for singletons

2004-09-01 Thread monocongo
It appears that it is impossible to deploy a singleton with a private constructor in a clustered environment. I get the following error when launching the first node of a cluster in which I have a singleton with a private constructor: | 15:43:23,917 ERROR [MainDeployer] could not create depl

[JBoss-user] [Clustering/JBoss] - Re: Singleton MBean for Clustering

2004-07-29 Thread monocongo
I am now putting the singleton MBean class and interface in the same SAR as another MBean I have for my application, instead of in the EAR as before. The entry for the singleton and controller are now in JBOSS/server/all/deploy/cluster-service.xml. When I start JBoss I now get a DeploymentExcept

[JBoss-user] [Beginners Corner] - Singletons with Clustering

2004-07-29 Thread monocongo
Am I the only one using singletons with clustering ? It seems to be something which should have been done many times before, but detailed information on how it works does not seem to be readily available. I have posted two messages to the JBoss/Clustering forum (see http://www.jboss.org/index.

[JBoss-user] [Clustering/JBoss] - Re: Port assignments -- necessary ? And if so then how to c

2004-07-28 Thread monocongo
Yes you make very good points. When I started to try clustering my servers I thought running a cluster on one machine would be easier for testing/learning, but now I know otherwise. Now that I am trying the clustering with two machines there are no more port issues (though unfortunately there

[JBoss-user] [Clustering/JBoss] - Singleton MBean for Clustering

2004-07-23 Thread monocongo
I am currently trying the approach to Singleton MBeans for clustering suggested in the JBoss Clustering article by Ivelin Ivanov at http://www.onjava.com/pub/a/onjava/2003/08/20/jboss_clustering.html, however there is not enough information in the article -- and I am still working on this approa

[JBoss-user] [Clustering/JBoss] - Making a (singleton) MDB run in only one node of a cluster

2004-07-22 Thread monocongo
I have a message-driven EJB which is listening to a queue which can only have a single listener (the queue can only be dequeued by one listener) so when I have one node running in a cluster a second node can't start due to this restriction (at least this is what appears to be going on). I am ru

[JBoss-user] [Clustering/JBoss] - Port assignments -- necessary ? And if so then how to confi

2004-07-22 Thread monocongo
Do you need to modify or specify any port numbers for the multiple servers/VMs in a cluster ? I am assuming that each VM (node) in the cluster will need to listen to different ports, and this might not be taken care of magically by JBoss, as witnessed below by my second instance (node) in a clu

[JBoss-user] [Clustering/JBoss] - First time using clustering -- how to start, what to conside

2004-07-20 Thread monocongo
I have written an application which I will now need to run in a clustered environment. I know that now is the wrong time to be considering this, but since the application is fairly simple I am hoping that it won't need too much modification to enable it to run in a clustered environment. I am

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Redirect from Apache to JBoss losing request/session inf

2004-06-29 Thread monocongo
Thanks for the suggestion. This was remedied by putting all of the servlets, and not just the first one which did an initial authentication, into the of the web.xml of the JBoss web application. The remote user information is now available to all of the servlets which need it (as long as they

[JBoss-user] [HTTPD, Servlets & JSP] - Redirect from Apache to JBoss losing request/session info

2004-06-17 Thread monocongo
In apache/conf/httpd.conf I am doing a RedirectPermanent to a URL on another machine, and I think I am losing some session or request information when the request is forwarded to the redirect URL. I am redirecting to a servlet which is running on a JBoss server on a remote machine, and in the s

[JBoss-user] [Management, JMX/JBoss] - Re: How to bind an MBean to JNDI, then access from within ap

2004-06-14 Thread monocongo
In my MBean class, which extends ServiceMBeanSupport, I do the following in the startService() method: | protected void startService () | { | // create a HashTable of environment properties for the InitialContext | Hashtable environment = new Hashtable(); |

[JBoss-user] [Installation & Configuration] - Re: Exception at startup: nested throwable DeploymentExcepti

2004-06-10 Thread monocongo
I have tried using several depends in the jboss-service.xml of the SAR file but none have worked so far - is there a way to do something like depends=all ? -James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838400#3838400 Reply to the post : http://www.j

[JBoss-user] [Installation & Configuration] - Re: Exception at startup: nested throwable DeploymentExcepti

2004-06-10 Thread monocongo
I have been able to workaround this by changing to the PrefixDeploymentSorter and prefixing my SAR file name with "1000" -- now the services are sorted with those starting with digits being deployed later, when 1000UserManager.sar is deployed all other services have already been deployed. I mod

[JBoss-user] [Installation & Configuration] - Re: Exception at startup: nested throwable DeploymentExcepti

2004-06-10 Thread monocongo
Something interesting I have noticed -- the exception doesn't occcur when the SAR file is not in the deployment directory. I can load the SAR into the deployment directory after JBoss has already started and everything goes well. So it seems that it is a problem with the SAR being present when

[JBoss-user] [Installation & Configuration] - Exception at startup: nested throwable DeploymentException

2004-06-10 Thread monocongo
I'm having an exception come up when I start JBoss, the exception trace is listed below. This started happening after I copied a SAR file into my deployment directory. The SAR contains an MBean and a jboss-service.xml. I can't find anything about this using Google, maybe someone here can shed

[JBoss-user] [Management, JMX/JBoss] - Re: How to bind an MBean to JNDI, then access from within ap

2004-06-10 Thread monocongo
This seems to work OK, I can bind the bean to a JNDI name, then access the bean from a servlet which looks up the MBean using the JNDI name. -James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838384#3838384 Reply to the post : http://www.jboss.org/inde

[JBoss-user] [Management, JMX/JBoss] - How to bind an MBean to JNDI, then access from within applic

2004-06-10 Thread monocongo
I am creating my first MBean and I assume that I need to bind the MBean to a JNDI name in order to do lookups in my application code to access the MBean. My MBean extends ServiceMBeanSupport. Should I have some binding code within the startService() method which will bind the MBean to a JNDI n

[JBoss-user] [Installation & Configuration] - Start up exception - Content is not allowed in prolog

2004-06-09 Thread monocongo
I have started getting an exception when I start JBoss, but no idea what is causing it. Can anyone shed any light on what might be going on (or not) which is causing the trouble ? Below is the start of the exception listing in the JBoss console (I am running JBoss 3.2.3 on Windows XP). I am o

[JBoss-user] [Management, JMX/JBoss] - How to start and stop an MDB listening to a queue via JMX

2004-05-25 Thread monocongo
I want to be able to stop and start a message-driven EJB from the JMX console (stop and start the MDB listening to a queue). Do I need to create an MBean for this ? Any feedback will be appreciated, thanks in advance. -James View the original post : http://www.jboss.org/index.html?module=bb

[JBoss-user] [Beginners Corner] - Re: How to declare an actual queue for a MDB ?

2004-05-12 Thread monocongo
The jboss-3.2.dtd gives no applicable information other than that the destination-jndi-name exists for MDBs, which I was already aware of (see my original post). What is not clear is how JBoss can make the connection between the JNDI name I specify in the destination-jndi-name entry and the act

[JBoss-user] [Beginners Corner] - Re: How to declare an actual queue for a MDB ?

2004-05-11 Thread monocongo
One point I should add is that I am not using JBossMQ for my queue, I am using an Oracle Advanced Queue. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834518#3834518 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38345

[JBoss-user] [Beginners Corner] - How to declare an actual queue for a MDB ?

2004-05-11 Thread monocongo
I'm creating my first Message-Driven EJB and confused as to how the queue that I'll listen to is specified in JBoss. I have looked at both the "Getting Started" and "JBoss Administration and Development" guides and neither of these tell you how to make JBoss aware of an actual queue. For examp