Re: [JBoss-user] JBoss 2.2.2

2001-08-06 Thread Per Lewau


On Mon, 6 Aug 2001, storck wrote:

 Hi,
 
 the only thing I have done till now is to deploy the InterestBean from the
 demos of JBoss. The deploying seem to work cause JBoss wrote that it is
 deploying interest.jar
 Now I have tried to access that bean with the following client. The
 JNDI -Name of my bean is Interest
 
 public static void main(java.lang.String[] args) {
   // Insert code to start the application here.
   try {
   Properties p = System.getProperties();
   p.put(Context.INITIAL_CONTEXT_FACTORY,
 org.jnp.interfaces.NamingContextFactory);
   p.put(Context.PROVIDER_URL, localhost:1099);
   p.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces);
   InitialContext jndiContext = new InitialContext(p);
   System.out.println(Got context);
 
   // Get a reference to the Interest Bean
   Object ref = jndiContext.lookup(Interest);
   System.out.println(Got reference);
   } catch (Exception e) {
   e.printStackTrace();
   }
 }
 
 If I run that client I get the following exception:
 
 javax.naming.CommunicationException.  Root exception is
 java.io.StreamCorruptedException: Type code out of range, is 125

My guess is that the client and server is not running the same Java
version. I know that if you've got a 1.2 client and a 1.3 server you get
this exception. There is some system property you can set to get the 1.3
VM to run as 1.2. Search the archive for, it's in there somewhere.

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



Re: [JBoss-user] JBOSS INTEREST EXAMPLE

2001-07-31 Thread Per Lewau


On Mon, 30 Jul 2001, A.L. wrote:

 I have been trying to run the JBOSS interest example,
 and ahve followed the advise of a few peopl who had at
 one point experience dtbhe same problem. 
 Unfortunately, I am still unable to run the servlet
 for the interest example.  When going to the
 .../interest/home.html page and pushing the Calculate
 button I get the error printed at the end of my email:
 
 I have tried everything, but don't exactly understand
 the error, to know how to debug the problem.  Could
 someone explain to me what is going on, and what this
 error means.  Perhaps then I will be able to run the
 servlet.
   
 Thanks to those who have already tried to help solve
 my problem, and to anyone who will give me any new
 advice.
 
 Thanks,
 -Amos
 
 HERE is the error I am receiving.
 
 
 Error: 500
 Location: /interest/InterestServlet
 Internal Servlet Error:
 
 javax.servlet.ServletException: Failed to lookup
 java:comp/env/ejb/Interest
   at
 org.jboss.docs.interest.InterestServlet.init(InterestServlet.java:45)

It looks like the JNDI lookup fails. You have to bind the Interest EJB
into your servlet's java: domain.

Add the following to your jboss-web.xml:

ejb-ref
ejb-ref-nameejb/Interest/ejb-ref-name
jndi-nameInterestJNDIname/jndi-name
/ejb-ref

See Chapter 6 in the JBoss docs.


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



Re: [JBoss-user] NoSuchMethodError when trying to access EJB fromtomcat

2001-07-31 Thread Per Lewau


On Tue, 31 Jul 2001, Ludovic Orban wrote:

 
 
 I'm hitting this strange problem:
 
 java.lang.NoSuchMethodError
   at
 com.cisco.nm.lorban.servlet.InventoryServlet.doPost(com/cisco/nm/lorban/ser
 vlet/InventoryServlet.java:95)

From the javadoc:

   public class NoSuchMethodError
   extends IncompatibleClassChangeError

   Thrown if an application tries to call a specified method of a class
(either static or instance), and that class no
   longer has a definition of that method.

   Normally, this error is caught by the compiler; this error can only
occur at run time if the definition of a class has
   incompatibly changed.
---

Are you sure that your war file contains the right version of the compiled
class?


Regards


---
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



Re: [JBoss-user] (no subject)

2001-07-26 Thread Per Lewau


On Wed, 25 Jul 2001, Daniel Haynes wrote:

 Hi,
 
 This may be a dumb question as I am kind of new to JBoss.
 The verifier can't seem to find a class used within an EJB, despite the fact
 that the ejb jar does contain this class. The jar is sitting in the deploy
 directory, and is packaged - com/seyes/casino/control/event/CasinoEvent
 
 The error message is below.
 
 Does this ring any bells with anyone or am I just being stupid.
 
 cheers
 
 Daniel
 

