RE: [JBoss-user] About JBoss HA: Simply curiosity
Hello Matthew: That's all that i know about JBoss HA --> http://194.38.95.241/jboss/ In this web you'll find a list of features about JBoss HA, a download link, and information about installing JBoss HA (i suggest you to download the compiled version). Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 24/05/2001 12:31 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:RE: [JBoss-user] About JBoss HA: Simply curiosity Hi, Where can I find out more about JbossHA? Is there a list of features that it will have? Thanks Matt > -Original Message- > From: Sacha Labourey [mailto:[EMAIL PROTECTED]] > Sent: 24 May 2001 10:49 > To: jboss-user > Subject: RE: [JBoss-user] About JBoss HA: Simply curiosity This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately by email or telephone and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] About JBoss HA: Simply curiosity
Hello Sacha: You're really quick! Thanks > When you say you are >interested about it, you mean by curiousity or as a developer (both cases >are interesting!) let us know! ;) Sorry, i'm not a developer :-( but more than a curious user... By the moment i'm only testing JBoss as a very good option for EJBs deployment, and the H.A. feature is really attractive too, good job! Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] About JBoss HA: Simply curiosity
Hello: nowadays i'm testing High Availability with JBoss (http://194.38.95.241). I've installed and configured JBoss HA in two different PCs running Linux Mandrake 7.2. I've deployed the 'testbean.jar' and later i've run 5 instances of TestGUI.jar, and...it RUNS!!! : every node in the cluster is serving the same bean. But now i wonder: if i have configured NOWHERE the physical location of my Nodes, how JBoss HA can found each node in the cluster in our LAN? Perhaps is the 'JavaGroupsSettings' doing this job? Thanks in advance: P.D.: is HA project still alive?, i'm very interested on it. __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] MDB...why?
Hello Peter: Let's go with another example and you would say me if (now, at last, thanks god ;-) am i in the correct way: "An imaginary assumption: i wanna write an application to manage a Mail List in this way: Topic publisher side -- A servlet obtains a lot of information (news) about 'Sport', 'Cinema' and 'Computers'. This program sends messages to a Topic which include 'subject', 'theme' and 'body' fields. Topic subscriber side - Three (diferent) listeners called 'listenSport', 'listenCinema' and 'listenComputers' wait for a message with its 'theme' field equals to 'Sport', 'Cinema' or 'Computers', respectively. Each Listener will call outers Session Beans which transform the 'body' field in an HTML format (for Sports), PDF format (for Cinema) and Plain-text format (for Computers) and then, every Session Bean send an e-mail to [EMAIL PROTECTED], [EMAIL PROTECTED] or [EMAIL PROTECTED] with its respective attachment. Everything will occur without 'bothering' the servlet. In the other hand, writing 3 diferent Listeners will allow us to change (separately) the formating task asociated to each Listener, and, in the future, add new Listeners for new themes." Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> __ [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 15/05/2001 21:43 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] MDB...why? On 14 Maj, [EMAIL PROTECTED] wrote: > Thank you Per!! > > The origin of this confusion is a sample in JBoss Documentation, > making more specific: example called "MDB as a Listener". > > How many "subscribers" appear in this example? > I think a subscriber is 'Worker Bean', isn't it? > Then, to have more than one subscriber i've to create other Beans > similar (or not) to Worker Bean, haven't i? > So, if i create new beans i have to modify my Listener to be able to > comunicate with the new subscriber... The ListenerBean is the subscriber. The logic is partitioned so that the work is done in the stateless session bean. Not that it is necesarry in this example, but only to show how it is possible to do it. When it commes to an MDB, you deploy one version (name, configuration) for each logic and topic/selector combination. Some areas to use this? - A time task run in JMX could send its task to a queue. An MDB listens for missions and delegate to a sessiion bean (or does the work for itself). - A bean get some cind of thing to do. To continue it need to wait one some cind of event (perhaps the presence of something). It triggers this and returns. A message bean listens on a queue where the event will be placed and calls the session bean (that perhaps has saves som temporary persistens data throug an entity bean from the earlier invokation, which it now uses. //Peter > > Please, am i in the correct way? > > Thank you again! > __ > Jaume Soriano Sivera <[EMAIL PROTECTED]> > __ > > > > > Per Lewau <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 14/05/2001 13:08 > Please respond to jboss-user > > > To: [EMAIL PROTECTED] > cc: > Subject:Re: [JBoss-user] MDB...why? > > > > On Mon, 14 May 2001 [EMAIL PROTECTED] wrote: > >> Hi: >> I'm testing JBoss with MDB but i'm still lost about its >> utility... >> I'd like to write an application to manage a little >> "web-shop" using EJBs and MDBs as follows: >> >> * A java servlet who takes data from web application, i.e. >>the identifier of a client who wants to buy a book. >> >> * Before allowing this purchase i want to check if this client >>is not in my 'defaulter list'. >> >> * After this i'll be able to avoid/allow the purchase. >> >> Well, i though to do this: >> >> "The servlet takes data from web client and sends it to a Topic, >> then Topic sends data to a Checker Bean that runs a method >> called 'checkClient' wich look for this client in a 'defaulter' > database. >> If everything is ok, a 'true' value is returned to servlet" > > Sounds more like a Queue than a Topic to me. Queues are for point-to-point > messages and Topics are for Publisher/Subscriber (many receivers). > >> Is this a good way to pose my problem? >> I know its possible to develope *the same* without MDBs, but, >> is there any advantage on using MDBs? >> in other words, how can i take advantage of MDBs? > > I'm not sure what you are trying to do, but this is my take on what you > want. > > 0. MDB listens for messages on in queue > 1. serlvet sends message to in queue with whatever should be checked > 2. servlet waits for message on out queue > 3. MDB.onMessage() called > 4. MDB checks whatever > 5. MDB sends message (true or false) to out queue > 6. servlet receives mess
Re: [JBoss-user] One more doubt about MDB(2)
Now i see the light! :-o Last question (by the moment): How to use the same Topic with 2 or more subscribers? Perhaps, for every subscriber, have i to indicate in its 'jboss.xml' the same line: topic/sameTopic ? Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ Per Lewau <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 15/05/2001 10:51 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] One more doubt about MDB On Tue, 15 May 2001 [EMAIL PROTECTED] wrote: > Hello again: > > I'm using a Topic with (only) one subscriber (i.e. ListenerBean), > with this assumption... > which is the diference between using a QUEUE or a TOPIC? None. If you only have one subscriber and will only ever have one subscriber you could use a Queue instead. With a topic however you could add more subscribers if that becomes necessary, fun or whatever in the future without having to change anything else. Cheers --- Per Lewau ([EMAIL PROTECTED]) "Why waste time learning, when ignorance is instantaneous?" - Hobbes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] One more doubt about MDB
Hello again: I'm using a Topic with (only) one subscriber (i.e. ListenerBean), with this assumption... which is the diference between using a QUEUE or a TOPIC? Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: New: [JBoss-user] MDB...why?
Great!! 10 Thank you Per ! 20 Goto 10 __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ Per Lewau <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 15/05/2001 01:16 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: New: [JBoss-user] MDB...why? I seemed to have ranted abit, but I hope you'll find this useful. On Mon, 14 May 2001 [EMAIL PROTECTED] wrote: > (Excuse me if this e-mail appears twice) > > Thank you Per!! > > The origin of this confusion is a sample in JBoss Documentation, > making more specific: example called "MDB as a Listener". > > How many "subscribers" appear in this example? One. The ListernerBean is the one subscriber to the Topic topic/testTopic. > I think a subscriber is 'Worker Bean', isn't it? The subscriber is the ListernerBean. When the listener bean receives a message it calls the WorkerBean. > Then, to have more than one subscriber i've to create other Beans > similar (or not) to Worker Bean, haven't i? (I see know why you talked about using a Topic in your last mail (that's what's great about helping others, innit?). The reason for using a topic is to be able to "send an event" to many "event listeners".) The Worker bean is an ordinary Session Bean and is not directly involved in the JMS thingy. Lets call a message published on the topic a WorkEvent that triggers that work should be done (man, I'd hate one of those ;). In the example the ListenerBean receives that event and instead of doing the work himself he delegates (sweet) it to the WorkerBean. If you'd want more beans to listen to that event then yes, you'd have to modify the ListenerBean to also call those other beans. The idea is that there should be one Topic for all events and that the ListenerBean is responisble for sending events on to other beans (the actual listeners, so to speak). I'd say that the idea is a little lost in the example as it is too simple. The advantage of having one Topic and one subscriber is that you only have to reconfigure that subscriber, something which could be done via the environment. The advantage doesn't really become apparent when you have only one event; you could just attach many MDBs to that Topic. However, when you want to add more events you'd have to add more Topics and that would require restarting the server (right now, Topics added while the server is running are not recreated when the server is restarted (are they?)). > So, if i create new beans i have to modify my Listener to be able to > comunicate with the new subscriber... Yes. > Please, am i in the correct way? You are. Cheers > > On Mon, 14 May 2001 [EMAIL PROTECTED] wrote: > > > Hi: > > I'm testing JBoss with MDB but i'm still lost about its > > utility... > > I'd like to write an application to manage a little > > "web-shop" using EJBs and MDBs as follows: > > > > * A java servlet who takes data from web application, i.e. > >the identifier of a client who wants to buy a book. > > > > * Before allowing this purchase i want to check if this client > >is not in my 'defaulter list'. > > > > * After this i'll be able to avoid/allow the purchase. > > > > Well, i though to do this: > > > > "The servlet takes data from web client and sends it to a Topic, > > then Topic sends data to a Checker Bean that runs a method > > called 'checkClient' wich look for this client in a 'defaulter' > database. > > If everything is ok, a 'true' value is returned to servlet" > > Sounds more like a Queue than a Topic to me. Queues are for point-to-point > messages and Topics are for Publisher/Subscriber (many receivers). > > > Is this a good way to pose my problem? > > I know its possible to develope *the same* without MDBs, but, > > is there any advantage on using MDBs? > > in other words, how can i take advantage of MDBs? > > I'm not sure what you are trying to do, but this is my take on what you > want. > > 0. MDB listens for messages on in queue > 1. serlvet sends message to in queue with whatever should be checked > 2. servlet waits for message on out queue > 3. MDB.onMessage() called > 4. MDB checks whatever > 5. MDB sends message (true or false) to out queue > 6. servlet receives message and proceeds > > > I'd say that the advantage of MDBs is that they can be called > asynchronously. What you want to do sound synchronous and while possible > to do it just adds a lot of overhead. A session bean is easier and faster. > > To me it seems as though MDBs are useful for triggering some action that > you don't want to hang around waiting for. For instance, you might want to > send an email with an order confirmation and personally I wouldn't want to > hang around in my "process order" session bean waiting for J
New: [JBoss-user] MDB...why?
(Excuse me if this e-mail appears twice) Thank you Per!! The origin of this confusion is a sample in JBoss Documentation, making more specific: example called "MDB as a Listener". How many "subscribers" appear in this example? I think a subscriber is 'Worker Bean', isn't it? Then, to have more than one subscriber i've to create other Beans similar (or not) to Worker Bean, haven't i? So, if i create new beans i have to modify my Listener to be able to comunicate with the new subscriber... Please, am i in the correct way? Thank you again! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ Per Lewau <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 14/05/2001 13:08 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] MDB...why? On Mon, 14 May 2001 [EMAIL PROTECTED] wrote: > Hi: > I'm testing JBoss with MDB but i'm still lost about its > utility... > I'd like to write an application to manage a little > "web-shop" using EJBs and MDBs as follows: > > * A java servlet who takes data from web application, i.e. >the identifier of a client who wants to buy a book. > > * Before allowing this purchase i want to check if this client >is not in my 'defaulter list'. > > * After this i'll be able to avoid/allow the purchase. > > Well, i though to do this: > > "The servlet takes data from web client and sends it to a Topic, > then Topic sends data to a Checker Bean that runs a method > called 'checkClient' wich look for this client in a 'defaulter' database. > If everything is ok, a 'true' value is returned to servlet" Sounds more like a Queue than a Topic to me. Queues are for point-to-point messages and Topics are for Publisher/Subscriber (many receivers). > Is this a good way to pose my problem? > I know its possible to develope *the same* without MDBs, but, > is there any advantage on using MDBs? > in other words, how can i take advantage of MDBs? I'm not sure what you are trying to do, but this is my take on what you want. 0. MDB listens for messages on in queue 1. serlvet sends message to in queue with whatever should be checked 2. servlet waits for message on out queue 3. MDB.onMessage() called 4. MDB checks whatever 5. MDB sends message (true or false) to out queue 6. servlet receives message and proceeds I'd say that the advantage of MDBs is that they can be called asynchronously. What you want to do sound synchronous and while possible to do it just adds a lot of overhead. A session bean is easier and faster. To me it seems as though MDBs are useful for triggering some action that you don't want to hang around waiting for. For instance, you might want to send an email with an order confirmation and personally I wouldn't want to hang around in my "process order" session bean waiting for JavaMail to finish (after all it is talking SMTP to a mail server somewhere) so I would simple put a message in a queue and let an MDB deal with the sending of emails. Regards, Per --- Per Lewau ([EMAIL PROTECTED]) "Why waste time learning, when ignorance is instantaneous?" - Hobbes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] MDB...why?
Thank you Per!! The origin of this confusion is a sample in JBoss Documentation, making more specific: example called "MDB as a Listener". How many "subscribers" appear in this example? I think a subscriber is 'Worker Bean', isn't it? Then, to have more than one subscriber i've to create other Beans similar (or not) to Worker Bean, haven't i? So, if i create new beans i have to modify my Listener to be able to comunicate with the new subscriber... Please, am i in the correct way? Thank you again! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ Per Lewau <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 14/05/2001 13:08 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] MDB...why? On Mon, 14 May 2001 [EMAIL PROTECTED] wrote: > Hi: > I'm testing JBoss with MDB but i'm still lost about its > utility... > I'd like to write an application to manage a little > "web-shop" using EJBs and MDBs as follows: > > * A java servlet who takes data from web application, i.e. >the identifier of a client who wants to buy a book. > > * Before allowing this purchase i want to check if this client >is not in my 'defaulter list'. > > * After this i'll be able to avoid/allow the purchase. > > Well, i though to do this: > > "The servlet takes data from web client and sends it to a Topic, > then Topic sends data to a Checker Bean that runs a method > called 'checkClient' wich look for this client in a 'defaulter' database. > If everything is ok, a 'true' value is returned to servlet" Sounds more like a Queue than a Topic to me. Queues are for point-to-point messages and Topics are for Publisher/Subscriber (many receivers). > Is this a good way to pose my problem? > I know its possible to develope *the same* without MDBs, but, > is there any advantage on using MDBs? > in other words, how can i take advantage of MDBs? I'm not sure what you are trying to do, but this is my take on what you want. 0. MDB listens for messages on in queue 1. serlvet sends message to in queue with whatever should be checked 2. servlet waits for message on out queue 3. MDB.onMessage() called 4. MDB checks whatever 5. MDB sends message (true or false) to out queue 6. servlet receives message and proceeds I'd say that the advantage of MDBs is that they can be called asynchronously. What you want to do sound synchronous and while possible to do it just adds a lot of overhead. A session bean is easier and faster. To me it seems as though MDBs are useful for triggering some action that you don't want to hang around waiting for. For instance, you might want to send an email with an order confirmation and personally I wouldn't want to hang around in my "process order" session bean waiting for JavaMail to finish (after all it is talking SMTP to a mail server somewhere) so I would simple put a message in a queue and let an MDB deal with the sending of emails. Regards, Per --- Per Lewau ([EMAIL PROTECTED]) "Why waste time learning, when ignorance is instantaneous?" - Hobbes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MDB...why?
Hi: I'm testing JBoss with MDB but i'm still lost about its utility... I'd like to write an application to manage a little "web-shop" using EJBs and MDBs as follows: * A java servlet who takes data from web application, i.e. the identifier of a client who wants to buy a book. * Before allowing this purchase i want to check if this client is not in my 'defaulter list'. * After this i'll be able to avoid/allow the purchase. Well, i though to do this: "The servlet takes data from web client and sends it to a Topic, then Topic sends data to a Checker Bean that runs a method called 'checkClient' wich look for this client in a 'defaulter' database. If everything is ok, a 'true' value is returned to servlet" Is this a good way to pose my problem? I know its possible to develope *the same* without MDBs, but, is there any advantage on using MDBs? in other words, how can i take advantage of MDBs? Excuse me if these questions sounds so 'simple' but i need a little help to understand MDB cause i'm really interested in learning everything about JBOSS. Thanks in advance! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> __ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample (The End)
>Well, whwre is the jndi.properties in that classpath? You tell me! I see >only jboss-client.jar:jbs.jar:jbosssx-client.jar. Do you have it in >jbs.jar? (sorry, it is 'jms.jar') >//Peter Hi Peter: I'm running the Main.class application from another PC in the net, so i prefer to add the location of InitialNamingContext in my Main.java as i wrote in message: "RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (At last!! :-)" Thank you very much, Peter! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __
RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )
Hi Eoin: Instead of TOPIC_FACTORY write this: "TopicConnectionFactory" ...Or, before 'main()' method you can write: static final String TOPIC_FACTORY= "TopicConnectionFactory"; Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ "Eoin Lane" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 24/04/01 13:34 Please respond to jboss-user To: <[EMAIL PROTECTED]> cc: Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : ) I'm working on this example also at the moment: here are the changes I have make, I changed the DurableTopicBean to MDB and the NoRequired to NotSupported. I have added the jndi.properties file to my path as suggested but I'm still getting the error of not being able to resolve the variable TOPIC_FACTORY Any clues Eoin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 24 April 2001 11:28 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : ) Chris wrote: >>This looks like an error in that you have not defined the jndi settings - do >>you have a jndi.properties file? >>It should be on your classpath of the client and look something like this; Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok! A pair of clues, in my 'ejb-jar.xml' file: * I have had problems with the tag: NotRequired is not recognized by the parser (it fails when i deploy the application): i have changed by Required * ...Moreover, can not label 'DurableTopicBean' the tag ... in section ''. The only way to deploy my bean is labeling as tag in the 'message-driver' section. More clues: To run my 'Main.class' file i do the following: java -classpath jboss-client.jar:jbs.jar:jbosssx-client.jar Main Thanks __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ "Kimpton,C (Chris)" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 24/04/01 10:23 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : ) Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > "javax.naming.NoInitialContextException: Need to specify class name in enviroment > or system property, or as an applet parameter, or in an application resource file: > java.naming.factory.initial java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming # HTH, Chris This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (At last!! :-)
Well, it seems solved :) In 'Main.java', method 'public static void main(String arg[])', before the 'try{ ... }' sentence we should write the following: System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); System.setProperty("java.naming.provider.url","localhost:1099"); I think there are more ways to do the same, but it works! Now i wonder: is the 'Main.java' a wrong file? or perhaps, did i forget any deployment file? __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 24/04/01 12:27 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : ) Chris wrote: >>This looks like an error in that you have not defined the jndi settings - do >>you have a jndi.properties file? >>It should be on your classpath of the client and look something like this; Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok! A pair of clues, in my 'ejb-jar.xml' file: * I have had problems with the tag: NotRequired is not recognized by the parser (it fails when i deploy the application): i have changed by Required * ...Moreover, can not label 'DurableTopicBean' the tag ... in section ''. The only way to deploy my bean is labeling as tag in the 'message-driver' section. More clues: To run my 'Main.class' file i do the following: java -classpath jboss-client.jar:jbs.jar:jbosssx-client.jar Main Thanks __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ "Kimpton,C (Chris)" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 24/04/01 10:23 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : ) Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > "javax.naming.NoInitialContextException: Need to specify class name in enviroment > or system property, or as an applet parameter, or in an application resource file: > java.naming.factory.initial java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming # HTH, Chris This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )
Chris wrote: >>This looks like an error in that you have not defined the jndi settings - do >>you have a jndi.properties file? >>It should be on your classpath of the client and look something like this; Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok! A pair of clues, in my 'ejb-jar.xml' file: * I have had problems with the tag: NotRequired is not recognized by the parser (it fails when i deploy the application): i have changed by Required * ...Moreover, can not label 'DurableTopicBean' the tag ... in section ''. The only way to deploy my bean is labeling as tag in the 'message-driver' section. More clues: To run my 'Main.class' file i do the following: java -classpath jboss-client.jar:jbs.jar:jbosssx-client.jar Main Thanks __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ "Kimpton,C (Chris)" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 24/04/01 10:23 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : ) Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > "javax.naming.NoInitialContextException: Need to specify class name in enviroment > or system property, or as an applet parameter, or in an application resource file: > java.naming.factory.initial java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming # HTH, Chris This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time :)
Thank you Peter!...now i can compile my java file but i'm still having problems to run this example: I suppose the 'TopicConnectionFactory' should be defined anywhere in the context...but, in which file? and, how it looks? When i try to run my compiled java file i get the following: "javax.naming.NoInitialContextException: Need to specify class name in enviroment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial ... (and other java messages) " I think it is dued to the line: ... TopicConnectionFactory tf = (TopicConnectionFactory) ctx.lookup("TopicConnectionFactory"); ... The JVM can't find this variable in the context, isn't it? Perhaps i need to define 'something' else in 'jboss.jcml'? Thanks a lot in advance! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 23/04/01 18:39 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject: Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample. On 23 Apr, [EMAIL PROTECTED] wrote: > Hello again: > > (JBoss Documentation, Chapter 7 "Writing Message Driven Bean") > > After deploying de MDB.class + META-INF i've began to > write the 'Main.java' application in order to send a stuff > to my bean. > The problem arrives when compiling this file, i get the following: > > Main.java:9: cannot resolve symbol > symbol: variable TOPIC_FACTORY > location: class Main > TopicConnectionFactory topicFactory = (TopicConnectionFactory) > context.lookup(TOPIC_FACTORY) > ^ > > 1 error > > what is 'TOPIC_FACTORY'? > > should this variable be declared anywhere? Yes. Typicaly a static final String, ie static final String TOPIC_FACTORY = "TopicConnectionFactory"; which I obviously missed to get when I ripped the example from some of my programs. Sorry. //Peter > > Thanks in advance! > > Regards: > _ > Jaume Soriano Sivera <[EMAIL PROTECTED]> > _ -- Peter Antman Technology in Media, Box 34105 100 26 Stockholm Systems Architect WWW: http://www.tim.se Email: [EMAIL PROTECTED] WWW: http://www.backsource.org Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] About TOPIC_FACTORY on MDB's sample.
Hello again: (JBoss Documentation, Chapter 7 "Writing Message Driven Bean") After deploying de MDB.class + META-INF i've began to write the 'Main.java' application in order to send a stuff to my bean. The problem arrives when compiling this file, i get the following: Main.java:9: cannot resolve symbol symbol: variable TOPIC_FACTORY location: class Main TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup(TOPIC_FACTORY) ^ 1 error what is 'TOPIC_FACTORY'? should this variable be declared anywhere? Thanks in advance! Regards: _ Jaume Soriano Sivera <[EMAIL PROTECTED]> _
[JBoss-user] Error compiling MDB.java
Hello everybody: Nowadays i'm beggining with MDB in JBoss and to undersand how to implement it in my applications i've copied the MDB.java example from the JBoss documentation (Writing Message Driven Beans section). When i try to compile this sample i get the following (these are part of the full message): /JBoss-2.2.1_Tomcat-3.2.1/jboss/test/bean/MDB.java:4:cannot resolve symbol : class MessageDrivenBean; ^ location: package ejb import javax.ejb.MessageDrivenContext; ^ ... and the same to package jbs and others. Have to indicate another 'jar' file in addition to 'ejb.jar' to compile this file? Using: JBoss 2.2.1 Java: JDK 1.3 O.S.: Linux RedHat 6.1 Thanks in advance. _ Jaume Soriano Sivera <[EMAIL PROTECTED]> _
Re: [JBoss-user] Problems with CD example
Ok! another solved mistery! ;-) ...it was only a question of time. The exception was due to a "little" bug in the scripts inside "cdEJB.zip" source code: We should add the 'jbosssx-client.jar' to 'run_list.sh', 'run_upload.sh' and 'run_lookup.sh'. Here you are the upgraded scripts (attached). Regards: Jaume (...y ahora me puedo ir tranquilo de vacaciones B:-D __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 12/04/01 14:07 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject: [JBoss-user] Problems with CD example Hello: I get the following java exception when i execute run_lookup.sh or run_upload.sh: Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) etc Any sugestion? Thanks! Regards: Jaume ___ run_upload.sh run_lookup.sh run_list.sh
[JBoss-user] Problems with CD example
Hello: I get the following java exception when i execute run_lookup.sh or run_upload.sh: Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) etc Any sugestion? Thanks! Regards: Jaume ___
Re: [JBoss-user] Interest Client Problems
Try this: java -classpath $CLASSPATH:$JBOSS_HOME/client/jboss-client.jar:$JBOSS_HOME/client/jbosssx-client.jar:. InterestClient * Note the ':.' after jbosssx-client.jar. * Replace my '$JBOSS_HOME' with your path to Jboss home and make sure you execute it at the same level of 'com' directory. (InterestClient will look for Interest and InterestHome in this path) *If you're trying to execute in a not-local-machine, first you must change the line 'localhost:1099' in your InterestClient.java to the appropiate URL. More information: http://www.jboss.org/documentation/HTML/index.html Regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ Mike Boniface <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 12/04/01 13:00 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: [JBoss-user] Interest Client Problems Hi, Having a few problems getting the InterestClient to work. I get the exception javax.naming.CommunicationException [Root exception is java.io.StreamCorruptedException:Type code out of range, is 125] Now I am aware that this is probably a classpath problem but I am unable to resolve which jar files are required by the client. I have tried all sorts of combinations of the jboss/client directory. Could somebody give me a list of jars that I should have in my classpath that works for this client. Thanks Mike Mike Boniface IT Innovation Centre 2 Venture Road Chilworth Science Park Southampton, SO16 7NP, UK tel: +44 23 8076 0834 fax: +44 23 8076 0833 mailto:[EMAIL PROTECTED] http://www.it-innovation.soton.ac.uk/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Database Doubts
(thank you very much, Ralph) Another questions: I wanna use MySQL database to store data with JBoss. I have followed all the steps on the on-line documentation to configure JDBC and a Pool and, at this point i wonder: * which is the 'database name' that i must indicate in URL attribute? * does this database be created in MySql before being referenced in here? * ...if it runs: * does JBoss create the appropiate tables in this DB? * what is being saved in this database? * is this the DB used to manage entity beans (CMP)? Thanks in advance! Regards: Jaume
[JBoss-user] About InterestClient and interest.jar files
Hello: Nowadays, to run the client Interest Client for the Interest application in a remote machine i have to include the interest.jar file (the same as the file deployed on the JBoss Machine) or the structure of directorys 'com/web_tomorrow/interest/*.class' ...i supose that's not the right way to do it due to the "inteterest.jar" should be ONLY in the 'deploy' directory on JBoss Machine, isn't it? Here goes my questions: why i cannot run the client without the interest.jar file? what do i forgot to configure? Thanks in advance: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __
Re: [JBoss-user] Can't run the sample 'InterestClient' :-(
Don't worry!! the problem is solved... i forget a (fucking) dot !! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __ [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/04/01 18:32 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject: [JBoss-user] Can't run the sample 'InterestClient' :-( Hi: JBoss is running!! Now... I've compiled the files InterestHome.java, Interest.java and InterestBean.java put in the appropiate dir, created the ejb-jar.xml file in 'META-INF' and packed with 'jar' (then i copy the jar file into 'deploy' dir, etc) Then i've compiled the client (InterestClient.java) but when i try to execute it (with 'java -classpath .. ') i get the following: Exception in thread "main" java.lang.NoClassDefFoundError: InterestClient anybody has encounttered a similar error? Thanks! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __
[JBoss-user] Can't run the sample 'InterestClient' :-(
Hi: JBoss is running!! Now... I've compiled the files InterestHome.java, Interest.java and InterestBean.java put in the appropiate dir, created the ejb-jar.xml file in 'META-INF' and packed with 'jar' (then i copy the jar file into 'deploy' dir, etc) Then i've compiled the client (InterestClient.java) but when i try to execute it (with 'java -classpath .. ') i get the following: Exception in thread "main" java.lang.NoClassDefFoundError: InterestClient anybody has encounttered a similar error? Thanks! __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __
Re: [JBoss-user] Problem with embedded Tomcat
Thanks Chris: you are right...it was a tomcat version problem! I'm executing Jboss correctly now. __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __
[JBoss-user] Problem with embedded Tomcat
Hello everybody: I've followed every step in your 'chapter10. howto' section to configure Tomcat with JBoss. When i run the script 'run.sh' i get the following error: [Service Control] Could not start DefaultDomain:service=EmbeddedTomcat [Service Control] java.lang.NoClassDefFoundError: org/apache/tomcat/util/xml/XmlAction (...) ...Well, JBoss starts correctly, i can view the page on 'http://localhost:8082' about JBoss. But i can't view the tomcat welcome page on 'http://localhost:8080' nor my contexts published in /tomcat/webapps. I have read about similar problems in the 'archive' of this mail-list and i've done the recommendations (i.e., i execute "export CLASSPATH=" before running 'run.sh') but it doesn't run. Any suggestion?? Thanks in advance, regards: __ Jaume Soriano Sivera <[EMAIL PROTECTED]> Tel: 96504 -ext. 44744 Fax: 965040047 Portal y servicios multimedia - Nuevas tecnologias W a n a d o o E s p a n a - http://www.wanadoo.es __