[JBoss-user] JMS app as service

2002-12-10 Thread Matthew Van Horn
I am very new to JMS and JBoss, but I would like to learn more. I am trying to create a web application running in JBoss that does some searching of xml databases for persons in my company. The problem I am up against is that these searches can take a long time (10-20 minutes) due to the fact th

Re: [JBoss-user] deploymentexception

2002-12-10 Thread Alex Loubyansky
Sunday, December 08, 2002, 8:29:10 PM, you wrote: S> Hi, S> I keep getting the following error when deploying some beans: S> 19:26:54,825 WARN [ServiceController] Problem starting service S> jboss.j2ee:jndiName=eenloketsysteem.entitybeans/Persoon/Home,service=EJB S> org.jboss.deployment.Deploym

[JBoss-user] Connectionfactory

2002-12-10 Thread Madhu
can we specify the ConnectionfacoryName in the servise.xml file? if yes, How to specify the Connectionfactory name in the own servise.xml file? thanks in advance Thanks&Regards~A.Madhu Sudhan    M.Tech,MIGS, (M.S)Software Engineer~~~

RE: [JBoss-user] Re: Testing EJB's

2002-12-10 Thread Bill Burke
This is one of the things I've been pushing for awhile. To extract the basics of our testsuite into a downloadable library as well as provide ant templates and documentation so that others can use this stuff. I have already identified the files that should be extracted. Anybody care to document

[JBoss-user] JMX, RMI Client

2002-12-10 Thread Stefan Groschupf
Hi all, I want to access a remote jboss JMX server via RMI. I try to connect to the remote server, as described in Juha's book page 271. But looks like the jboss-jmx package hasn't a ConnectorFactory class. So I had tried to use the ConnectorFactoryImpl. But strange here the "createConnector("RMI",

Re: [JBoss-user] Re: Testing EJB's

2002-12-10 Thread Dain Sundstrom
The exact same thing has existed in JBoss for a long time and is called JUnitEJB... I really think it should be converted to be an MBean instead, but that is another story. -dain On Tuesday, December 10, 2002, at 05:00 PM, SPam wrote: Dain, your are right its a good approach to test EJB tier

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Stephen Coy
Hi, We're running straight JBoss 3.0x/Jetty in production, with squid running in web-accelerator mode in front of it. So, out static content is (mostly) delivered by the squid cache, and all dynamic requests passed through to Jetty. Steve Coy On Tuesday, December 10, 2002, at 11:10 PM, Victor

[JBoss-user] Re: Testing EJB's

2002-12-10 Thread SPam
Dain, your are right its a good approach to test EJB tier to have test run inside the container. Jim, There are interesting things in JBoss source, and there is also a demoniac Junit extensions called ServerTestCase which uses as a custom test runner a simple stateless (remote) EJB which runs your

Re: [JBoss-user] Testing EJB's

2002-12-10 Thread marius
On Tue, Dec 10, 2002 at 03:23:31PM -0500, Jim Crossley wrote: > The app I'm currently working on is very CRUD-ish; it does simple > read/write maintenance on a bunch of related objects. I don't want the > web tier to access the Entity beans directly -- this would violate the > transactional req

Re: [JBoss-user] Testing EJB's

2002-12-10 Thread marius
On Tue, Dec 10, 2002 at 02:32:17PM -0600, Dain Sundstrom wrote: > Jim, > > How do you think we test JBoss? Take a look at the CMP tests in the > testsuite. We have an addon to JUnit that can deploy and undeploy > applications. Also we have a tool that can run the tests on the server > side

Re: [JBoss-user] yet HttpSession problems (Was:Anyone succesfullyusing session clusters?)

2002-12-10 Thread Jules Gosnell
Jules Gosnell wrote: Joao, I'm sure I checked this fix in - maybe it is on another branch - I will have a look tonight. Apart from this fix, ar you experiencing any other problems ? Jules The fix is in Branch_3_0 now. Jules Joao Pedro Clemente wrote: Hello, Which HTTP Session imple

Re: [JBoss-user] yet HttpSession problems (Was:Anyone succesfullyusing session clusters?)

2002-12-10 Thread João Clemente
> Apart from this fix, ar you experiencing any other problems ? well, yes, but still haven't understood it correctly, and I'm not sure if it's Jetty or cluster related. For instance: During the afternoon, after applying the fix, I tested like this: (server A and server B) Did some requets to A

[JBoss-user] (no subject)

2002-12-10 Thread Rolando Morejon
confirm 956589MSN. Más Útil Cada Día Haz clic aquí --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___