Convince us that your jar file contains the class in question. Please do:
jar tvf E:\applications\JBoss-2.2.2_Tomcat-3.2.2\jboss\deploy\casino.jar




 [Auto deploy] Auto deploy of
 file:/E:/applications/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/casino.jar
 [J2EE Deployer Default] Deploy J2EE application:
 file:/E:/applications/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/
 asino.jar
 [J2EE Deployer Default] Create application casino.jar
 [J2EE Deployer Default] install module casino.jar
 [Container factory]
 Deploying:file:/E:/applications/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/De
 fault/casino.
 ar
 [Verifier] Verifying
 file:/E:/applications/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/casi
 no.jar/ejb10
 2.jar
 [Verifier] java.lang.NoClassDefFoundError:
 com/seyes/casino/control/event/CasinoEvent
[SNIP]

---
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



RE: [JBoss-user] can you explain these verification errors?

2001-07-26 Thread Per Lewau


On Thu, 26 Jul 2001, Paul  Austin wrote:

 Mike,
 
 If you look at PromotioBean it does not have the
 java.rmi.RemoteException in the throws clause.

And so it shouldn't have. As of EJB 1.1 the implementation of the business
methods should not raise RemoteException. RemoteException is what the
client gets when a RuntimeException is raised in a business method.

Mike, are com.cortexeb.util.exception.FieldNullException or
com.cortexeb.ejb.promo.IllegalPromotionStateException RemoteExceptions?


 
 Paul
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Mike
 Williams
 Sent: 26 July 2001 09:12
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] can you explain these verification errors?
 
 
 JBoss is throwing up verification errors for my EJBs, but I'm not sure
 why.  Here's an example error:
 
[Verifier] 
Bean   : Promotion
Method : public abstract void setAllProductFlag(Boolean) throws
 RemoteException, FieldNullException, IllegalPromotionStateException
Section: 9.2.7
Warning: All the exceptions defined in the throws clause of a
 matching method in the entity bean's class must be defined in the throws
 clause of the method of the remote interface.
 
 However, as far as I can see, they are:
 
 +--- PromotionBean ---
 | public void setAllProductFlag(java.lang.Boolean) 
 | throws com.cortexeb.util.exception.FieldNullException, 
 |com.cortexeb.ejb.promo.IllegalPromotionStateException;
 
 +--- Promotion ---
 | public abstract void setAllProductFlag(java.lang.Boolean) 
 | throws java.rmi.RemoteException, 
 |com.cortexeb.util.exception.FieldNullException, 
 |com.cortexeb.ejb.promo.IllegalPromotionStateException;
 
 What am I doing wrong?
 
 -- 
 Mike
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

---
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] (no subject)

2001-07-25 Thread Per Lewau

Subject: Re: [JBoss-user] Problem with connecting to an Oracle database
In-Reply-To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.5
Precedence: bulk
Reply-To: [EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]?subject=help
List-Post: mailto:[EMAIL PROTECTED]
List-Subscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user,
mailto:[EMAIL PROTECTED]?subject=subscribe
List-Id: The JBoss User main mailing list jboss-user.lists.sourceforge.net
List-Unsubscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user,
mailto:[EMAIL PROTECTED]?subject=unsubscribe
List-Archive: http://lists.sourceforge.net/archives//jboss-user/
Date: Mon, 23 Jul 2001 13:04:50 +0200 (MET DST)


On Mon, 23 Jul 2001, Eli Gjørven wrote:

 
 There is probably a solution to this problem to be found in the archives
 at sourceforge, but the search service has unfortunately not been
 available when I have tried to use it.

The archive at Sourceforge doesn't work. Use the one you find at
http://jboss.org.

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



Re: [JBoss-user] Problem with connecting to an Oracle database

2001-07-23 Thread Per Lewau


On Mon, 23 Jul 2001, Eli Gjørven wrote:

 
 There is probably a solution to this problem to be found in the archives
 at sourceforge, but the search service has unfortunately not been
 available when I have tried to use it.

The archive at Sourceforge doesn't work. Use the one you find at
http://jboss.org.

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



RE: [JBoss-user] JBoss Shutdown - On its own??

2001-07-21 Thread Per Lewau


On Fri, 20 Jul 2001, Lex wrote:

 No such luck - we always start it with the run.sh which runs it in the background.  
Good thought though.

When the shell dies it send SIGHUP to all its children. Regardless if
they're run in the background or not. To prevent that from happening, use
the nohup(1) command.

Example:

$ nohup ./run.sh 

  Maybe you logged in, started JBoss in the foreground, then logged
 
  out?
 
  ---
 
  Michael R. Maraya
 
  --
 
  From: Lex[SMTP:[EMAIL PROTECTED]]
 
  Reply To: [EMAIL PROTECTED]
 
  Sent: Friday, July 20, 2001 9:03 AM
 
  To: [EMAIL PROTECTED]
 
  Subject: [JBoss-user] JBoss Shutdown - On its own??
 
 
 
 
 
  What could cause JBoss to initiate a Shutdown on its own??
 
 
 
 We have JBoss 2.4 Beta (2_4_0_6) on RedHat 7.0 JRE 1.3.03 an it appears to
 
 shut down on its own for no apparent reason. I see in the log it is as if
 
 some issuesd a shutdown on the server (but this is not the case). This is
 
 very strange - any ideas??
 
 
 
 
 
 

---
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



Re: [JBoss-user] jms queue not bound, urgent..

2001-06-22 Thread Per Lewau


On Thu, 21 Jun 2001, Prabhakar Ram wrote:

Here's an educated guess...Queues are bound under queue/specified queue
name in JNDI. Look it up using queue/bizEventQueue instead.


 Hi,
 
 I'm testing mesage driven beans in jboss-2.2.2. I'm getting the error..
 
 [Container factory] Serious error in init: javax.naming.NameNotFoundException: 
 bizEventQueue not bound
 [Container factory] java.lang.Exception: javax.naming.NameNotFoundException: biz
 EventQueue not bound
 [Container factory] at org.jboss.ejb.MessageDrivenContainer.init(MessageDriv
 
  I'm able to deploy successfully the MDB on Jboss-2.2.1.
 
 But I need to use Jboss-2.2.2 with tomcat..
 pls help...
 
 Vidya
 
 

---
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



Re: [JBoss-user] jsp only

2001-06-22 Thread Per Lewau


On Fri, 22 Jun 2001, Richard Bottoms wrote:

 Can someone do a simple JSP only app deployed using an .EAR file. I want to
 deploy an .EAR file with only JSP pages in it, no calls to EJB's or page
 redirects.

Just create an ear file with only web modules. An Enterprise ARchive does
not have to contain EJB jars. The JSPs must be packed in Web ARchives
though. The application.xml file could look something like the one below.

application
 module
  web
   web-uriMyJSPs.war/web-uri
   context-rootSomeContextRoot/context-root
  /web
 /module
/application

---
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



Re: [JBoss-user] NullPointerException

2001-06-13 Thread Per Lewau


On Wed, 13 Jun 2001, Christof Lehmann wrote:

 Hello,
 
 During deploying a stateful session bean in jboss final 2.0 , I get a
 NullPointerException. It seems to be outside of the bean code. Has
 anybody an idea?

It's probably caused by a message being sent to an object reference whose
value is null. ;)

Seriously though, include stack traces, source code and some more context
as necessary and someone will most likely have an idea.

Oh, and perhaps you should try a newer version of jboss. 2.0 is
ancient.

---
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



Re: [JBoss-user] Unable to call an EJB from a Servlet

2001-06-11 Thread Per Lewau


On Mon, 11 Jun 2001, Muthiah Palaniappan wrote:

 Hi,
   I have deployed a simple Hello World Bean and it is working
 perfectly when I use a java app. to connect to the bean. But in the same way
 if I try to connect to the bean using a servlet or a JSP, it is not working.
   I am using JBoss2.2 with Tomcat.
 
 This is the server side error I am getting (unwanted part of the error
 messages has been removed for clarity) -
 
 Package ejb.session.helloworld not found in import.
 import ejb.session.helloworld.*;

Have you included all imported classes in your war file?



---
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



Re: [JBoss-user] Message Driver Bean

2001-06-11 Thread Per Lewau


On Mon, 11 Jun 2001, Pablo Chepalich wrote:

 Hi, I want to know if jboss supports MSD or if it will be supported the next
 JBoss 3.0

JBoss supports MDBs today.

---
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] Verfier ant task

2001-06-11 Thread Per Lewau


'Evening all,

I have whipped up a quick Ant task which runs the Jboss ejb verifier
inside the ant JVM. It's not been tested much, but at least it works for a
correct ejb jar. :)