RE: [JBoss-user] Testing EJB's

2002-12-10 Thread Demyanovich, Craig - Apogent
Jim, I've never written a web app. If I planned to write one, I would do my best to separate the user interface parts from the business logic parts from the persistence layer parts. I know that it may not be entirely possible to achieve a complete separation of layers, but we should strive to do

RE: [JBoss-user] Testing EJB's

2002-12-10 Thread Demyanovich, Craig - Apogent
Igor, I'm not sure whether I consider the problem that you describe as one for unit tests, at least not for me and not now. I'll have to think about it more when I'm doing EJB work again. So far, the Session Beans that I've coded have not suffered from this problem, somewhat to my surprise: I d

Re: [JBoss-user] Testing EJB's

2002-12-10 Thread Dain Sundstrom
Jim, How do you think we test JBoss? Take a look at the CMP tests in the testsuite. We have an addon to JUnit that can deploy and undeploy applications. Also we have a tool that can run the tests on the server side like (I wrote this to test local interfaces), but does not require a servlet

Re: [JBoss-user] Testing EJB's

2002-12-10 Thread Jim Crossley
These are good points, and I appreciate yours and others' prompt replies. However, the solutions presented so far seem to force me to complicate my object model to facilitate testing. I agree that an app that is difficult to test probably suffers from poor design, but web apps by their very na

Re: [JBoss-user] Testing EJB's

2002-12-10 Thread Igor Fedorenko
This aproach does not test deployment descriptors. I've had quite a few problems with missing ejb-ref, resource-ref, etc. What is especially bad is that you do not know if your deployment descriptor has a problem until you actually try to execute line of code that uses missing resource. Demyano

RE: [JBoss-user] Testing EJB's

2002-12-10 Thread Demyanovich, Craig - Apogent
Jim, I currently do not unit test either Entity or Session Beans. Entity Beans are trivial to write, and I trust that the application server will persist them as advertised. To unit test Session Beans would require that they be deployed. Since deployment complicates unit testing and complicated

[JBoss-user] JBoss CMP/Sybase limitation

2002-12-10 Thread Robert Martin
Hi - Sybase ASE has a limitation of 250 ANDs/ORs in a select. It also has a limitation of 250 elements inside of an IN. We've encountered a problem with the way that JBoss CMP pulls large sets of data from the database because of this limitation. CMP engine first pulls all of the primary keys

RE: [JBoss-user] Testing EJB's

2002-12-10 Thread Robert Martin
Hi - Not sure if I completely understand your question, but we use JUnitEE, which runs as a servlet inside the container. It invokes your unit tests and displays the results in HTML format. Very nice. Personally, we always run tests on the remote interfaces of our EJBs so that we can test the

[JBoss-user] Thanks!

2002-12-10 Thread mika
You don't mean it :)).. Hi again I am so sorry for not replying sooner it seems that, one of my emails seemed to have gone astray, so I thought I would reply hoping that you would still remember who I am :)) If by some chance you have changed your email, I guess I would have lost an opportuni