It's not too pretty and it needs testing and input, but you're welcome to
try it if you like. You can download it from:
http://www.lysator.liu.se/~perle/VerifierTask-0.1.tar.gz

(Basically, it's Juha's Main class but operating over a set of files and
does not call System.exit().)


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



Re: [JBoss-user] It is compulsory that jboss start on server JVM?

2001-06-08 Thread Per Lewau


On Thu, 7 Jun 2001 [EMAIL PROTECTED] wrote:

 Hi
I running jdk1.3 on irix which does not support server JVM. I could bring
 up the Jboss engine using classic jvm. When i deployed the interestEJB application.
 I got the initial JNDI context but could not get the reference of the 
RemoteInterface.
 There is no error messsage either from the client or from the engine. Could
 this be anyway related to the JVM Change?

Most likely this has nothing to do with the JVM. The -server flag tells
the JVM to optimize for server (don't ask me what it really does), but the
client JVM works just as fine, albeit slower. If the Irix JVM is broken
and is the cause (highly unlikely) having the -server flag would most
likely not help.



---
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



Re: [JBoss-user] Same Interface to Bean and EJB objects

2001-06-08 Thread Per Lewau


On Fri, 8 Jun 2001, Emerson wrote:

 It is , but it implements the business interface too, as ed roman say in
 his book, and it´s a pattern in theserverside too.

The reason for the EJB class to implement the remote interface is to get
a compile-time check of the EJB class. The home interface must return the
remote interface of the enterprise bean.


 
 At 02:16 09/06/01 +0200, you wrote:
 
 On Fri, 8 Jun 2001, Emerson wrote:
 
  It´s said it´s a good practice to make both EJB interface and Bean object
  to implement the same business interface. I tried that and had this
 warning :
 
  Bean   : EleitorVLHHome
  Method : public abstract EleitorVLHEJB create(String, String, String,
^
 
 Is EleitorVLHEJB the EJB class? The return type of a create method must be
 the remote interface of the enterprise bean.
 
  String) throws RemoteException, CreateException
  Section: 6.10.6
  Warning: The method return values in the home interface must be of valid
  types for RMI/IIOP.
  
  When i stop the remote interface and the Bean to implement my business
  interface, the warnings stopped.
 
 
 ---
 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
 
 
 Emerson Cargnin
 TRE-SC
 Setor de Desenvolvimento 
 Tel: (48) 251-3700 - Ramal 3134
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

---
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



Re: [JBoss-user] Minerva Source

2001-06-06 Thread Per Lewau


On Wed, 6 Jun 2001, Hermann RANGAMANA wrote:

 I posted several times a question about minerva, but everybody seems too
 busy to notice it...  :-( Maybe i'll find the solution of my problem by
 directly browsing minerva source 
 
 Where can i get minerva source

Minerva has been forked and is now (being) replaced by JBossPool. It
should be available in the JBoss CVS repository.

 PS : Does anyone here know how to search in the list archive ? I always get
 an error  with the search engine... (== this question too, i'm posting it
 for the n th time  pf)

I don't know what archive people are using but the one available from
jboss.org as well as the sourceforge one works just fine.

If you get somethingorother/htdig/error-foo you are in the wrong place.

---
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



Re: [JBoss-user] Minerva Source (oops, I lied)

2001-06-06 Thread Per Lewau


It seems as though I was too quick in deciding that the sourceforge
mailing list archive works. Searching the archive does not work.

Sorry.



On Wed, 6 Jun 2001, Per Lewau wrote:

 
 On Wed, 6 Jun 2001, Hermann RANGAMANA wrote:
[snip]
  PS : Does anyone here know how to search in the list archive ? I always get
  an error  with the search engine... (== this question too, i'm posting it
  for the n th time  pf)
 
 I don't know what archive people are using but the one available from
 jboss.org as well as the sourceforge one works just fine.
 
 If you get somethingorother/htdig/error-foo you are in the wrong place.

---
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



Re: [JBoss-user] Problem accessing beans from JSPs

2001-06-05 Thread Per Lewau


On Tue, 5 Jun 2001, Stephen Oakes wrote:

 We have developed an entity bean and successfully deployed it in JBoss.  Now
 we cannot access it using jsp:useBean id=aBean class=path.to.myClass

The useBean tag is for JavaBeans not Enterprise JavaBeans. You have to
access your EJBs the same way as from any other client with a JNDI lookup
and so forth.

Perhaps there is a tag library somewhere that makes this niftier, I don't
know...


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



Re: [JBoss-user] JMS client

2001-05-28 Thread Per Lewau


On Mon, 28 May 2001, Francesco Calderini wrote:

 Hello,
 
 I have deployed an MDB and I have written a JMS client in order to publish
 messages on a topic. I have a problem in running this client since I get the
 following exception when trying to get a reference to the default JbossMQ
 TopicConnectionFactory :
 
 
 javax.naming.CommunicationException.  Root exception is
 java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
 java.lang.ClassNotFoundException:
 org.jbossmq.referenceable.ObjectRefAddr (no security manager: RMI class loader
 disabled)
 java.lang.ClassNotFoundException: org.jbossmq.referenceable.ObjectRefAddr (no
  ^

Have you included jbossmq-client.jar in your client's classpath?


---
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



Re: [JBoss-user] no transaction right now

2001-05-28 Thread Per Lewau
._jspService(_0002fformhandle_0002ejspformhandle_jsp_29.java:432)
 
 
 
 Thank you,
 
 Marcel
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

---
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



Re: [JBoss-user] ejb deploying

2001-05-28 Thread Per Lewau


On Mon, 28 May 2001, ALex Loubyansky wrote:

   hello
 
   i have a project with war components only.  it works well. i wrote two
 simple ejbs, compiled them and created ejb-jar-ic.jar file with ejbs' class
 files, META-INF\ejb-jar.xml, META-INF\jboss.xml and META-INF\manifest.mf,
 and chaged application.xml file.
 
   now i can't deploy my application. could someone help me, please?

We might if you tell us what the problem is. What happens when you try to
deploy? What does the log say? Are there any stack traces?

[Various XML files snipped]


---
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



Re: [JBoss-user] no transaction right now

2001-05-28 Thread Per Lewau


On Mon, 28 May 2001, Marcel Schepers wrote:

 Hello Per,
 
 I've attached my ejbCreate() implementation and implementation of 
 insertRow, a method called by ejbCreate method. The ejbPostCreate() 
 method is empty. Thanks for taking a look.

Hi,

You should read Georg's response which deals with MySQL and transactions.
It explains MySQL weirdness that I am blissfully ignorant of.

Anyhoo, it seems as though there is some problem with the insertRow method
that would arise even if you were to use a real database ;)

 
 Marcel
 
[ejbCreate snipped]

 private Long insertRow(Timestamp invoerdatumtijd, String voorletters,
   String tussenvoegsel, String naam, String adres,
   String postcode, String woonplaats,
   String telefoonDag, String telefoonAvond,
   String geboortedatum, String geslacht,
   String email, String groep,
   String vrijeInvoer)
throws SQLException {
 
ResultSet resultSet = null;
 
try{
String insertStatement =
mINSERT INTO formulier (invoerdatumtijd, voorletters,  +
tussenvoegsel, naam, adres, postcode, woonplaats,  +
telefoonDag, telefoonAvond, geboortedatum, geslacht,  +
email, groep, vrijeInvoer)  +
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
 
PreparedStatement prepStmt =
this.connection.prepareStatement(insertStatement);
 
prepStmt.setTimestamp(1, invoerdatumtijd);
prepStmt.setString(2, voorletters);
prepStmt.setString(3, tussenvoegsel);
prepStmt.setString(4, naam);
prepStmt.setString(5, adres);
prepStmt.setString(6, postcode);
prepStmt.setString(7, woonplaats);
prepStmt.setString(8, telefoonDag);
prepStmt.setString(9, telefoonAvond);
prepStmt.setString(10, geboortedatum);
prepStmt.setString(11, geslacht);
prepStmt.setString(12, email);
prepStmt.setString(13, groep);
prepStmt.setString(14, vrijeInvoer);
   
resultSet = prepStmt.executeQuery();
prepStmt.close();
}
catch(SQLException e){
if (DEBUG) {
System.out.println(SQLException in FormBean.insertRow);
System.out.println(e.getMessage());
} // end of if (DEBUG)
throw e;
}
finally{
return new Long(resultSet.getLong(id));

There will be a problem here since unless there was an SQLException
earlier the resultSet will be closed. The Statement.close() method also
closes the ResultSet. Come to think of it, the statement has gone out of
scope and cannot be relied on so the ResultSet is probably going to be
closed anyway.

Why do you want to return the id if there was an SQLException? The finally
block is executed whenever and however you leave the try/catch block
(save perhaps for System.exit() ;).

BTW...A common way to deal with sql queries is to move the calls to
close() methods to the finally block.

} finally {
try { stmt.close(); } catch(Exception e) {}
}




}
   }
 
 Per Lewau wrote:
 
  On Mon, 28 May 2001, Marcel Schepers wrote:
  
  
  Looks like an exception is raised inside your ejbCreate method. If a
  runtime exception is raised there it will result in a transaction
  rollback. It could be a NullPointerException; it usually is.
  
  Strange though that the database contains the new information. What does
  your ejbCreate method do?
  
  
  Hello,
  
  I have a question regarding an error I get. In a JSP page I use a 
  regular Java bean. Some properties are set and at the end I call the 
  bean's create() methode to actually create a new EJB Entity bean. 
  Creating the EJB fails: I get the error attached to the end of this 
  message. Now the funny part is that the database contains the new EJB 
  data. The question I would like to ask you: where to look for the solution?
  
  The code I use in my regular Java access bean:
  
public void createEJB(){
if (DEBUG) {
System.out.println(FormAccessBean.create() --- entry);
} // end of if (DEBUG)
   
try{
String jndiName = stam/Form;
Broker broker = Broker.getInstance();
FormHome formHome = (FormHome)
broker.getHome(jndiName, FormHome.class);
 Form form = formHome.create(this.voorletters, 
  this.tussenvoegsel,
this.naam, this.adres, this.postcode,
this.woonplaats, this.telefoonDag,
this.telefoonAvond, this.geboortedatum,
this.geslacht, this.email, this.groep,
this.vrijeInvoer);
 if (DEBUG) {
System.out.println(Form:  + form);
} // end of if (DEBUG)
 }
 
 }
  
  
  I have a feeling that my mySQL transaction management is not
  configured properly. These are my mySQL settings in jboss.jcml
  
   !-- JDBC --
   mbean code=org.jboss.jdbc.JdbcProvider
 name=DefaultDomain:service=JdbcProvider
attribute

RE: [JBoss-user] ejb deploying

2001-05-28 Thread Per Lewau


On Mon, 28 May 2001, ALex Loubyansky wrote:

   Thank you!
 
   My problem begins with
 
 [JAWS] Initializing JAWS plugin for FriendBean
 [JAWS] Loading standardjaws.xml :
 file:/C:/JBoss-2.2.1_Tomcat-3.2.1/jboss/conf/tomcat/standardjaws.xml
 [JAWS] Table 'FriendBean' already exists
 [Container factory] Binding an EJBReference friend/Friend
 [Container factory] Binding friend/Friend to internal JNDI source:
 edays.ejbs.FriendBean
 [Container factory] org.jboss.ejb.DeploymentException: Bean
 edays.ejbs.FriendBean not found within this application.   i can't
 understand it

I checked your XML files in light of this and as far as I can tell the
problem is your ejb-link statement in the ejb-jar.xml file. The ejb-jar
1.1 DTD has the following to say about ejb-link tags:

quote
The value of the ejb-link element must be the ejb-name of an enterprise
bean in the same ejb-jar file, or in another ejb-jar file in the same
J2EE application unit.
/quote

You have specified the class name instead of the bean name in you ejb-link
tag. It should read FriendBean instead of edays.ejbs.FriendBean. 

It is perhaps a good idea to prefix bean names with ejb/, such as
ejb/FooBean, to help reduce confusion when there are a whole lotta names
that all look like FooBean (classes, bean names, jndi names and whatnot).
That would also place them in the standard JNDI context
java:comp/env/ejb/.




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Per Lewau
 Sent: Monday, May 28, 2001 4:59 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] ejb deploying
 
 
 
 On Mon, 28 May 2001, ALex Loubyansky wrote:
 
  hello
 
  i have a project with war components only.  it works well. i wrote two
  simple ejbs, compiled them and created ejb-jar-ic.jar file with ejbs'
 class
  files, META-INF\ejb-jar.xml, META-INF\jboss.xml and META-INF\manifest.mf,
  and chaged application.xml file.
 
  now i can't deploy my application. could someone help me, please?
 
 We might if you tell us what the problem is. What happens when you try to
 deploy? What does the log say? Are there any stack traces?
 
 [Various XML files snipped]
 
 
 ---
 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
 

---
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



RE: [JBoss-user] Persistence Queue with Message Driven Bean

2001-05-25 Thread Per Lewau
/listinfo/jboss-user
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

---
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] Re: [JBoss-dev] JBoss configuration

2001-05-23 Thread Per Lewau


On Wed, 23 May 2001, Saint-Martin Cecile wrote:

 Hi,
 
 I wonder is there a way to configure JBoss not to start all services
 when it starts (InstantDB, XADataSource, etc...) ? We can stop them by
 Agent View on port 8082, but we want JBoss to start with a minimal
 number of services.

Just comment out the things you don't want in conf/default/jboss.jcml.


---
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



Re: [JBoss-user] Stateless Session Bean and CallableStatement

2001-05-23 Thread Per Lewau


On Wed, 23 May 2001, Dave, Pragnesh wrote:

 Greetings !
 
 David, thanks for pointing that the CallableStatement doesn't implement
 Serializable.
 
 I checked the docs and got the same info; I got confused as I was previously
 using VAJ and websphere and the data connector-DAB extension allows to
 Serialize CallableStatement; basically IBM extended the CallableStatement
 and implemented Serializable.
 
 In one the articles at developerworks, Cynthia Saracco actually says that
 wrapping DBMS stored proc under stateless session beans is a good idea and
 passing the Serialized CallableStatement back to the client a better
 approach then creating your own Collection.
 
 http://www-106.ibm.com/developerworks/components/library/j-spejb/?dwzone=com
 ponents