Re: [JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Horia Muntean
Lennart Petersson wrote: JBoss 2.4.x Why does findByPrimaryKey() always result in a 'select count()'-query on the database? Is it really needed due to the spec? I mean, I've told the app server (by using commit option A) that no one else but the app server is touching the database. So...

RE: [JBoss-user] Testing EJB's

2002-12-10 Thread Herve Tchepannou
Title: RE: [JBoss-user] Testing EJB's My advice will be to expose the remote interface of the component, so that you can test is with standard JUnit test cases. Its easy and you test framework is simple. But, you have to deploy your component to JBoss -Original Message- From: Jim Cro

RE: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread LaBanca, Rick
A good example of how nice it would be to instead have the spec allow you to just have bean def as usual... , which vendors could tie to mbeans if that's what they wanted. That was my point of the original thread, the simplicity and portability that the spec could accommodate. > -Original M

RE: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread Eric Kaplan
Thanks Benjamin. That's extremely helpful. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geer, Benjamin Sent: Tuesday, December 10, 2002 11:24 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] J2ee spec thoughts Eric Kaplan wrote: >

[JBoss-user] Testing EJB's

2002-12-10 Thread Jim Crossley
What's the current best practice for unit testing EJB's, (both Entity and Session)? I'm trying to avoid having to deploy them to a separate JBoss instance to test them. More precisely, I want to be able to deploy them to an in-memory container, if possible, similar to Hypersonic's in-memory d

[JBoss-user] Re: XA Resource.

2002-12-10 Thread Igor Fedorenko
Sachin, You have to get datasource from j2ee server using jndi lookup to get xa behaviour. Sachin Rohamare wrote: Hi, I am using JBosss-3.0.0 . I am using StatelessSession beans. I am using directly below code. com.microsoft.jdbcx.sqlserver.SQLServerDataSource l_sqlServerDS = new com.mic

Re: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread David Jencks
I guess we weren't looking to provide you with easy-to-use-now solutions :-)) You should be able to isolate the tx in the mbean by writing your own "tx interceptor" code in your mbean: /** * @jmx.managed-operation */ public object doSomething(Object data) throws Exception { Transaction tx = n

Re: [JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Dain Sundstrom
CMP checks the cache before executing a findByPrimaryKey query. If it is not checking the cache first it is a bug. All other queries go directly to the database, because we don't have an in memory query engine. -dain On Tuesday, December 10, 2002, at 07:55 AM, Sacha Labourey wrote: That is

RE: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread Geer, Benjamin
Eric Kaplan wrote: > What's my best resource for understanding how to turn this > thing into an mbean and then have the mbean accessed via slsb's? One easy approach: 1. Write an MBean interface for your component, extending org.jboss.system.ServiceMBean. 2. Write the implementation of your MBean

Re: [JBoss-user] ServiceLocator pattern and the connection pool in JBoss

2002-12-10 Thread Andreas Mecky
Hi Tom, if you look inside the "J2EE design patterns applied" then they use a Singleton and caching (with a Hashtable) as well for EJBs. They also use JMS-qeues and DB-connections (also cached in Hashtables) in their implementation of the SL. - Original Message - From: "Tom Coleman" <[EMA

Re: [JBoss-user] EJB Commit Option A Cache Question

2002-12-10 Thread Hunter Hillegas
Now that I look closer, it does look like it is just loading PKs. Thanks for helping me see that. -H > From: Stephen Coy <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Tue, 10 Dec 2002 14:34:15 +1100 > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] EJB Commit Option A Cache Questio

Re: [JBoss-user] ServiceLocator pattern and the connection pool in JBoss

2002-12-10 Thread Tom Coleman
The ServiceLocator pattern is interesting and can probably prove useful in complex applications, but I think that's where the decision to implement it belongs, in the application. Incidently, if you review Sun's code, there are two flavors of ServiceLocator (SL) - one for the Web tier, the oth

Re: [JBoss-user] ServiceLocator pattern and the connection pool in JBoss

2002-12-10 Thread Andreas Mecky
I agree with your comments. That's why I have posted this. Maybe I was not specific enough about the pooling. Inside my SL I can simply grab a datasource from JNDI and send it back to caller. There is no problem and I am using the connection pool in the right way (all your complaints are 100% corr

RE: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread Eric Kaplan
Thanks Benjamin. The bit about threading was actually a rhetorical question. What's my best resource for understanding how to turn this thing into an mbean and then have the mbean accessed via slsb's? Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On

Re: [JBoss-user] Startup Ordering problem with 4.0 Alpha

2002-12-10 Thread rickmacc
Sorry for the delayed response. We've not been able to get the dependency timing to work out. The queues start up and try to connect to hypersonic before hypersonic is ready. Even though there are dependencies set up in all of the queue entries, they don't seem to respect whether or not the Hyperso

[JBoss-user] Locating the db directory

2002-12-10 Thread Norrman Per
Hi, For Jboss 3.0.1, I've noticed that the system property jboss.server.data.dir is updated with the absolute path to the server/xxx/db directory. Is this the 'official' method for locating this directory, or is there another way? /tia Per Norrman ###

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Jules Gosnell
Andreas Mecky wrote: Hello Joao, I think that David Ward has given some more reasons why to use an apache webserver. Even if the content is dynamic it can still contain images. Take yahoo.com as an example. The have special webservers that only deliver the images (you can see this when you look

RE: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread Geer, Benjamin
Eric Kaplan wrote: > It spawns threads, so can it be in the ejb tier? No, that would violate the EJB spec. I suggest you turn it into an MBean. This has nothing to do with the J2EE spec, but it works wonderfully in JBoss. We're porting one of our applications, which has previously run as a stan

Re: [JBoss-user] ServiceLocator pattern and the connection pool in JBoss

2002-12-10 Thread David Jencks
Personally I think this pattern is slightly silly. However, AFAIK, you should be looking up datasources from your SL not connections, or at least getting connections from a ds whenever you ask for one. This should work. If it doesn't please provide details. Caching connections themselves wont w

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Andreas Mecky
Hello Joao, I think that David Ward has given some more reasons why to use an apache webserver. Even if the content is dynamic it can still contain images. Take yahoo.com as an example. The have special webservers that only deliver the images (you can see this when you look at the source code of

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Joao Pedro Clemente
Andreas, please explain a little bit better where will we get more performance. I can be (and surely am) wrong in my reasoning, but the original message says explicitly "ONLY dynamic applications". So, you say apache should be used to serve images/html... as far as I know, that is static content.

[JBoss-user] JBoss 3.0.2/Tomcat 4.1.12 JasperException

2002-12-10 Thread Marcelino Cruz
I erroneously posted this message under the subject >>Re: [JBoss-user] J2ee spec thoughts<<. I'm new to this list and I just "replied-all" to one of the messages I received without changing the subject. My apologies. Now if some kind soul that is familiar with my situation would provide some hin

RE: [JBoss-user] JNDIView and Hypersonic manager in 3.2.0b2/jetty?

2002-12-10 Thread Rupp,Heiko
David, > I thought this changed before 3.2 existed... > > Try > ...:8080/jmx-console Sorry, I was not clear / omitted this ... I am using the 8080/jmx-console now (the colored one as opposed to the "text-only on port 8082) and that is where I don't get the expected behaviour. I meanwhile downlo

Re: [JBoss-user] yet HttpSession problems (Was:Anyone succesfully using session clusters?)

2002-12-10 Thread Jules Gosnell
Joao, I'm sure I checked this fix in - maybe it is on another branch - I will have a look tonight. Apart from this fix, ar you experiencing any other problems ? Jules Joao Pedro Clemente wrote: Hello, Which HTTP Session implementation do you use? hmmm... the default one? Jetty? From to

RE: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread Eric Kaplan
In a similar manner, I have to cache some data that is both physically large and expensive to compute. In my case, the data is refreshed on events in the system. In addition, as changes occur to this singleton, they must be broadcast out to the users (they can't poll). In addition, this singleto

Re: [JBoss-user] JNDIView and Hypersonic manager in 3.2.0b2/jetty?

2002-12-10 Thread David Jencks
I thought this changed before 3.2 existed... Try ...:8080/jmx-console david jencks On 2002.12.10 04:24:47 -0500 "Rupp,Heiko" wrote: > Hi, > > In 3.2.0beta I had the jmx-console at Port 8082 and was > able to see the jndi "listing" from the console as well as > to start the hypersonic manager f

RE: [JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Sacha Labourey
That is really really strange and should be changed IMO. Dain, is that a side effect of another behaviour or is that really the wanted behaviour. I suspect that this behaviour is inherited from the "single-pk finders" behaviour that must go to the db anyway. Is that also the case when you simply h

RE: [JBoss-user] TopicConnectionFactory names in the XML files

2002-12-10 Thread Brandon, Raymond
Hi,   You need to take a look at the file \server\default\deploy\jbossmq-destinations-service.xml In this file all destinations for topic/queues are defined via MBeans. You can create your own <...>-service.xml file in which you define your own destinations and deploy it by copying/moving t

Re: [JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Lennart Petersson
sorry for repeated message :) /L --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge

AW: [JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Meyer-Willner, Bernhard
JBoss 3.x is doing the same, that is doing a SELECT COUNT before the actual SELECT for findByPrimaryKey. My question also is: is this intended behavior? -Ursprüngliche Nachricht- Von: Lennart Petersson [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 10. Dezember 2002 14:11 An: [EMAIL PROTE

[JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Lennart Petersson
JBoss 2.4.x Why does findByPrimaryKey() always result in a 'select count()'-query on the database? Is it really needed due to the spec? I mean, I've told the app server (by using commit option A) that no one else but the app server is touching the database. So... if the app server has an e

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread David Ward
Joao Pedro Clemente wrote: Hello! I am using JBoss with bundled Tomcat. The server which I am running applications will only have dynamic applications (servlets or servlets + EJBs). On this case should I use the apache web server, or can I use Tomcat to answer to HTTP reque

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Andreas Mecky
Hi, you should use apache in front of your system. In this case apache can serve all your images/html pages and so on. This means you get a performance increase. Sorry Joao, but your mail was absolutely wrong and it is definitely the other way round :) >From my personal experience I can say that

RE: [JBoss-user] yet HttpSession problems (Was:Anyone succesfullyusing session clusters?)

2002-12-10 Thread Joao Pedro Clemente
> Hello, > > Which HTTP Session implementation do you use? hmmm... the default one? Jetty? From todays CVS (jboss-3.0, branch_3_0) A quick notice: Jboss is unable to sync sessions, as Rick LaBanca already pointed out and also sugested a fix: This would be the cenario: A starts and replyes to a

Re: [JBoss-user] JBoss site down???

2002-12-10 Thread Lennart Petersson
no, I don't know whats up - but goood what I long for the forums (that I actually hates :) /Lennart tisdagen den 10 december 2002 kl 13.28 skrev Brandon, Raymond: Hi all,   I've been unable to connect to the JBoss site all day. Does anybody have any information on what's going on with

[JBoss-user] Another Commit Option A Cache Question :)

2002-12-10 Thread Lennart Petersson
JBoss 2.4.x Why does findByPrimaryKey() always result in a 'select count()'-query on the database? Is it really needed due to the spec? I mean, I've told the app server (by using commit option A) that no one else but the app server is touching the database. So... if the app server has an e

[JBoss-user] TopicConnectionFactory names in the XML files

2002-12-10 Thread Madhu
Hi, I am using jboss-3.0.0_tomcat-4.0.3 and i am trying to run MessageDriven Beans, but I don't know where to specify the Topic/Queue names and TopicConnectionFactory names in the XML files in jboss2.4.0  we can specify in jboss.jcml and jbossmq.xml but in jboss3.0.0 where we have to mention

Re: [JBoss-user] J2ee spec thoughts

2002-12-10 Thread Marcelino Cruz
I just downloaded and unzipped JBoss 3.0.2 w/Tomcat 4.1.12. Trying to access the admin console I get the error below. Is this a JBoss or a Tomcat error? How can I fix it? --- HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encou

Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Joao Pedro Clemente
> Hello! > I am using JBoss with bundled Tomcat. The server which I > am running applications will only have dynamic applications (servlets or > servlets + EJBs). > On this case should I use the apache web server, or can I > use Tomcat to answer to HTTP requests directly?

[JBoss-user] ServiceLocator pattern and the connection pool in JBoss

2002-12-10 Thread Andreas Mecky
Hi to the jboss users Some time ago I came across the ServiceLocator pattern as a J2EE design pattern. The pattern says that you can use it to manage your resources like the local or remote interfaces of your EJBs. It is implemented as a Singleton and should cache your instances. Actually the patt

Re: [JBoss-user] ejbql and date comparison

2002-12-10 Thread kiuma
As u said the possibilities are '=', '>', '<' and '<>' no '<=' nor '>=' So u have to split your query to abtain a '<=' regards, kiuma Spam ha scritto: Hi, I have a CMP finder with ejbql wich has to have a WHERE criteria based on date comparison (see below) I need to use "superior OR equals

[JBoss-user] JBoss site down???

2002-12-10 Thread Brandon, Raymond
Hi all,   I've been unable to connect to the JBoss site all day. Does anybody have any information on what's going on with the site?   Thanks,   Raymond -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you

[JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread Victor Batista
Hello!     I am using JBoss  with bundled Tomcat.  The server which I am running applications will only have dynamic applications (servlets or servlets + EJBs).     On this case should I use the apache web server, or can I use Tomcat to answer to HTTP requests directly?  

[JBoss-user] ejbql and date comparison

2002-12-10 Thread Spam
Hi, I have a CMP finder with ejbql wich has to have a WHERE criteria based on date comparison (see below) I need to use "superior OR equals" operator (>=) and not just "strictly superior" (>). When I try to deploy, It fails saying JBoss could not parse EJB-QL because of the ">=" (see below) I look

[JBoss-user] Really was that me?

2002-12-10 Thread mie
Hello !.. think you replied to my personal ad! Yes I do get a lot of responses but you got me curious I haven't done this in a while so please forgive my nervousness. And I hope your still around, (the good people always get taken fast) Anyway since I know a "little" about you :) (that was cute by

[JBoss-user] JNDIView and Hypersonic manager in 3.2.0b2/jetty?

2002-12-10 Thread Rupp,Heiko
Hi, In 3.2.0beta I had the jmx-console at Port 8082 and was able to see the jndi "listing" from the console as well as to start the hypersonic manager from the jmx-console. This is on Win2k with jdk1.3.1. Does anyone have an idea, where I have to look or what has changed between beta and beta2? T

RE: [JBoss-user] yet HttpSession problems (Was:Anyone succesfully using session clusters?)

2002-12-10 Thread Sacha Labourey
Hello, Which HTTP Session implementation do you use? As for the locked instance, can you provide a thread stack dump (CTRL+BREAK) when it hangs? Cheers, sacha > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Joao Pedro > Clemente > Envoye : lund