(I didn't bother reading the article ;)

I guess the reason for passing the CallableStatement to the client is that
you don't want to first unroll the ResultSet, put it into a Collection
and then pass that Collection to the client who has to iterate it again.
If the CallableStatement does not produce a ResultSet then there would be
no point.

You could use a Stateful Session Bean instead and store the ResultSet in
the bean and add a method that gets the next row from the ResultSet. The
more beautiful solution would be to implement a Serializable iterator and
pass that back to the client. The next() method in the iterator would get
the next row from the Session Bean.

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



Re: [JBoss-user] Stateless Session Bean and CallableStatement

2001-05-23 Thread Per Lewau


On Wed, 23 May 2001, Guy Rouillier wrote:

 I also didn't read the article, but in my not so humble opinion, this is **
 terrible ** advice.   Keeping a database statement (and hence connection)
 open for use by a client is just asking for trouble in a network
 environment.  First is the pandora's box of possible failure points in the
 point-to-point connection.  But even if you have a perfect network, you have
 no idea what the caller is going to do with that statement.  He may do
 nothing and just sit on it for the next 3 weeks!  I read the other response
 to this post, and I don't think allow remote iteration to a collection is a
 good idea for similar reasons.  You want to design your system to maximize
 robustness, concurrency and performance.  All of these benefit from
 finishing a logical unit of work completely in a single method before
 returning to the client.  We've opted to serialize our database results into
 an xml string, close the db connection (which returns it to the pool) and
 then send the xml string back to the client.

You're absolutely right. I'll have to back down on my suggested solution
(remote iteration). It was more of a work-around really, but you're
right.

Don't let the clients near the database.

(The good thing about being rash is that hindsight comes quicker ;)



 
 - Original Message -
 From: Dave, Pragnesh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 23, 2001 4:03 PM
 Subject: Re: [JBoss-user] Stateless Session Bean and CallableStatement
 
 
  In one the articles at developerworks, Cynthia Saracco actually says that
  wrapping DBMS stored proc under stateless session beans is a good idea
 and
  passing the Serialized CallableStatement back to the client a better
  approach then creating your own Collection.
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

---
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



Re: [JBoss-user] Jboss on Red hat 7.1

2001-05-17 Thread Per Lewau


On Thu, 17 May 2001, Noels Jeroen wrote:

 hi, 
 
 We are running JBoss-tomcat on a linux 2.4.2-2 server (Red Hat 7.1) and this
 seems to work fine. When I look at processes using the GNOME System monitor,
 however, I observe almost 60 different java processes, using almost 1.5
 gigabytes of memory, which worries me. Is this normal? Is there
 anything wrong with my Java Runtime Environment or Jboss  configuration???
 (we are using JDK 1.3.0_02, with a variable LD_ASSUME_KERNEL=2.2.5
 exported).

This is a Linux feature (I'd say bug, but that's me). What you see in the
process list are the individual threads created by JBoss. Threads in Linux
show up as separate entries in the process list. The resources are shared
between all threads so you can't add up the sizes of all entries.


---
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



Re: [JBoss-user] Intrabean Call ?

2001-05-17 Thread Per Lewau


On Thu, 17 May 2001, Thomas Grnert wrote:

 Hi,
 
 documentation says:
 
 public class ABean implements EntityBean {
 ...
 public void BusinessMethod(...) {
 ...
 
 BHome home = (BHome)ctx.lookup(java:comp/env/ejb/myBean);
 B bean = home.create(pk);
 ...
 }
 }
 
 My inside a SessionBean code looks like:
 
 
 
 private SessionContext ctx;
   
 public void setSessionContext(SessionContext sc)
 {
   this.ctx = sc;
 }
   
 
 public DocumentFragment getMassnahmeByID(long ID) throws RemoteException
 {
   MassnahmeHome m_home = 
(MassnahmeHome)ctx.lookup(java:comp/env/entity/katalog/Massnahme);
  ^^^

There's very little context here, but it seems as though you try to use
the SessionContext for a JNDI lookup. The SessionContext is not a JNDI
context. You should probably do the following instead:

InitialContext ic = new InitialContext();
MassnahmeHome m_home = (MassnahmeHome) 
ic.lookup(java:comp/env/entity/katalog/Massnahme);



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



Re: [JBoss-user] Deploy of beans in a single file or multiple jarsallowed?

2001-05-17 Thread Per Lewau


On Thu, 17 May 2001, [EMAIL PROTECTED] wrote:

 Hello,
 I'm having problems with jboss deployment of beans.
 I put all jar files in the deploy folder as recommended.
 jboss recognizes the jar files but still insists that I have deployed
 always the same bean:
 
 [J2EE Deployer Default] install module bean1.jar
 [Container factory] Deploying:file:/C:/jboss-
 2.2/tmp/deploy/Default/bean1.jar
 [Container factory] Deploying bean1
 ...
 [J2EE Deployer Default] install module bean2.jar
 [Container factory] Deploying:file:/C:/jboss-
 2.2/tmp/deploy/Default/bean2.jar
 
 [Container factory] Deploying bean1
 .
 [J2EE Deployer Default] install module bean3.jar
 [Container factory] Deploying:file:/C:/jboss-
 2.2/tmp/deploy/Default/bean3.jar
 
 [Container factory] Deploying bean1
 
 Is anybody so kind to explain me how to deploy multiple beans ?
 Thanks a lot


Cut-n-paste error in your ejb descriptor files?

The name of your beans is not the name of your EJB jar file. The bean name
is specified in the ejb-jar.xml file within you jar files.


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



Re: [JBoss-user] One more doubt about MDB

2001-05-15 Thread Per Lewau


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



Re: [JBoss-user] One more doubt about MDB(2)

2001-05-15 Thread Per Lewau


On Tue, 15 May 2001 [EMAIL PROTECTED] wrote:

 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:
 
 destination-jndi-nametopic/sameTopic/destination-jndi-name ?

Correct. At least I hope so since I haven't tested it, but there is no
other way ;)

 
 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
 

---
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



Re: New: [JBoss-user] MDB...why?

2001-05-14 Thread Per Lewau


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 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

Re: [JBoss-user] JBoss Performance Tests --- Comparision withWeblogic

2001-04-27 Thread Per Lewau


On Fri, 27 Apr 2001, Rama Rao wrote:

 Thanks for your reply
 OS : Windows NT  Server
 JDK : 1.3
 JBoss:2.1

Could you post the first lines from server.log?

(Something like:
[Info] Java version: 1.3.0_01,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_01,Sun Microsystems Inc.
[Info] System: Windows NT 4.0,x86
)

 we are calling these methods from a servlet.

Are you using Tomcat or Jetty?

Could you post the source code to your beans and servlet?


 TIA
 Rama Rao
 - Original Message -
 From: Toby Allsopp [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 27, 2001 2:32 PM
 Subject: Re: [JBoss-user] JBoss Performance Tests --- Comparision with
 Weblogic
 
 
  Rama Rao wrote:
 
   Hi All,
  
  
  
 We have tested the performance of JBoss in comparision to weblogic.
  
 We have carried out tests with one simple session bean and one simple
   entity bean.
  
 Session bean's method does nothing. Entity beans method just inserts
   one record in to database.
  
 And here are the results (Quite Shocking though)
 
  Please post some details, such as operating system, JVM version, product
  versions, how you are calling these methods, how you're deploying the
 beans.
 
  Thanks,
  Toby.
 
 
  ___
  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
 

---
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