[JBoss-user] How to configure JBoss-Jetty to serve static content?

2003-07-01 Thread Herve Tchepannou
Im running JBoss-Jetty-3.0.4.
My application allow to upload images that are stored in a directory
/home/app/resources/
I'd like Jetty to allow my users to access those images.
For example, http://mydomain.com/resources/a.gif will map to
/home/app/resources/a.gif.

How do I configure Jetty for that
thanx

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Closing database connections

2003-06-12 Thread Herve Tchepannou
this bug is now fixed on xpetstore CSV
> Hi Martin,
> thanks for the help. I wrote my reply to Enrique's mail just before I read
> yours.
> Glad to see that I was on the right track. Just one little question. Why do
> you have
> two finally blocks in the DAO - can't you close both the statement and the
> result set
> in the same finally block?
> cheers,
> Brian
> 
> - Original Message -
> From: "Martin Vilcans" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 12, 2003 12:01 PM
> Subject: RE: [JBoss-user] Closing database connections
> 
> 
> > This code is no good. It doesn't close the connection and it doesn't close
> > the PreparedStatement. Depending on what toPage does, it might not close
> the
> > ResultSet either, and even if it does, it's still somewhat ugly to
> allocate
> > a resource in one place and close it somewhere else.
> >
> > I haven't looked at XPetstore, and if this is the standard of the code in
> > that project, I think I won't.
> >
> > Here's more like how I would have done it:
> >
> >
> > //- session facade methods-
> >
> > /**
> >  * @ejb.interface-method
> >  * @ejb.transaction
> >  *  type="NotSupported"
> >  */
> > public Page searchProducts( String key, int start, int count )
> > {
> > Connection connection;
> > try
> > {
> > connection = getConnection();
> > // constructor doesn't take a connection parameter:
> > ProductDAO dao = new ProductDAO();
> > // findByKey does instead:
> > return dao.findByKey(connection, "%" + key + "%", start,
> > count );
> > }
> > catch( SQLException sql )
> > {
> > throw new EJBException( sql );
> > }
> > finally {
> >   connection.close();
> > }
> > }
> >
> >
> >
> > private Connection getConnection()
> > {
> > try
> > {
> > InitialContext ic = new InitialContext();
> > DataSource ds = ( DataSource )ic.lookup(
> > JNDINames.DATASOURCE );
> > return ds.getConnection();
> > }
> > catch( Exception e )
> > {
> > // changed from throw new EJBException();
> > // this aids debugging more
> > throw new EJBException("Failed to get connection", e);
> > }
> > }
> >
> > //- DAO method -
> >
> > // removed constructor
> >
> > // Connection as parameter instead:
> > public Page findByKey(Connection connection, String key, int start,
> int
> > count )
> > throws SQLException
> > {
> > PreparedStatement stmt = connection.prepareStatement (
> > SQL_FIND_BY_KEY,
> > ResultSet.TYPE_SCROLL_INSENSITIVE,
> > ResultSet.CONCUR_READ_ONLY );
> > try {
> >
> >   stmt.setString ( 1, key );
> >   stmt.setString ( 2, key );
> >   stmt.setString ( 3, key );
> >
> >   ResultSet rs = stmt.executeQuery (  );
> >   try {
> > return toPage ( rs, start, count );
> >   }
> >   finally {
> > rs.close();
> >   }
> > }
> > finally {
> >   stmt.close();
> > }
> > }
> >
> > I haven't compiled or tested this, but I hope you catch my drift.
> >
> > Martin
> >
> >
> >
> > -------
> > This SF.NET email is sponsored by: eBay
> > Great deals on office technology -- on eBay now! Click here:
> > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> 
> 
> ---
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now! Click here:
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] getClass().getClassLoader().getResourceAsStream() not working in web-app

2003-03-24 Thread Herve Tchepannou
Title: RE: [JBoss-user] getClass().getClassLoader().getResourceAsStream() not working in web-app





I downloaded jboss-3.0.6, it works now.
looks like it was a Jetty ClassLoader problem


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 24 March 2003 05:15
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user]
> getClass().getClassLoader().getResourceAsStream() not working 
> in web-app
> 
> 
> Hi Herve,
>    I'd to do something like this using Jboss 2.4.1. It's quite
> strange that there isn't someway of referencing the extra file in the
> manifest file but there ye go. As with your problem I was initially
> trying to encapsulate everything in a jar file. I think if 
> you find that
> you encapsulate the jar file minus the xsl file into an ear file and
> then you put the xsl file at the in the ear file at the root or maybe
> some META-INF directory you should be able to find it. The name of the
> directory i.e. META-INF doesn't really matter, I just used it for
> convention. 
> Hope that helps. 
> 
> 
> Thanks,
> Mark.
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Herve
> Tchepannou
> Sent: 24 March 2003 04:53
> To: jboss
> Subject: [JBoss-user] 
> getClass().getClassLoader().getResourceAsStream()
> not working in web-app
> 
> I create rss.jar with a this structure:
>   RSSPortlet.class
>   rss2html.xsl
> 
> in RSSPortlet, I need to access the xsl file, so Im doing:
> void foo()
> {
>    InputStream in = 
> this.getClass.getClassLoader().getResourceAsStream(
> "rss2html.xsl" )
>    ...
> }
> 
> I put rss.jar in WEB-INF/lib a rss.war.
> When the RSSServlet try to call the function foo(), the 
> rss2html.xsl is
> not found ( the inputstream is null ).
> Is this normal???
> 
> I'm using JBoss-3.0.4
> -- 
> 
> Herve Tchepannou
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> ---
> This SF.net email is sponsored by:Crypto Challenge is now open! 
> Get cracking and register here for some mind boggling fun and 
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> ---
> 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.net/lists/listinfo/jboss-user
> 





[JBoss-user] getClass().getClassLoader().getResourceAsStream() not working inweb-app

2003-03-23 Thread Herve Tchepannou
I create rss.jar with a this structure:
  RSSPortlet.class
  rss2html.xsl

in RSSPortlet, I need to access the xsl file, so Im doing:
void foo()
{
   InputStream in = this.getClass.getClassLoader().getResourceAsStream(
"rss2html.xsl" )
   ...
}

I put rss.jar in WEB-INF/lib a rss.war.
When the RSSServlet try to call the function foo(), the rss2html.xsl is
not found ( the inputstream is null ).
Is this normal???

I'm using JBoss-3.0.4
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: [Xdoclet-user] New release of xPetstore - website

2003-03-03 Thread Herve Tchepannou
The xpetstore web site is: http://xpetstore.sourceforge.net

On Mon, 2003-03-03 at 21:04, Herve Tchepannou wrote:
> I'm proud to announce the lattest release of xPetstore.
> xPetstore is a lightweight version of the Sun Petstore application based
> on open source tools and framework.
> xPetstore also demonstrate to develloper how to build WODRA (Write Once,
> Deploy and Run Anywhere) J2EE application
> 
> This release contains 2 implementations:
> - A pure EJB implementation based on JSP, Struts, Sitemesh, EJB + CMP2.0
> - A servlet implementation based on Velocity, Webwork, Sitemesh, POJO +
> Hibernate
> xPetstore has been succefully deployed and tested on the following
> platforms:
> OS: Linux, Windows
> Application Server: JBoss-3.0.x and WebLogic-7.x
> Databases: HypersonicSQL, PostgreSQL, SapDB, mySQL, Oracle, MS SQL
> Server
> 
> -- 
> 
> Herve Tchepannou
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> ---
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
> for complex code. Debugging C/C++ programs can leave you feeling lost and 
> disoriented. TotalView can help you find your way. Available on major UNIX 
> and Linux platforms. Try it free. www.etnus.com
> ___
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] New release of xPetstore

2003-03-03 Thread Herve Tchepannou
I'm proud to announce the lattest release of xPetstore.
xPetstore is a lightweight version of the Sun Petstore application based
on open source tools and framework.
xPetstore also demonstrate to develloper how to build WODRA (Write Once,
Deploy and Run Anywhere) J2EE application

This release contains 2 implementations:
- A pure EJB implementation based on JSP, Struts, Sitemesh, EJB + CMP2.0
- A servlet implementation based on Velocity, Webwork, Sitemesh, POJO +
Hibernate
xPetstore has been succefully deployed and tested on the following
platforms:
OS: Linux, Windows
Application Server: JBoss-3.0.x and WebLogic-7.x
Databases: HypersonicSQL, PostgreSQL, SapDB, mySQL, Oracle, MS SQL
Server

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] From WebLogic to JBoss

2003-01-24 Thread Herve Tchepannou
Title: RE: [JBoss-user] From WebLogic to JBoss





and you can look at http://sourceforge.net/projects/xpetstore
which has the Sun version of PetStore application ported to JBoss and WebLogic


-Original Message-
From: Rod Macpherson [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2003 09:21
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] From WebLogic to JBoss



XDoclet goes a long way and I also highly recommend that you purchase a
JBoss service contract - advice from a happy camper. They will help you get
the wheels rolling on your porting project and they are the best of the best
of the not too shabby.


http://xdoclet.sourceforge.net/



- Original Message -
From: "Artur Jonak" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 5:56 AM
Subject: [JBoss-user] From WebLogic to JBoss



> Hi,
>
> I would like to ask you if there is any tool to port my j2ee application
> from BEA Weblogic 7.0 to JBoss 3.0
> Could you help me?
>
> Regards,
> Artur
>
> ___
> Artur Jonak
> phone: +48 22 535 88 10
> 
> ___
>
>
>
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Too Slow

2003-01-22 Thread Herve Tchepannou
Title: RE: [JBoss-user] Too Slow





or you can change the default JSP compiler of Tomcat/Jetty to Jikes
which is VERY VERY fast (you'll notice the difference)


-Original Message-
From: Daniel Bruce Lynes [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 16:12
To: JBoss Users
Subject: Re: [JBoss-user] Too Slow



On Wednesday 22 January 2003 12:31, Gabriel Pinto wrote:


> I'm running JBOSS in a Pentium III 1gHz with 512MB RAM with RedHat 7.2,
> but it is too slow!
>
> Even when I run only jsp files I can't get a reasonable speedy.
>
> When I run the application in a AMD Duron 800Mhz 256MB RAM it works a lot
> better?
>
> Anyone have any idea?
>
> Is there any configuration that can be made to JBOSS that let it faster
> running in Linux?


JBoss doesn't do servlets.  JBoss itself, from my experience is the fastest 
server of its kind on the market.  Servlet engines on the other hand are 
slower than hell, because of the constant compile cycle when you introduce a 
newly timestamped jsp file.


You're probably better off asking speed-related questions for the servlet 
engine either to the jetty mailing list, or the tomcat mailing list, 
depending on which servlet engine you're using.


Without knowing which servlet engine you're using, it's impossible to tell you 
any specifics on speeding your jsp pages up.


However, one method you can use that is generalized for speeding up a 
JSP/servlet container, w.r.t. jsp pages, is to precompile all jsp pages 
before deploying.


This can be achieved using jspc for both Tomcat and jetty.  Jetty uses 
Tomcat's jspc.



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] unable to deploy my application to JBoss-Jetty: java.lang.ClassNotFoundException: org.mortbay.j2ee.session.JGStore

2003-01-20 Thread Herve Tchepannou
Title: RE: [JBoss-user] unable to deploy my application to JBoss-Jetty: java.lang.ClassNotFoundException: org.mortbay.j2ee.session.JGStore





jboss-dev has ~16000 messages and there is no seach facility on sf for mailing lists.
Can you jsut tell me how to fix that prob?
thanx


-Original Message-
From: Jules Gosnell [mailto:[EMAIL PROTECTED]]
Sent: 20 January 2003 05:07
To: [EMAIL PROTECTED]
Cc: jboss
Subject: Re: [JBoss-user] unable to deploy my application to
JBoss-Jetty: java.lang.ClassNotFoundException:
org.mortbay.j2ee.session.JGStore



search this list's and jboss-dev's archive, I've already answered this 
question,


Jules


Herve Tchepannou wrote:


>I'm trying to deploy an application that I've successfully deployed on
>JBoss-Tomcat, but Im receiving the following errors:
>
>java.lang.ClassNotFoundException: org.mortbay.j2ee.session.JGStore
>    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>    at java.security.AccessController.doPrivileged(Native Method)
>    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>    at
>org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:227)
>    at
>org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:200)
>    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>    at java.lang.Class.forName0(Native Method)
>    at java.lang.Class.forName(Class.java:217)
>    at org.mortbay.j2ee.session.Manager.initialize(Manager.java:249)
>    at
>org.mortbay.jetty.servlet.ServletHandler.setSessionManager(ServletHandler.java:167)
>    at
>org.jboss.jetty.JBossWebApplicationContext.setUpDistributableSessionManager(JBossWebApplicationContext.java:293)    at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:270)

>    at org.mortbay.http.HttpContext.start(HttpContext.java:1763)
>    at
>org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
>    at
>org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
>    at org.jboss.jetty.Jetty.deploy(Jetty.java:414)
>    at
>org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
>    at
>org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
>    at
>org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
>    at
>org.jboss.deployment.MainDeployer.start(MainDeployer.java:799)
>    at
>org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
>    at
>org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
>    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
>    at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:324)
>    at
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
>    at
>org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
>    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
>    at $Proxy4.deploy(Unknown Source)
>    at
>org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
>    at
>org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
>    at
>org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
>    at
>org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
>    at
>org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
>    at
>org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
>22:23:40,387 INFO  [JBossWebApplicationContext#/xpetstore] using
>Distributable HttpSession Manager: org.mortbay.j2ee.sessio
>






This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] New release of xPetStore v2.2

2003-01-19 Thread Herve Tchepannou
New release of xPetStore

xPetStore is a WODRA (Write Once, Deploy and Run Anywhere)
implementation of Sun PetStore application based on the following
opensource tools/framework:
- xDoclet
- Stuts
- SiteMesh

xPetStore has been successfully deployed to the following application
servers:
- JBoss
- WebLogic

Changes:
- Move the sourcecode to sourceforge CVS
- Add a ant-task to initialize the database
- Move configuration files from XPETSTORE/src/conf to
XPETSTORE/src/petstore/etc/conf
- Remove '.' from all EJB names to be conform to EJB specs
- Don't run docbook task for non unix system

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] unable to deploy my application to JBoss-Jetty:java.lang.ClassNotFoundException: org.mortbay.j2ee.session.JGStore

2003-01-19 Thread Herve Tchepannou
I'm trying to deploy an application that I've successfully deployed on
JBoss-Tomcat, but Im receiving the following errors:

java.lang.ClassNotFoundException: org.mortbay.j2ee.session.JGStore
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:227)
at
org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:200)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at org.mortbay.j2ee.session.Manager.initialize(Manager.java:249)
at
org.mortbay.jetty.servlet.ServletHandler.setSessionManager(ServletHandler.java:167)
at
org.jboss.jetty.JBossWebApplicationContext.setUpDistributableSessionManager(JBossWebApplicationContext.java:293)
at 
org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:270)
at org.mortbay.http.HttpContext.start(HttpContext.java:1763)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:414)
at
org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:799)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
22:23:40,387 INFO  [JBossWebApplicationContext#/xpetstore] using
Distributable HttpSession Manager: org.mortbay.j2ee.sessio
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss cvs is down?

2003-01-16 Thread Herve Tchepannou
Title: jboss cvs is down?





I browse jboss CVS at sourceforge.net.
Anyone know whats going on?


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] Re: WANTED: Lead JBoss Developers

2003-01-15 Thread Herve Tchepannou
Title: RE: [JBoss-user] Re: WANTED: Lead JBoss Developers





sorry but your link doesn't work


-Original Message-
From: Fred Hartman [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 15:07
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Re: WANTED: Lead JBoss Developers



There is a very cool tool started by Sacha Labourey
[[EMAIL PROTECTED]]. See:


http://www.jboss.org/modules.php?op=modload&name=phpBB_14&file=index&action="">
viewtopic&topic=26785&2


You also should read the comments in the "RE: [JBoss-dev] MBean
persistence?" thread for additional feature discussions that could generate
a todo list.


Cheers,
Fred


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Edgar Silva
Sent: Wednesday, January 15, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Re: WANTED: Lead JBoss Developers



Hi


 Me and a group of friends, would like to develop a Console web-based to
JBoss. Not equals Jmx-console.
 We wanna create a console where the user can be able to deploy files,
deplopy configurations, change descriptors, like console of other comercial
Application Servers.
 Hava one special project to this, where we can join...If thue where can I
find addtional informations?


 Best Regards...


Edgar



---
This SF.NET email is sponsored by: A Thawte Code Signing Certificate
is essential in establishing user confidence by providing assurance of
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] WANTED: Lead JBoss Developers

2003-01-15 Thread Herve Tchepannou
Title: RE: [JBoss-user] WANTED:  Lead JBoss Developers





Im following the link you provided but, there is no description of any project
for wich a leader is required


-Original Message-
From: Bill Burke [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 11:20
To: [EMAIL PROTECTED]; Jboss-Dev
Subject: RE: [JBoss-user] WANTED: Lead JBoss Developers



Oh yes and don't forget one of the biggest advantages:


Your technology contributions become a standard.  With over 2.4 million
downloads, JBoss is becoming as big a Linux.  Become a rock star.  Get
involved.


Bill


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Burke
> Sent: Wednesday, January 15, 2003 9:37 AM
> To: Jboss-Dev; JBoss 2
> Subject: [JBoss-user] WANTED: Lead JBoss Developers
>
>
> We're looking for Lead Developer volunteers.  Please, no emails if you've
> never contributed to JBoss.  If you've never contributed to JBoss you'll
> need to show some significant initiative before you are even considered.
>
> http://www.jboss.org/developers/projects/jboss/projects.jsp
>
> Please click on Task List to get more information on these projects.
>
> Benefits include.
> - Shape the future direction of JBoss
> - Name recognition.
> - Experience leading a worldwide distributed project
> - Visibility.  You may be called on to write articles for magazines and
> other publications
> - Great Resume builder
> - Higher consideration within JBoss Thankgiving Compensation Plan
>
> Being a lead is a lot of responsibility so think before you
> speak.  Also, if
> you become a successful JBoss Lead, don't be surprised if we
> recruit you to
> join JBossGroup, the consulting arm of JBoss.
>
> Projects:
>
> XDoclet:
> expand and maintain the JBoss XDoclet integration.  EJBs, JMX/MBeans, AOP,
> JBossScript.  Preferably somebody who has already done work on
> JBoss XDoclet
> or XDoclet.
>
> Management:
> Web Management Console, MC4J integration, JSR-77.  Some of you I have
> already talked about this and have expressed interest.  Express again, and
> back it up with some work.
>
> QA (TestSuite):
> Need somebody to extrapolate the JUnit extensions we have in the JBoss
> testsuite and package and market it as a JBoss downloadable
> offering.  Also,
> documentation for this.
>
> Benchmarking:
> Somebody to integrate RICE/Rubis into our CVS.  Somebody to
> write/find/incorporate a JMS benchmark.  Somebody to benchmark
> using ECPERF,
> RICE/Rubis, and new JMS benchmarking.   This is interesting work since you
> must leverage your knowledge on clustering, caching, and configuration.
> Touches all parts of JBoss.
>
>
> 
> Bill Burke
> Chief Architect
> JBoss Group, LLC
> 
>
>
>
> ---
> This SF.NET email is sponsored by: Take your first step towards giving
> your online business a competitive advantage. Test-drive a Thawte SSL
> certificate - our easy online guide will show you how. Click here to get
> started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Troubles with JBoss MBean

2003-01-15 Thread Herve Tchepannou
Title: RE: [JBoss-user] Troubles with JBoss MBean





the JMX console is now located at http://localhost:8080/jmx-console


-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 09:05
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Troubles with JBoss MBean



Hi Folks... 


I am just using http://localhost:8082 to see my services,
And doesn't works, I am using JBoss 3.0.4 with Jetty,
Have a special configuration to this works fine? 


thanks 


Edgar



---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] xPetStore v2.1 released

2003-01-04 Thread Herve Tchepannou
I'm Proud to annouce a new release of xPetStore v2.1

xPetStore is a WODRA (Write Once, Deploy and Run Anyware) implementation
of Sun 
PetStore application based on the following opensource tools/frameworks:
- xDoclet
- Struts
- Sitemesh

xPetStore has been successfully deployed and tested on the following
application servers:
- JBoss
- WebLogic

You can download the lattest version of xPetStore at
http://sourceforge.net/projects/xpetstore

---
This release has the following changes:
-   Integration with JUnitEE
-   Simplify the installation process highly simplify
-   Spilt build.xml to reduce the complexity of the build process
-   Mailing list created at sourceforge net
-   Bug fixes
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
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.net/lists/listinfo/jboss-user



[JBoss-user] new release of xPetStore

2002-12-11 Thread Herve Tchepannou
I'm proud to announce the lattest release of xPetStore application.
xPetStore is a refactored version of Sun PetStore application that
shows how to use xDoclet to build WODRA( Write Once, Deploy and Run
Anywhere) J2EE application
This version has ben tested with JBoss and WebLogic

WebSite: http://xpetstore.sourceforge.net
Download: http://sourceforge.net/project/showfiles.php?group_id=67431

FEATURES
- EJB 2.0: Entity, Session and MessageDriven Beans, CMP2.0, CMR
- Web layer build with Struts and Sitemesh
- Support many databases: postgres, mssql server, sapdb, pointbase
- Generate deployment descriptors for different application servers

TODO: 
- Add support to more application server
- Add web services

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
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/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



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 Crossley [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 12:53
To: jboss-user
Subject: [JBoss-user] Testing EJB's



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 
database.  Ideally, the EJB container would be running within the JVM of 
the JUnit test runner, persisting my CMP beans to the memory-resident 
Hypersonic db.


Possible or stupid?


-- Jim




---
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.net/lists/listinfo/jboss-user





[JBoss-user] How to run a different server that 'default' ?

2002-11-24 Thread Herve Tchepannou
When I execute 'run.sh', it always start the default server.
How can I execute 'run.sh' with a different server that I've created on
JBOSS_HOME/server directory ?
thanx
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
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.net/lists/listinfo/jboss-user



[JBoss-user] Re: [Xdoclet-user] does PostgreSQL support the EJB-QL LOCATE()function?]

2002-11-22 Thread Herve Tchepannou
I'm trying to execute the following EJB-QL query:

SELECT DISTINCT OBJECT(p) FROM Product AS p WHERE 
LOCATE(p.productId,?1) > -1 OR 
LOCATE(p.name,?1) > -1 OR 
LOCATE(p.description,?1) > -1

Shouldn't this work like the following SQL query:
SELECT * FROM Product WHERE 
p.productId like ?1 OR 
p.name LIKE ?1 OR 
p.description LIKE ?1

If not, does anyone knows how to use LIKE in EJB-QL with parameters?




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
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.net/lists/listinfo/jboss-user



[JBoss-user] does PostgreSQL support the EJB-QL LOCATE() function?

2002-11-20 Thread Herve Tchepannou
does PostgreSQL support the EJB-QL LOCATE() function?

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]




---
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.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss-3.2.0beta2 released

2002-11-20 Thread Herve Tchepannou
Title: RE: [JBoss-user] JBoss-3.2.0beta2 released





Is there any place where I can get the feature/bug fixes list of the last release?
thanx



-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 3:11 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [JBoss-user] JBoss-3.2.0beta2 released



The JBoss-3.0.2beta2 release has been made available at sourceforge. The
binaries and source may be obtained from here:
http://sourceforge.net/project/showfiles.php?group_id=22866


The release notes are available here:
http://sourceforge.net/project/shownotes.php?release_id=13



Scott Stark
Chief Technology Officer
JBoss Group, LLC




---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] New release of xPetStore: Portability from JBoss to WebLogic usingxDoclet

2002-11-17 Thread Herve Tchepannou
I've just released at http://www3.sympatico.ca/htchepannou
a new version of xPetStore.
This release includes the set of xDoclet tags to port the application
from JBoss to WebLogic.

xPetStore is a subset of Sun PetStore application based on xDoclet.
xPetStore shows you how to use xDoclet to build:
- EntityBean,SessionBean and MessageDrivenBean
- CMP2.0, CMR and EJB-QL
- Generate deployment descriptors for different vendors


TODO:
- Port the application to other J2EEv1.3 compliant applications server:
WebSphere, WebLogic, Pramati etc.
- Add the weblayer using Struts or WebWork framework with xDoclet
- Addition of JMX MBean

Any volunteer?

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Initial release of xPetStore, an implementation of PetStore using xDoclet

2002-11-14 Thread Herve Tchepannou
Title: RE: [JBoss-user] Initial release of xPetStore, an implementation of PetStore using xDoclet





If you have any prob compiling the app on Windows because the command line is too long, remove unecessery jar files from

XPETSTORE_HOME/src/petstore/lib/main/xdoclet-1.2b1
and keep the following files:
xdoclet.jar
xdoclet-ejb-module.jar
xdoclet-jboss-module.jar
xdoclet-jmx-module.jar
xdoclet-web-module.jar
xdoclet-xdoclet-module.jar
xjavadoc.jar



-Original Message-
From: Herve Tchepannou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 13, 2002 9:47 PM
To: xdoclet; jboss
Subject: [JBoss-user] Initial release of xPetStore, an implementation of
PetStore using xDoclet



I've just released an initial version of xPetStore.
xPetStore is a subset of Sun Pet Store application that uses xDoclet
With xPetStore, you will learn:
    * How to create EntityBeans (with local and remote interfaces)
    * How to create SessionBeans (with local and remote interfaces)
    * How to create MessageDrivenBeans
    * How to use CMP 2.0, EJBQL and CMR
    * Generate deployment descriptor for different vendors 


For the moment, xPetStore works very well with JBoss.
Im working hard to port it to JRun, but I'm having hard time to do it
because JRun template files are out to date and I'm not a JRun guru. Any
JRun guru here? your help is more than welcome.
For other app server (websphere,weblogic,iplanet,pramati etc.), help
would be more than welcomed!


If there is interest in this project, would it be possible to add it
into xDoclet distro as example app?


Get it at 
http://www3.sympatico.ca/htchepannou



-- 


Herve Tchepannou
mailto:[EMAIL PROTECTED]




---
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] Initial release of xPetStore, an implementation of PetStore usingxDoclet

2002-11-13 Thread Herve Tchepannou
I've just released an initial version of xPetStore.
xPetStore is a subset of Sun Pet Store application that uses xDoclet
With xPetStore, you will learn:
* How to create EntityBeans (with local and remote interfaces)
* How to create SessionBeans (with local and remote interfaces)
* How to create MessageDrivenBeans
* How to use CMP 2.0, EJBQL and CMR
* Generate deployment descriptor for different vendors 

For the moment, xPetStore works very well with JBoss.
Im working hard to port it to JRun, but I'm having hard time to do it
because JRun template files are out to date and I'm not a JRun guru. Any
JRun guru here? your help is more than welcome.
For other app server (websphere,weblogic,iplanet,pramati etc.), help
would be more than welcomed!

If there is interest in this project, would it be possible to add it
into xDoclet distro as example app?

Get it at 
http://www3.sympatico.ca/htchepannou


-- 

Herve Tchepannou
mailto:htchepannou@;sympatico.ca



---
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMRs are Slow (was: Entity Bean Performance Tuning Help)

2002-11-05 Thread Herve Tchepannou



1. 
What's the read-ahead/strategy of findAll() ? Since you want 
to get all the beans value object, it should be set to on-find, 
otherwhise, you are going to have the N+1 finder 
problem
2. 
Since you're populating the ValueObject with the content of your CMR fields, 
because each access to the CMR fields will call their findByPrimaryKey() 
to load them. Me, I always load CMR when needed. If they are always needed, 
then I use de Dependant  Value Class
3. Internal/External ValueObject creation. This 
make sense because in the external, each call of a getter from the ValueObject 
passes via the beanProxy (+ interceptors), where in the internal case you 
are already in the bean, then no overhead of the beanProxy
4. It 
may be interesting to see the result if you load all the 1000 beans, but 
return just a page of 25 ValueObjects, which is how most web-pages works to 
avoid those performance problems - then, make sure that the read-ahead strategy 
of the findAll() is set to on-load
 
-Original Message-From: Luttrell, Peter 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, November 05, 
2002 4:00 PMTo: '[EMAIL PROTECTED]'Subject: 
[JBoss-user] CMRs are Slow (was: Entity Bean Performance Tuning 
Help)

  The "Entity Bean 
  Performance Tuning Help" thread went off in various different directions. The 
  thread begged a sample and a little more detail as to what was slow. I've 
  identified the problem to be (CMRs) and provided a full sample 
  (attached).
   
  Lets rehash what 
  i'm testing:
   
      The code runs inside of a SSB with 
  a transaction on each method vs servlet (struts action) + manual transaction 
  as in the real app. I use hypersonic vs oracle in my real 
  app.
      
      calls 
findAll()
      dumps out 
  the time
   
      iterates through each calling all 
  methods and building a valueobject.
      this 
  should cache all results (checkout my jboss.xml)
   
      iterates through each calling all 
  methods and building a valueobject (a 2nd time)
      dumps out 
  the time
      
      iterates through each and calling 
  1 method on ejb, which builds the valueobject internally
      dumps out 
  the time
   
  I'm mostly 
  concerned with the last time, as it's what i do in my real case...because it's 
  the fastest. 
   
  The entitybean 
  has 2 CMRs. The read-all+fields time for 1000 cached beans using internal 
  valueobject generation takes about 670ms. But with 1 cmr it only takes 350ms. 
  And with No cmrs it only takes 150ms. [if you want slightly modified code, let 
  me know]. 
   
  Now 150ms is 
  great! But 350 isn't. It's more then double. Is this acceptable? Add a few 
  more and it's unusable for a lot of applications.
   
  Arguably cmp 
  EntityBeans were worthless till ejb2.0 and CMRs came along. But to actually 
  use them in JBoss is suicide for performance.
   
   
   
  The attached sample has a test class called "Test", 
  which can be run with -c to generate 1000 test rows. Also included is an ant 
  script which builds the test beans and deploys them to jboss, if you set your 
  jboss.install path in build.properties.
   
  Here the actual 
  output from my last test run:
   
  14:31:36,312 
  INFO  [STDOUT] creating 1000 Blobs...14:31:43,968 INFO  [STDOUT] 
  Creation complete, took 7656ms.14:31:46,328 INFO  [STDOUT] testing 
  retrival speed...14:31:46,328 INFO  [STDOUT] Initial Retrival, beans 
  may or maynot be in cache.14:31:46,375 INFO  
  [STDOUT] finder took 47ms.14:31:49,140 INFO  
  [STDOUT] External ValueObject creation took 2765ms for 
  1000 objects.14:31:49,859 INFO  [STDOUT] 
  Internal ValueObject creation took 719ms for 1000 objects.14:31:49,859 
  INFO  [STDOUT] Secondary Retrival, beans are in cache.14:31:50,125 
  INFO  [STDOUT] finder took 266ms.14:31:52,765 
  INFO  [STDOUT] External ValueObject creation took 
  2640ms for 1000 objects.14:31:53,437 INFO  
  [STDOUT] Internal ValueObject creation took 672ms for 
  1000 objects.
  These results 
  also beg the question of why the interceptor stack takes so long to 
  transversion, hense the extra 2000ms for 1000s ejbs, but lets leave that for a 
  seperate thread.
   
  .peter
   
  
   
   
   
  This transmission contains information solely for 
  intended recipient and may be privileged, confidential and/or otherwise 
  protect from disclosure. If you are not the intended recipient, please contact 
  the sender and delete all copies of this transmission. This message and/or the 
  materials contained herein are not an offer to sell, or a solicitation of an 
  offer to buy, any securities or other instruments. The information has been 
  obtained or derived from sources believed by us to be reliable, but we do not 
  represent that it is accurate or complete. Any opinions or estimates contained 
  in this information constitute our judgment as of this date and are subject to 
  change without notice. Any information you share with us wi

RE: [JBoss-user] Does CMR Collections have to be accessed (iterated) inside a transaction?

2002-11-05 Thread Herve Tchepannou
Title: RE: [JBoss-user] Does CMR Collections have to be accessed (iterated) inside a  transaction?





Is this a requirement of EJB standard or just due to JBoss implementation?


-Original Message-
From: julien viet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 05, 2002 6:16 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Does CMR Collections have to be accessed
(iterated) inside a transaction?



yes they have.


 --- Victor Batista
<[EMAIL PROTECTED]> a écrit : > Hello!
>   I am developing two entity beans which have a
> relatinship 1-N (One User can
> have Many Roles).
>   I have also a Facade session bean to handle the
> business operations. I have
> declared the Transaction property of my beans
> (Entity and session) as
> "Supports". The methods which insert or update data
> are declared as
> "Required". I don't want read-only operations to be
> executed inside
> transactions.
>   I have one method (getUser) which returns a VO with
> the User data and calls
> the relation method (getRoles() which returns a
> Collection of Roles). As
> this is a read operation, I don't want a transaction
> to handle this method.
> Although I am having one exception when I try to
> iterate the list of roles
> returned by the getRoles method
> 
> 
>   java.lang.IllegalStateException: A CMR collection
> may only be used within
> the transction in which it was created
> 
> 
>   Does CMR collections have to be accessed inside
> transactions?
> 
>   Thanks in advance,
>       Victor Batista
> 
> 
> 
> 
> 
>
---
> This sf.net email is sponsored by: See the NEW Palm 
> Tungsten T handheld. Power & Color in a compact
> size!
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] JBoss 3.x doesn't set CMR in ejbPostCreate()

2002-11-04 Thread Herve Tchepannou
Title: JBoss 3.x doesn't set CMR in ejbPostCreate()





JBoss 3.x doesn't set CMR in ejbPostCreate().
Is this a normal behaviour?


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




[JBoss-user] JBossQL and LIKE operator

2002-11-04 Thread Herve Tchepannou
Title: JBossQL and LIKE operator





I'm wondering if JBossQL supports the LIKE operator with parameter (since EQJBQL don't). If yes, what's the syntax (an example will be highliy appreciate). thanx

Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




[JBoss-user] HELP: I'm unable to connect to jboss from my Swing app

2002-10-17 Thread Herve Tchepannou
Title: HELP: I'm unable to connect to jboss from my Swing app





- I have a Session bean deployed on JBoss
- I have a swing app that try to connect to the remove component like this:


1: java.lang.Object objRef = initialContext.lookup("java:comp/env/ejb/tspace/UserManager")
2: cachedRemoteHome = (tspace.framework.user.interfaces.UserManagerRemoteHome) PortableRemoteObject.narrow(objRef, tspace.framework.user.interfaces.UserManagerRemoteHome.class);


But the line #1 fails and I receive the following error:

[java] javax.naming.NameNotFoundException: ejb not bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)


[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)


[java] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:45


[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:56


[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:44


[java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
[java] at tspace.framework.user.util.GroupUtil.getLocalHome(GroupUtil.j
5)
[java] at tspace.framework.user.ejb.UserManagerBean.findSubGroups(UserM
rBean.java:225)
[java] at tspace.framework.user.ejb.UserManagerBean.findSubGroups(UserM
rBean.java:212)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
pl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
cessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.
e(StatelessSessionContainer.java:660)
[java] at org.jboss.resource.connectionmanager.CachedConnectionIntercep
nvoke(CachedConnectionInterceptor.java:186)
[java] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.inv
tatelessSessionInstanceInterceptor.java:77)
[java] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstra
nterceptor.java:107)
[java] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
ceptorCMT.java:151)
[java] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM
a:60)
[java] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte
or.java:130)


My swing app jndi.properties look like:


java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url="localhost
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces


Does any one knows where the problem is?
thanx in advance.


PS: I checked with Jboss JNDIView and my component existed in the JNDI tree


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




[JBoss-user] How can I access the JNDITree with JBoss3?

2002-10-17 Thread Herve Tchepannou
Title: How can I access the JNDITree with JBoss3?





How can I access the JNDITree with JBoss3?
The URL http://localhost:8082 no longer works.


PS: Im using jboss-3.0.3_Tomcat-4.1.12 on Win2K


-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 17, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBossMQ messages being lost after restart Solution



Hello,


I solved the JBossMQ message being lost after restart.  I was using '/' 
characters in my queue name, and also using file persistence. 
Apparently the two don't match.  JBoss almost gets it to work, for it 
escapes out the '/' characters for the directory for storing messages. 
I believe somewhere in the code it is not escaping the queue names.


So, bottom line:


If using JBossMQ and file persistence, DO NOT put '/' characters in your 
queue name.


Thanks,
Seth




---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] URGENT: how to set up 1->N and N->1 relationship with XDoclet v1.2b1

2002-10-10 Thread Herve Tchepannou
Title: URGENT: how to set up 1->N and N->1 relationship with XDoclet v1.2b1





how can I set up 1->N and N->1 relationship with XDoclet v1.2b1 ?
thanx


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] How to use application specific properties - an example

2002-09-12 Thread Herve Tchepannou
Title: RE: [JBoss-user] How to use application specific properties - an example





1. I attached all the classes for my MBean:
    - TeamSpaceConfigMBean.java:    This is the MBean interface
    - TeamSpaceConfig.java:     This is the MBean implementation
    - TeamSpaceConfigProxy.java:    This is a Proxy class to access the MBean. This class hide all the ugly JMX method/attribute calls. This is the class that is actually used in the EJB


2. In jboss.jcml, I add the following block to load my MBean at boot time:

    name="DefaultDomain:service=TeamSpaceConfig">
    
  
    



3. In any EJB, I do this to call my MBean:
TeamSpaceConfigMBean conf = new TeamSpaceConfigProxy();
_filesDir = conf.XXX()


thats it :-)




-Original Message-
From: Brian Towles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] How to use application specific properties



Do you have a sample of this type of MBean
or actually more importantly a sample of how to access the MBean from
and EJB?


Thanks
-=Brian



On Thu, 2002-09-12 at 08:13, Herve Tchepannou wrote:
> In my application, I also have some application properties store in a
> property file.
> I prefer creating a MBean that loads all thoses properties when JBoss boot,
> an in my EJB, I can nicely access those properties.
> The other advantage of MBean is that you can connect at
> http://localhost:8082 and change
> the system configuration without redeploying or stopping JBoss.
> And also, JMX is more and more a standard in J2ee world
> 
> -Original Message-
> From: Kim, Yong [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 9:12 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] How to use application specific properties
> 
> 
> I use external configuration file just because of the reason you mentioned,
> "I am not sure I like this because different machines/servers need different
> properties".  And I created a static class that reads in the key=value pairs
> from the file and store in memory as long as the contains stays running.
> 
> Mitchell
> 
> -Original Message-
> From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 7:15 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] How to use application specific properties
> 
> 
> We have a local property file containg such things like name of
> machines, files, ip-addresses and such for legacy interfaces.  I found
> out (the hard way) that I could place this file in the
> ${JBOSS_HOME}/bin directory, presumably because it is from there we
> run the server.  It shouldn't stay there of course, and further we
> need it within the client too.
> 
> I know we could use some property mechanism within ejb-jar.xml, but I
> cannot figure out how to get this with XDoclet and I am not sure I
> like this because different machines/servers need different
> properties.
> 
> Is there a Right (tm) way to do this?
> 
> -- 
>   Jon Haugsand, <[EMAIL PROTECTED]>
>   Norges Bank, <http://www.norges-bank.no>
> 
> 
> 
> ---
> 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.net/lists/listinfo/jboss-user
> 
> 
> ---
> 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.net/lists/listinfo/jboss-user





---
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.net/lists/listinfo/jboss-user


 




BaseMBeanProxy.java
Description: Binary data


TeamSpaceConfig.java
Description: Binary data


TeamSpaceConfigMBean.java
Description: Binary data


TeamSpaceConfigProxy.java
Description: Binary data


RE: [JBoss-user] How to use application specific properties

2002-09-12 Thread Herve Tchepannou
Title: RE: [JBoss-user] How to use application specific properties





In my application, I also have some application properties store in a property file.
I prefer creating a MBean that loads all thoses properties when JBoss boot,
an in my EJB, I can nicely access those properties.
The other advantage of MBean is that you can connect at http://localhost:8082 and change
the system configuration without redeploying or stopping JBoss.
And also, JMX is more and more a standard in J2ee world


-Original Message-
From: Kim, Yong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] How to use application specific properties



I use external configuration file just because of the reason you mentioned,
"I am not sure I like this because different machines/servers need different
properties".  And I created a static class that reads in the key=value pairs
from the file and store in memory as long as the contains stays running.


Mitchell


-Original Message-
From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 7:15 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How to use application specific properties



We have a local property file containg such things like name of
machines, files, ip-addresses and such for legacy interfaces.  I found
out (the hard way) that I could place this file in the
${JBOSS_HOME}/bin directory, presumably because it is from there we
run the server.  It shouldn't stay there of course, and further we
need it within the client too.


I know we could use some property mechanism within ejb-jar.xml, but I
cannot figure out how to get this with XDoclet and I am not sure I
like this because different machines/servers need different
properties.


Is there a Right (tm) way to do this?


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 




---
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.net/lists/listinfo/jboss-user



---
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.net/lists/listinfo/jboss-user





Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

This is the method that I used...
but I find the JMX call very ugly, then I tryed to use DynamicProxy to 
wrap all my MBeans,
but I had all kind of problems with ClassLoader...
anyway, now I create a Proxy class for each MBean, then all the EJB 
calls are more 'natural'.
So far so good.
JMX is very powerful feature.. its really amazing !

JBoss rocks!

Juha-P Lindfors wrote:

>On Thu, 5 Sep 2002, Herve Tchepannou wrote:
>
>  
>
>>Seems to be a propriatary approach...
>>I don't want my EJB to contains proprietary core, which will make them
>>non portable.
>>Is there any standard way to access JMX from EJB?
>>
>>
>
>Yes, retrieve the MBeanServer ref through
>MBeanServerFactory.findMBeanServer() and invoke your MBean through the
>MBeanServer interface returned from that call.
>
>Notice this only works if your MBean is within the same VM with your EJB.
>For a distributed system you need to wait til JMX 1.2 comes out.
>
>-- Juha
>
>
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

Seems to be a propriatary approach...
I don't want my EJB to contains proprietary core, which will make them 
non portable.
Is there any standard way to access JMX from EJB?
Julien Viet wrote:

>look in the jboss sources :
>server/src/main/org/jboss/naming/NonSerializableFactory.java
>it's described how to use it.
>
>
>- Original Message -----
>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 05, 2002 11:07 AM
>Subject: Re: [JBoss-user] EJB/MBean communication
>
>
>  
>
>>What's that? is there any doc available about NonSerializableFactory?
>>
>>Julien Viet wrote:
>>
>>
>>
>>>you could use maybe the NonSerializableFactory and bind your mbean into
>>>  
>>>
>it.
>  
>
>>>- Original Message -
>>>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>>>To: "JBoss User Group" <[EMAIL PROTECTED]>
>>>Sent: Thursday, September 05, 2002 10:31 AM
>>>Subject: [JBoss-user] EJB/MBean communication
>>>
>>>
>>>
>>>
>>>  
>>>
>>>>What is the best and portable way to access a MBean from an EJB?
>>>>
>>>>I was wondering if I can lookup any of my custom MBean via JNDI from my
>>>>EJB ? (it seems to be cleanest way).
>>>>If not, how can I attach a MBean to the JNDI tree?
>>>>
>>>>
>>>>
>>>>---
>>>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>>>cell phone?  Get a new here for FREE!
>>>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>>>___
>>>>JBoss-user mailing list
>>>>[EMAIL PROTECTED]
>>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>>
>>>>
>>>>
>>>>
>>>___
>>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>>>Yahoo! Mail : http://fr.mail.yahoo.com
>>>
>>>
>>>---
>>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>>cell phone?  Get a new here for FREE!
>>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>>___
>>>JBoss-user mailing list
>>>[EMAIL PROTECTED]
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>
>>>
>>>
>>>  
>>>
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

What's that? is there any doc available about NonSerializableFactory?

Julien Viet wrote:

>you could use maybe the NonSerializableFactory and bind your mbean into it.
>
>- Original Message - 
>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>To: "JBoss User Group" <[EMAIL PROTECTED]>
>Sent: Thursday, September 05, 2002 10:31 AM
>Subject: [JBoss-user] EJB/MBean communication
>
>
>  
>
>>What is the best and portable way to access a MBean from an EJB?
>>
>>I was wondering if I can lookup any of my custom MBean via JNDI from my 
>>EJB ? (it seems to be cleanest way).
>>If not, how can I attach a MBean to the JNDI tree?
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

What is the best and portable way to access a MBean from an EJB?

I was wondering if I can lookup any of my custom MBean via JNDI from my 
EJB ? (it seems to be cleanest way).
If not, how can I attach a MBean to the JNDI tree?



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with javax.security.auth.login.LoginContext $SecureCallbackHandler

2002-08-26 Thread Herve Tchepannou
Title: RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with  javax.security.auth.login.LoginContext $SecureCallbackHandler





thanx man!
dammed.. I spend on my sunday on this bug !


-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not
initialized with my custom CallbackHandler, but with
javax.security.auth.login.LoginContext $SecureCallbackHandler



Yes.



Scott Stark
Chief Technology Officer
JBoss Group, LLC



- Original Message -
From: Herve Tchepannou
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 7:40 AM
Subject: RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with

javax.security.auth.login.LoginContext $SecureCallbackHandler


>ok, I see, then if call the handle() method with an array containing a
>NameCallback and PasswordCallback, my custom login will receive the call?





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with javax.security.auth.login.LoginContext $SecureCallbackHandler

2002-08-26 Thread Herve Tchepannou



ok, I 
see, then if call the handle() method with an array containing a NameCallback 
and PasswordCallback, my custom login will receive the call?

  -Original Message-From: Scott M Stark 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, August 26, 2002 10:35 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my 
  custom CallbackHandler, but with javax.security.auth.login.LoginContext 
  $SecureCallbackHandler
  javax.security.auth.login.LoginContext$SecureCallbackHandler is just a 
  wrapper
  that delegates to your 
  CallbackHandler.
   
  Scott StarkChief 
  Technology OfficerJBoss Group, 
LLC
  
- Original Message - 
From: 
Herve 
Tchepannou 
To: [EMAIL PROTECTED] 

Sent: Monday, August 26, 2002 6:22 
AM
Subject: [JBoss-user] JBoss-JAAS 
problem: My custom LoginModule not initialized with my custom 
CallbackHandler, but with javax.security.auth.login.LoginContext 
$SecureCallbackHandler



[JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with mycustom CallbackHandler, but with javax.security.auth.login.LoginContext$SecureCallbackHandler

2002-08-26 Thread Herve Tchepannou
Title: JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with  javax.security.auth.login.LoginContext$SecureCallbackHandler





Im trying to use JAAS to authenticate users of my application, but for some reason, JBoss doen't pass my CallbackHandler to my LoginModule initialize() function. The custom handler that I receive is of type javax.security.auth.login.LoginContext$SecureCallbackHandler

I added in $JBOSS_HOME/conf/catalina/auth.conf the following lines:


tspace {
    tspace.jaas.TeamSpaceLoginModule required
    debug=true
    domain=sympatico.ca
    ;
};


In my LoginAction (struts-action), I did the following:


public ActionForward doExecute( ActionMapping mapping, 
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response )
    throws  Exception
{
  LoginForm    login   = ( LoginForm )form;
  LoginContext lc = new LoginContext( "tspace", 
    new TeamSpaceCallbackHandler( login.getLogin(), login.getPassword() ) );
  lc.login ();
  Subject  subject = lc.getSubject ();
  ...
}


From want I understood, the initialize function should receive a CallbackHandler of type
TeamSpaceCallbackHandler, not javax.security.auth.login.LoginContext$SecureCallbackHandler.


Anyone know what's my problem?
thanx in advance


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] DB2 Pool don't reuse open connections

2002-04-03 Thread Herve Tchepannou
Title: RE: [JBoss-user] DB2 Pool don't reuse open connections





Make sure that you ALWAS close your connection in the 'finally' clause!!!


Ex:
void foo()
{
    Connection cnn = null;
    try
    {
        // USE THE CONNECTION HERE
        DataSouce ds = ( DataSource )new InitialCotnext().lookup( ... );
        cnn = ds.getConnection()
        // etc...
    }
    catch( ... )
    {
        // handle execptions
    }
    finally
    {
        // CLOSE THE CONNECTION HERE
        if ( cnn != null )
        {
            try{ cnn.close(); } catch( Exception e ) {}
        }
    }
}


-Original Message-
From: Martin Cabrera [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 12:55 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] DB2 Pool don't reuse open connections



Hi;


I have a DB2 pool defined in my jboss.jcml file. Every time I use the pool
from my ejbs jboss opens a new connection and don´t reuse the actual
connections. When jboss reachs the max size of the pool it hangs.


Any ideas?


I append the pool definition at the end of this mail.


Thanks in advance.


Martín Cabrera
IT Manager
Proyecto Abitab OnLine
Abitab S.A.
Montevideo - Uruguay
[EMAIL PROTECTED]



name="DefaultDomain:service=DB2JdbcProvider">
   COM.ibm.db2.jdbc.app.DB2Driver




name="DefaultDomain:service=XADataSource,name=DB2">

name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
ibute>
ONLINE
jdbc:db2:OLDESA
wldesa
wldesa
10
false
false
true
12
180
true
false
1.0
0




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





FW: [JBoss-user] interesting article comparing JBoss and JOnAS

2002-03-28 Thread Herve Tchepannou
Title: FW: [JBoss-user] interesting article comparing JBoss and JOnAS






Its true that having Tomcat-JBoss embeded improve the performance, but all clients
are not necessarely web-clients. Im develloping an app now where some clients will
use Swing, which mean that I'll access my session bean from my swing form


It think it would be interesting for JBoss to have a realistic app like JOnAs for
benchmarking the product, it may be very interesting for marketing the product...
I mean, Jonas is opensource like JBoss, and it looks like they are used by Kovair
in production environnement! 




-Original Message-
From: Lucas McGregor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:13 PM
To: jboss
Subject: RE: [JBoss-user] interesting article comparing JBoss and JOnAS



I just read this article, with particular interest since I switched from
Jonas to JBoss about 4 months ago. I switched because in my home-brew tests
Jboss seemed to handle more traffic better than Jonas. Which brings me to my
question. The main benefit of Jboss that attracted me was that I could run
Jboss and Tomcat in the same VM, thus getting rid of all those servlet to
EJB calls over the wire. I am running servlets with BMP session
beans--configuration 1 from the rice tests.
 
The rice tests, unless I misread them, had tomcat always running in its own
VM. And in those tests, Jonas seemed like the better server, although only
marginally for servlets with BMP session beans. Has anyone else had similar
experince? Would you say that the rice tests don't really show a
"real-world" comparison of the two application servers because they didn't
take advantage of embedded tomcat for JBoss?
 
Lucas McGregor, NovaLogic


-Original Message-----
From: Herve Tchepannou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 9:50 AM
To: jboss
Subject: [JBoss-user] interesting article comparing JBoss and JOnAS




< http://www.cs.rice.edu/CS/Systems/DynaServer/perf_scalability_ejb.pdf
<http://www.cs.rice.edu/CS/Systems/DynaServer/perf_scalability_ejb.pdf> > 



Herve Tchepannou 
Software Engineer 
Objexis Coorporation 
Phone: (514) 932 3295 Ext. 231 
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  


Objexis Coorporation 
http://www.objexis.com <http://www.objexis.com>  
1635 Sherbrooke West, Suite #405 
Montreal, Qc H3H 1E2 
Tel: 514.932.3295 
Fax: 514.932.4639 
http://www.objexis.com <http://www.objexis.com>  


Important - This message may contain privileged and confidential
information.  It is intended only for the use of the individual(s) named
above. If the reader of this message is not the intended recipient you are
hereby notified that any use, dissemination, distribution or reproduction of
this message is prohibited. If you have received this message in error
please notify Objexis Corporation immediately and promptly delete this
message and any copies thereof. Any views expressed in this message are
those of the individual sender and may not necessarily reflect the views of
Objexis Corporation.




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] interesting article comparing JBoss and JOnAS

2002-03-28 Thread Herve Tchepannou
Title: interesting article comparing JBoss and JOnAS





<http://www.cs.rice.edu/CS/Systems/DynaServer/perf_scalability_ejb.pdf> 



Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.





[JBoss-user] can I run JBoss with the JDK1.4?

2002-03-19 Thread Herve Tchepannou
Title: can I run JBoss with the JDK1.4?





Can I run JBoss with JDK1.4?
if no, is there any when will that happen? 


thanx


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.





RE: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL

2002-03-15 Thread Herve Tchepannou
Title: RE: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL





what's this language.
you may be the leader of this project, but this kind of language is completly innacceptable in this mailing list


Marc, il y a qqch qui s'est deboulonne dans ta cervelle ou quoi???



-Original Message-
From: marc fleury [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 10:22 PM
To: Trawick, James; Jboss-Development@Lists. Sourceforge. Net;
Jboss-User@Lists. Sourceforge. Net
Subject: RE: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL



mr trawick james,


suck my dick


marcf



|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of
|Trawick, James
|Sent: Thursday, March 14, 2002 12:33 PM
|To: Jboss-Development@Lists. Sourceforge. Net; Jboss-User@Lists.
|Sourceforge. Net
|Subject: RE: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL
|
|
|Not unfounded, personally proven.
|
|In any case there needs to be some sort of kickstart and executive summary
|for the new JBoss features.  If it means that I'll finally get the answers
|I'm looking for without holding for three hours and/or putting up with the
|hellfire here, I'll be more than happy to help produce that.
|
|I was not aware that the docs for sale were actually available.  My
|experience has been the exact opposite.  On three separate occaisons over
|the past couple of months I've attempted to purchase the clustering
|documentation.  Each time I received a message saying that there was a
|problem with their side of the transaction and a support rep would be in
|contact with me.  Despite multiple attempts to open communications about
|these cases with Flashline, they have failed to do so.  Emails apparently
|went to the bit bucket and their phone support reps have proven to be
|anywhere from rude to utterly incompetant.  So for my purposes, the docs
|aren't real because for whatever reason I can't get to them despite my
|willingness to pay the mere $10 for quality documentation.  At least they
|didn't charge me for it.
|
|chris
|
|-Original Message-
|From: Bill Burke [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, March 14, 2002 3:10 PM
|To: Trawick, James
|Cc: Jboss-Development@Lists. Sourceforge. Net; Jboss-User@Lists.
|Sourceforge. Net
|Subject: RE: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL
|
|
|Clustering docs are available for purchase.
|
|http://www.flashline.com/components/productsbyvendor.jsp?&vendorid=
|1376&affi
|liateid=260343
|
|I've also written an article on "clustering" JBoss 2.4.x
|
|http://www.onjava.com/pub/a/onjava/2001/09/18/jboss.html
|
|Clustering features in JBoss beta:
|HA-JNDI, HA-RMI, EJBs(EB, SLSB, SFSB) Failover and load-balancing
|
|The code for HTTP Session Failover is in CVS, but is a work in progress.
|Ask Sacha and Julian how it's going.  I don't work on this stuff.  HTTP
|Session Failover will probably only be available for Jetty.
|
|I don't know what you're talking about when you say docs for sale aren't
|real, because we've already sold at least a 100 copies of the clustering
|docs.  Sacha and I have gotten good feedback on these docs so your
|complaints are unfounded.
|
|> -Original Message-
|> From: [EMAIL PROTECTED]
|> [mailto:[EMAIL PROTECTED]]On Behalf Of
|> Trawick, James
|> Sent: Thursday, March 14, 2002 2:28 PM
|> To: 'David Ward'
|> Cc: 'marc fleury'; Jboss-Development@Lists. Sourceforge. Net;
|> Jboss-User@Lists. Sourceforge. Net
|> Subject: [JBoss-dev] RE: [JBoss-user] JBOSS 3.x FINAL
|>
|>
|> What I'm really interested in is the more corporate questions 
|(we're still
|> battling for JBoss over Weblogic, and clustering is a real sore
|> point).  How
|> does JBoss 3 clustering interact with web container clustering?
|> If they're
|> completely separate (which I'm pretty sure is the case, as it was
|> last time
|> I walked through the code), how can I put together a full clustered J2EE
|> stack with JBoss and (for example) Tomcat/Catalina?  To what level does
|> JBoss provide high-availability?  What are some failover scenarios?  How
|> does one initiate a graceful failover for server maintenance?  How
|> flexible/controllable is JBoss clustering in reality?
|>
|
|Failover scenarios?
|- failed network card
|- server crash
|- application crash
|- What else?
|
|Initiate graceful failover for Server maintainance?
|Just gracefully shutdown jboss.  The Cluster dynamically figures out
|topology.  Topology information is piggy-backed over invocation 
|responses to
|client proxies when it changes.
|
|How flexible/controllable?
|We wanted to keep things as simple as possible for the initial release to
|reduce code complexity and make sure we get the core things 
|correct.  If you
|want to know how flexible, buy the docs.  It's only $10.00.
|
|Bill
|
|___
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development


___
JBoss-user mail

FW: [JBoss-user] jboss3.0 docs

2002-03-14 Thread Herve Tchepannou
Title: FW: [JBoss-user] jboss3.0 docs





in which forum list?


BTW, I see a lot of post talking about Jboss3.0 Beta1/2.
Where are those beta version??? I havent seen that anywhere in the download page


-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] jboss3.0 docs



There are cluster and cmp2 docs for $$.


The db config is covered to some extent in the free online manual


The configuration/deployment stuff is unfortunately still changing enough
to make documenting it somewhat difficult.  If you look around on the
forums I've given a couple of basic explanations of the principles behind
it.


david jencks


On 2002.03.14 11:28:30 -0500 Herve Tchepannou wrote:
> is there any place where  I can find jboss3.0 documentation.
> There r a lot of changes since 2.4.4 on:
>   - configuration
>   - deployment
>   etc
> 
> Herve Tchepannou
> Software Engineer
> Objexis Coorporation
> Phone: (514) 932 3295 Ext. 231
> mailto:[EMAIL PROTECTED]
> 
> Objexis Coorporation
> http://www.objexis.com
> 1635 Sherbrooke West, Suite #405
> Montreal, Qc H3H 1E2
> Tel: 514.932.3295
> Fax: 514.932.4639
> http://www.objexis.com
> 
> Important - This message may contain privileged and confidential
> information.  It is intended only for the use of the individual(s) named
> above. If the reader of this message is not the intended recipient you
> are
> hereby notified that any use, dissemination, distribution or reproduction
> of
> this message is prohibited. If you have received this message in error
> please notify Objexis Corporation immediately and promptly delete this
> message and any copies thereof. Any views expressed in this message are
> those of the individual sender and may not necessarily reflect the views
> of
> Objexis Corporation.
> 
> 
> 
> 
> 
> 
> 
> 
> jboss3.0 docs
> 
> 
> 
> is there any place where  I can find
> jboss3.0 documentation.
> There r a lot of changes since 2.4.4
> on:
>   - configuration
>   - deployment
>   etc
> 
> 
> Herve Tchepannou
> Software Engineer
> Objexis Coorporation
> Phone: (514) 932 3295 Ext. 231
> mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]
> 
> 
> Objexis
> Coorporation
> 
> HREF=""http://www.objexis.com" TARGET="_blank">http://www.objexis.com
> 1635 Sherbrooke
> West, Suite #405
> Montreal, Qc H3H
> 1E2
> Tel:
> 514.932.3295
> Fax:
> 514.932.4639
> 
> HREF=""http://www.objexis.com" TARGET="_blank">http://www.objexis.com
> 
> 
> Important
> FACE="Arial"> - This message may contain privileged and confidential
> information.  It is intended only for the use of the individual(s)
> named above. If the reader of this message is not the intended recipient
> you are hereby notified that any use, dissemination, distribution or
> reproduction of this message is prohibited. If you have received this
> message in error please notify Objexis Corporation immediately and
> promptly delete this message and any copies thereof. Any views expressed
> in this message are those of the individual sender and may not
> necessarily reflect the views of Objexis Corporation.
> 
> 
> 
> 
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] jboss3.0 docs

2002-03-14 Thread Herve Tchepannou
Title: jboss3.0 docs





is there any place where  I can find jboss3.0 documentation.
There r a lot of changes since 2.4.4 on:
  - configuration
  - deployment
  etc


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.





RE: [JBoss-user] Very newbie question

2002-03-14 Thread Herve Tchepannou
Title: RE: [JBoss-user] Very newbie question





Position should be serializable, since it's going to be return back to the 
caller via the network (RMI)


-Original Message-
From: Loïc Lefèvre [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:35 AM
To: JBoss User Mailing List
Subject: [JBoss-user] Very newbie question



Hi everybody,
I just would like to know
what are the conditions for a Home interface
to return a Class type reference? (serialization...)


for example:


...
public interface Character extends EJBObject
{
    public Position getPosition() throws RemoteException;
    ...
}


What does the "Position" class require?


Thanks in advance,
Loïc Lefèvre



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] when should we expects a Jboss version compatible with JDK 1.4?

2002-03-01 Thread Herve Tchepannou
Title: when should we expects a Jboss version compatible with JDK 1.4?





when should we expects a Jboss version compatible with JDK 1.4?



Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.





RE: [JBoss-dev] RE: [JBoss-user] where is CMP2.0 documentation?

2001-12-04 Thread Herve Tchepannou
Title: RE: [JBoss-dev] RE: [JBoss-user] where is CMP2.0 documentation?





It's not a question of $$...
If a book is published on JBoss, I'll buy it right away. There are a lot of book published
on the net that are sold on bookstore too
It just doesn't make sense to buy doc of an opensource product for testing the alpha release.  I'll just wait for the final release of JBoss3.0.

By the way, they may be a lot of people not in north america who doesn't have access to credit card
for whom it impossible to buy stuff via internet.



-Original Message-
From: marc fleury [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 10:04 PM
To: Hicks, James; Jason Dillon
Cc: jboss; [EMAIL PROTECTED]
Subject: RE: [JBoss-dev] RE: [JBoss-user] where is CMP2.0 documentation?



|Don't see the Apache Project selling it's docs.  The developers volunteer
|their time, meaning they expect nothing in return, but contributions are


java apache is not making one dollar,


for the most part they are employees.


i don't want that model, it's stupid.


or something like that ;-)


peace,


marcf



|nice.  The developers keep the project alive, and if the project is any
|good, it shall survive, and JBoss is and it is.
|
|James Hicks
|
|-Original Message-
|From: Jason Dillon [mailto:[EMAIL PROTECTED]]
|Sent: Monday, December 03, 2001 7:43 PM
|To: Hicks, James
|Cc: jboss; [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] where is CMP2.0 documentation?
|
|
|The docs are online for free.  An opensource project needs to make some
|money to sustains itself too.
|
|--jason
|
|
|On Mon, 3 Dec 2001, Hicks, James wrote:
|
|> Why is the JBoss Group charging for documentation?  An opensource project
|> should have freely available documentation.  How can a project survive if
|> nobody knows how to set it up?
|>
|> James Hicks
|>
|> -Original Message-
|> From: Herve Tchepannou [mailto:[EMAIL PROTECTED]]
|> Sent: Monday, December 03, 2001 8:39 AM
|> To: jboss
|> Subject: [JBoss-user] where is CMP2.0 documentation?
|>
|>
|>
|> Im looking for the 2.0 documentation, but I can't find it.
|> anyone has the link?
|>
|> Herve Tchepannou
|> Software Engineer
|> Objexis Coorporation
|> Phone: (514) 932 3295 Ext. 231
|> mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
|>
|> Objexis Coorporation
|> http://www.objexis.com <http://www.objexis.com>
|> 1635 Sherbrooke West, Suite #405
|> Montreal, Qc H3H 1E2
|> Tel: 514.932.3295
|> Fax: 514.932.4639
|> http://www.objexis.com <http://www.objexis.com>
|>
|> Important - This message may contain privileged and confidential
|> information.  It is intended only for the use of the individual(s) named
|> above. If the reader of this message is not the intended
|recipient you are
|> hereby notified that any use, dissemination, distribution or reproduction
|of
|> this message is prohibited. If you have received this message in error
|> please notify Objexis Corporation immediately and promptly delete this
|> message and any copies thereof. Any views expressed in this message are
|> those of the individual sender and may not necessarily reflect the views
|of
|> Objexis Corporation.
|>
|>
|
|___
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] where is CMP2.0 documentation?

2001-12-03 Thread Herve Tchepannou
Title: where is CMP2.0 documentation?





Im looking for the 2.0 documentation, but I can't find it.
anyone has the link?


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] Stopping JBoss

2001-11-20 Thread Herve Tchepannou
Title: RE: [JBoss-user] Stopping JBoss





Ctrl-C should stop JBoss


-Original Message-
From: Juergen Fiedler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Stopping JBoss



OK, this one _must_ be more trivial than it seems to me. I am starting
JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of
JBoss. After that, I have about 50 threads that seem to be doing the
same thing: run org.jboss.Main.
Everything works quite fine. The only problem is: I don't know how to
shut the server down. Right now, I just do a 'killall java'. This only
works because JBoss is the only piece of Java based software on my
machine. 
But there has to be a more elegant way to stop JBoss. Could anybody
please help me to figure out how to do it the right way?


Thanks in advance,
Juergen





FW: [JBoss-user] problems when accessing JSP pages

2001-11-14 Thread Herve Tchepannou
Title: FW: [JBoss-user] problems when accessing JSP pages






thanx all for those quick answers
it works now
I added tools.jar in JBOSS_CLASSPATH


-Original Message-
From: Joachim Schaaf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:18 AM
To: jboss
Subject: Re: [JBoss-user] problems when accessing JSP pages



Am Mittwoch, 14. November 2001 14:49 schrieben Sie:
> I've deployed a .ear application succesfully in JBoss
> Im now trying to access any JSP of my app but Im receiving the following
> error:
>
> javax.servlet.ServletException: sun/tools/javac/Mai


Do you use the run_with_tomcat.sh script? The Java compiler is missing 
(tools.jar).


Joachim


-- 
Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
cataloom AG | Eupener Str. 148 | 50933 Köln | http://cataloom.com/
Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] problems when accessing JSP pages

2001-11-14 Thread Herve Tchepannou
Title: problems when accessing JSP pages





I've deployed a .ear application succesfully in JBoss
Im now trying to access any JSP of my app but Im receiving the following error:


javax.servlet.ServletException: sun/tools/javac/Main
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Unknown Source)


Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
    at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Unknown Source)



Does anyone knows whats the problem?


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] JBoss/Linux and threading - Command Pattern

2001-10-25 Thread Herve Tchepannou
Title: RE: [JBoss-user] JBoss/Linux and threading - Command Pattern





- One good advantages of the Command pattern is that you can test most of your application logic out of the EJB container, if the business objects are implemented as standard Java classes instead of entity beans. (BO, DAO, Command and CommandServer all implemented as standard java classes)

When you want to move the commands to a EJB environement, implement the CommandServer as SLSB



-Original Message-
From: Fred Loney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 12:43 PM
To: Hermann RANGAMANA; Herve Tchepannou;
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss/Linux and threading



Command pattern is a control abstraction intended to decouple business
and presentation logic. To oversimplify, it replaces a method doIt()
with a class DoIt. Like most patterns, it has many variants and can be
both productively and dangerously creative. It can be used to implement
EJB or replace EJB (cf.
http://www.theserverside.com/patterns/thread.jsp?thread_id=654). It is
orthogonal to whether EJB is used, but does offer flexibility in the
decision.


Like other patterns, it is also handy for lulling gullible managers into
approving extra work without their knowledge. If one claims "Technology
X is too slow/dumb/etc." and the manager asks "What's the alternative?",
"Simplify the code with Pattern Y" sounds a whole let better than "Write
it ourselves".


The case in question is EJB vs. roll-your-own, an important build/buy
trade-off. btw, it's good to see real numbers posted. It'd be great to
get a head-to-head comparison with code and other metrics, esp. access
time. Most of us have committed to one solution, for better or worse,
and can't afford to run dual implementation trials.


Fred Loney
Spirited Software, Inc.
www.spiritedsw.com


- Original Message -----
From: "Hermann RANGAMANA" <[EMAIL PROTECTED]>
To: "Herve Tchepannou" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 12:49 AM
Subject: Re: [JBoss-user] JBoss/Linux and threading



> BTW, what is "the command pattern" ?
>
> --hermann
>
> - Original Message -
> From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 24, 2001 6:41 PM
> Subject: [JBoss-user] JBoss/Linux and threading
>
>
> > 1) I've started an application with JBoss on a PII 300, Linux RH6.0
> > My application had:
> >    - 5 business object as CMP Entity beans
> >    - 4 Stateless Session beans
> >    - 4 MDB
> >    - 100+ test cases
> > After running the test cases, I was monitoring the number of thread
> > spawned by jboss::
> >    1srt time: 150 threads
> >    2nd time: ~350 threads
> >    3rd time: ~500 threads
> > very quickly, my system was running out of threads :-(
> >
> >
> > 2) I redesign the application using the command pattern:
> > Ma application has
> > - 5 business objects as standard java classes
> > - 5 DAO classes for managing the persistent with straight JDBC
calls
> > - 30 commands for executing all system actions, build as
standard
> > java classes
> > - 1 command executor as Stateless JavaBean
> > - 100+ test cases
> > After running the test cases, I obtained the following results:
> > 1st time: 3 threads
> > 2nd time: 2 threads
> > 3rd time: 2 threads
> > etc
> >
> > 3) I add into my application 4 MDB for async processing (deleting
files,
> > sending mails etc) and
> > a rerun my test cases, here are the results that I obtains:
> > 1st time: 79 threads
> > 2ns time: 79 threads
> > 3rd time: 70 threads
> >
> >
> > CONCLUSION:
> > Think twice before using all EJB features!
> >
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] JBoss/Linux and threading

2001-10-24 Thread Herve Tchepannou

1) I've started an application with JBoss on a PII 300, Linux RH6.0
My application had:
   - 5 business object as CMP Entity beans
   - 4 Stateless Session beans
   - 4 MDB
   - 100+ test cases
After running the test cases, I was monitoring the number of thread
spawned by jboss::
   1srt time: 150 threads
   2nd time: ~350 threads
   3rd time: ~500 threads
very quickly, my system was running out of threads :-(


2) I redesign the application using the command pattern:
Ma application has
- 5 business objects as standard java classes
- 5 DAO classes for managing the persistent with straight JDBC calls
- 30 commands for executing all system actions, build as standard
java classes
- 1 command executor as Stateless JavaBean
- 100+ test cases
After running the test cases, I obtained the following results:
1st time: 3 threads
2nd time: 2 threads
3rd time: 2 threads
etc

3) I add into my application 4 MDB for async processing (deleting files,
sending mails etc) and
a rerun my test cases, here are the results that I obtains:
1st time: 79 threads
2ns time: 79 threads
3rd time: 70 threads


CONCLUSION:
Think twice before using all EJB features!




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to configure JBossMail and MS Exchange server

2001-10-23 Thread Herve Tchepannou
Title: How to configure JBossMail and MS Exchange server





does anyone knows how to configure JavaMail and MSExchange server?


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




FW: [JBoss-user] 4000 downloads per day

2001-10-18 Thread Herve Tchepannou
Title: FW: [JBoss-user] 4000 downloads per day





this is a good news
I hope that it will force sun to do something for the J2ee certification.
I hope they are not silly enough to ignore all the contribution that JBoss is doing
to make J2ee affordable to mister every body


-Original Message-
From: marc fleury [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 17, 2001 9:36 PM
To: Jboss-Development@Lists. Sourceforge. Net; Jboss-User@Lists.
Sourceforge. Net; Jboss-Business@Yahoogroups. Com
Subject: [JBoss-user] 4000 downloads per day



JBoss soars to new heights.


We were 1 download shy of 4000 yesterday (oct 16) as we achieved 3999
downloads as measured by SourceForge an independent 3rd party.


As I mention on the website (news blurb to appear tomorrow) JBoss' number
are in a category by itself in the J2EE industry.


Keep it coming, 3.0/RH is just going to clean this industry.  It is too
crowed, too noisy, we need the clean infrastructure.  More than ever we need
JBoss.


PLgC


marcf



Marc Fleury
President
JBoss Group, LLC




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] cmp primary key

2001-10-15 Thread Herve Tchepannou
Title: RE: [JBoss-user] cmp primary key





In CMP, in the ejbCreate(), you must generate the key and assign it to the primary key field of your bean.
The strategy of generating the PK depends on your context.


1. If the PK is a string
You can use a UUID generator to generate a key of 32 character. That key will be unique within the application server network. (This is portable to all app server and database).

I have an implementation of it that Im using for my app, If u need it, jut contact me


2. If the PK is int or long
- If your database supports sequences, you create 1 sequence per entity bean in the database. in ejbCreate(), request the next value of the sequence via a JDBC call. (This is not portable to all db. PostgreSQL, Orable supports sequences)

- Use a SessionBean for generating the unique key.
See http://www.theserverside.com/patterns/thread.jsp?thread_id=220
See also http://www.theserverside.com/resources/patterns_review.jsp (Primary Key Generation Strategies)


-Original Message-
From: Frank Morton [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 15, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] cmp primary key



I'm a newbie for sure, but I've been surfing around for
a solution to assigning unique primary key values with
CMPs. I have seen lots of vague descriptions of how
to do it and some specific ones that are all followed by
other comments from people why that solution doesn't
work.


Does anyone have a specific solution and the complete
code to do this they can share? This seems like it must
be a very common problem that ought to have a standard
solution.


Help. I'm really getting frustrated.


Frank




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] URGENT: Strange problems with JBoss-HypersonicSQL

2001-10-09 Thread Herve Tchepannou
Title: URGENT: Strange problems with JBoss-HypersonicSQL





Im using the command pattern for my application which is very interesting because I can test my application out of the JBoss context.

When Im testing my app out of JBoss, all my test cases are successful. no problem!


When I run my command via a CommandServer (stateless session bean) deployed on JBoss, Im receiving the following error:


[Default] java.lang.NullPointerException
[Default]   at org.hsql.Channel.check(Channel.java:72)
[Default] 
[Default]   at org.hsql.Function.(Function.java:27)
[Default] 
[Default]   at org.hsql.Parser.readTerm(Parser.java:650)
[Default] 
[Default]   at org.hsql.Parser.readFactor(Parser.java:634)
[Default] 
[Default]   at org.hsql.Parser.readSum(Parser.java:617)
[Default] 
[Default]   at org.hsql.Parser.readConcat(Parser.java:607)
[Default] 
[Default]   at org.hsql.Parser.readCondition(Parser.java:537)
[Default] 
[Default]   at org.hsql.Parser.readAnd(Parser.java:513)
[Default] 
[Default]   at org.hsql.Parser.readOr(Parser.java:503)
[Default] 
[Default]   at org.hsql.Parser.parseExpression(Parser.java:498)
[Default] 
[Default]   at org.hsql.Parser.processCall(Parser.java:43)
[Default] 
[Default]   at org.hsql.Database.execute(Database.java:160)
[Default] 
[Default]   at org.hsql.ServerConnection.run(ServerConnection.java:58)





RE: [JBoss-user] EJX

2001-10-04 Thread Herve Tchepannou
Title: RE: [JBoss-user] EJX





I jump to EJB/JBoss after discovering ejbdoclet/xdoclet...
before that, I found EJB too cumbersome


-Original Message-
From: Steve Magoun [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 3:36 PM
To: Herve Tchepannou
Subject: RE: [JBoss-user] EJX



I think you meant to use 'reply to all' :)
 
(great tool, eh? It's saved us *years* of developer time already)
 
 
 
-Original Message-----
From: Herve Tchepannou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 3:17 PM
To: Steve Magoun
Subject: RE: [JBoss-user] EJX




I stongly recommend it to new EJB devellopers 



-Original Message- 
From: Steve Magoun [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] 
Sent: Thursday, October 04, 2001 3:08 PM 
To: [EMAIL PROTECTED] 
Subject: RE: [JBoss-user] EJX 



There's a great tool called XDoclet (formerly EJBDoclet) 
http://sourceforge.net/projects/xdoclet/
<http://sourceforge.net/projects/xdoclet/>  that uses a Javadoc plugin
to 
generate deployment descriptors as well as the home/remote interfaces, 
pk classes, etc for your beans. It's a huge timesaver. 


Steve 



-Original Message- 
From: [EMAIL PROTECTED] 
[ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]On Behalf Of 
[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2001 2:36 PM 
To: [EMAIL PROTECTED] 
Subject: [JBoss-user] EJX 



After using jBoss for over a eighteen months, I go to sleep for a couple


and 
wake up to find that EJX is no longer in the binary distribution for 
jBoss! 
How are we editing our deployment descriptors these days?  By hand? 


Wes 


___ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user
<https://lists.sourceforge.net/lists/listinfo/jboss-user>  



___ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user
<https://lists.sourceforge.net/lists/listinfo/jboss-user>  





RE: [JBoss-user] JBoss/Linux thread probs

2001-09-27 Thread Herve Tchepannou
Title: JBoss/Linux thread probs



What's 
the theorical difference between having the -server set or 
not?
 
Does 
anyone know how to monitor JBoss? I tryed to run monitor.jar, but that app does 
nothing :-(
 
Is 
there any JBoss develloper who can explain me why JBoss use that much 
threads??
Once 
again, what will be the best JBoss config for develloping on Linux (in terms of 
GC, caching and pooling)?
 

  -Original Message-From: Bill Burke 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 27, 2001 
  3:10 PMTo: [EMAIL PROTECTED]Subject: RE: 
  [JBoss-user] JBoss/Linux thread probs
  We 
  experienced some weird shit with Linux 7.1, jdk 1.3.1 and JBoss 
  2.2.2.  It may be related.  We saw huge amounts of memory being 
  allocated for no apparent reason.  We reverted to jdk1.3.0 and everything 
  worked fine.
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson, 
DougSent: Thursday, September 27, 2001 2:50 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: [JBoss-user] 
JBoss/Linux thread probs
One thing I noticed is that the -server options sucks.. trying 
removing that..
 
d.

  -Original Message-----From: Herve Tchepannou 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 27, 
  2001 12:21 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] 
  JBoss/Linux thread probs
  Im develloping my app on Linux RH 6.2/JBoss 2.4 and 
  HypersonicSQL. My app has:  - 4 session beans  - 6 entity 
  beans using CMP  - 4 MDB  - 120 test cases. When I start JBoss, 
  they are 48 threads that are spawned. When I run 
  all my test cases the 1st time , 230 threads are spawned the 2nd time 340 threads the 3rd time 500 
  threads until my JBoss crashed because too many 
  processed are spawned. 
  I understand that Linux thread managemenent is not the 
  best, but how can I configure my JBoss in order to 
  reduce that threading behaviour (gc config? caching size? pool size?). 
  Does anyone has a clue? 
  By the way, when I run my test-cases on Win2K, I have no 
  prob.. 
  Herve Tchepannou Software 
  Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] 
  
  Objexis Coorporation http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, 
  Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com 
  Important - This message may contain privileged and 
  confidential information.  It is intended only for the use of the 
  individual(s) named above. If the reader of this message is not the 
  intended recipient you are hereby notified that any use, dissemination, 
  distribution or reproduction of this message is prohibited. If you have 
  received this message in error please notify Objexis Corporation 
  immediately and promptly delete this message and any copies thereof. Any 
  views expressed in this message are those of the individual sender and may 
  not necessarily reflect the views of Objexis 
Corporation.


[JBoss-user] JBoss/Linux thread probs

2001-09-27 Thread Herve Tchepannou
Title: JBoss/Linux thread probs





Im develloping my app on Linux RH 6.2/JBoss 2.4 and HypersonicSQL.
My app has:
 - 4 session beans
 - 6 entity beans using CMP
 - 4 MDB
 - 120 test cases.
When I start JBoss, they are 48 threads that are spawned.
When I run all my test cases the 1st time , 230 threads are spawned
the 2nd time 340 threads
the 3rd time 500 threads
until my JBoss crashed because too many processed are spawned.


I understand that Linux thread managemenent is not the best, but how can I configure my JBoss
in order to reduce that threading behaviour (gc config? caching size? pool size?). Does anyone has a clue?


By the way, when I run my test-cases on Win2K, I have no prob.. 



Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] Custom finders in Jaws

2001-09-26 Thread Herve Tchepannou
Title: RE: [JBoss-user] Custom finders in Jaws





You cant do that with finders.
You can't use a finder to return only one field. A finder returns you either 1 entity bean or a collection of entity beans.

If u want to extract the last names, call findAll() and then traverse the returned collection and collect all the first-names.

For ur case, you may want to consider using JDDC


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 2:05 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Custom finders in Jaws
Importance: Low



Howdy, How can I declare a findByLName() in jaws, I tried this.Like the docs
chpt 6

 ClassBean
 ... 

 findByLName
 LNAME!=null 
//What I want is for the collection to contain all lastNames from all
records(I guess I need a wildcard here so It will return all)
//Similar to a findAll() except returning only 1 column from the table.
   
THANKS!!!
Graham



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0

2001-09-26 Thread Herve Tchepannou
Title: RE: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0





the 1st apache release of the xml framework was xerces.jar


-Original Message-
From: Philip Van Bogaert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0



You could reverse the question, Why use xerces when you got jaxp and
crimson?


Tbone
- Original Message -
From: "Nicolai P Guba" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 6:01 PM
Subject: Re: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0



Herve Tchepannou <[EMAIL PROTECTED]> writes:


> actually, Im comfuse with crimson?  what the purpose of that jar
> when xerces does the job?


It's a choice of XML parser implementation.  JAXP is a generic
interface whereas crimson is the driver implementation.  Xerces does
both in one go.


The only reason to stick with a difficult to set up parser would be
because there is a lot of XML processing and it would have an adverse
effect on the system otherwise.  JBoss only reads a couple of XML
files so it shouldn't matter that much.


When I installed cocoon I had to remove jaxp.jar and crimson.jar and
replace it with xerces.jar.  I've noticed no difference at all.


My 0.02 UKP



    Hehehe Sasha,  the UK hasn't joined the Euro yet



--
  Nicolai P Guba    http://www.gnu.org http://www.frontwire.com
    mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
    GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0

2001-09-26 Thread Herve Tchepannou
Title: RE: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0





actually, Im comfuse with crimson?
what the purpose of that jar when xerces does  the job?


-Original Message-
From: Nicolai P Guba [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0



"Saint-Martin Cecile" <[EMAIL PROTECTED]> writes:


> Sorry, I have found what is the problem.  JBoss was using Apache
> Xerces for parser and tomcat was using Jaxp.  I delete jaxp.jar and
> crimson.jar directory and it's OK.


Hmmm, I wonder why bother with crimson.jar and jaxp.jar when xerces
got it all?  Is there any particular reason for this?  I'd vote for
xerces for simplicity's sake.


my 0.02 DM.-


:)


-- 
  Nicolai P Guba    http://www.gnu.org http://www.frontwire.com
    mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
    GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] (no subject)

2001-09-25 Thread Herve Tchepannou
Title: RE: [JBoss-user] (no subject)





- For devellopement purpose, Im using HypersonicSQL
- For production, PostgreSQL is a good choice


-Original Message-
From: Shandrila V.Janardhan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] (no subject)



Hello


can anyone suggest the open source database that is best supported with
JBoss? 



Thanks


Shandrila V.J



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Collection findAll()

2001-09-24 Thread Herve Tchepannou
Title: RE: [JBoss-user] Collection findAll()





that's illegal I think.
finder function should return either the remote interface, java.util.Collection or java.util.Enumeration types


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 3:15 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Collection findAll()
Importance: Low



Is it legal to make the method in ejbHome :
public ResultSet findAll()
instead of:
public Collection findAll()  ?
Unless someone can share code as to how to use a Collection class within a
JSP
 (I can print out the Collection on the server "System.out.print") with my
intermediate java bean but cant get it from there  to JSP.
Thanks, Graham


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Accessing JavaMail session

2001-09-24 Thread Herve Tchepannou
Title: RE: [JBoss-user] Accessing JavaMail session





I've already fixed the problem.


JBoss bind the mailer to java:/Mail.
To redirect it to java:comp/env/mail/Mail, I add the following entries to ejb-jar.xml



    
        tspace/Mailer
        ...
        
          mail/Mail 
          javax.mail.Session 
          Container 
        
        ...
    



and jboss.xml





  
 tspace/Mailer
 
     mail/Mail
     Mail
 
  






  
 Mail
 java:/Mail
  



-Original Message-
From: danch [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Accessing JavaMail session



Herve Tchepannou wrote:


> In JBoss documentation, its recommended to defined in the ejb-jar.xml a 
> resource named mail/Mail of type javax.mail.Session. and in the code, 
> request it via the JNDI name java:Mail, which works fined.
> 
> But when I try to request the JavaMail session with the JNDI name 
> java:comp/env/mail/Mail, I receive an exception?! It seems to me that 
> EJB specs recomend to access resource via java:/comp/env/... domain.
> 
> So why can't I access mail session via java:/comp/env/mail/Mail?
> 
> 


Are you using 'java:comp' or 'java:/comp'? The first is correct.
What exception are you getting?


-danch



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] Accessing JavaMail session

2001-09-22 Thread Herve Tchepannou
Title: Accessing JavaMail session





In JBoss documentation, its recommended to defined in the ejb-jar.xml a resource named mail/Mail of type javax.mail.Session. and in the code, request it via the JNDI name java:Mail, which works fined.

But when I try to request the JavaMail session with the JNDI name java:comp/env/mail/Mail, I receive an exception?! It seems to me that EJB specs recomend to access resource via java:/comp/env/... domain. 

So why can't I access mail session via java:/comp/env/mail/Mail?



Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: XDoclet 1.0 released - was [JBoss-user] Creating EJB2.0 Relations and CMP XML filesXDoclet 1.0 released

2001-09-21 Thread Herve Tchepannou
Title: RE: XDoclet 1.0 released - was [JBoss-user] Creating EJB2.0 Relations and CMP XML filesXDoclet 1.0 released





I've just switch from EJBDoclet to xDoclet.. awsomme!
For me, EJB/xDoclet are the MOST essencial tools for EJB developement!


-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 2:38 AM
To: JBoss 2
Cc: Ara Abrahamian
Subject: XDoclet 1.0 released - was [JBoss-user] Creating EJB2.0
Relations and CMP XML filesXDoclet 1.0 released



Hey list,


This would be an ideal time to let people know that XDoclet version 1.0
has just come of age.  XDoclet is the successor of EJBDoclet, Rickard
Oberg's tool for automatic generation of interfaces, deployment
descriptors, and now much much more.


XDoclet 1.0 has full support for EJB2.0 and is focused on JBoss, but also
covers other EJB containers, meaning that if you find yourself in the
unfortunate position of having to stop using JBoss and use another
container all you need to do is change your ant script and some comments
in your code.  It also has support for Struts, JSP Taglibs, WebWork,
Apache-SOAP, and JMX.


Go to http://www.sourceforge.net/projects/xdoclet to get the download.


cheesr
dim


ps - Hunter, this is exactly what you're asking about (o:


On Thu, 20 Sep 2001, Hunter Hillegas wrote:


> To all people using EJB2.0:
> 
> How are you creating your XML files and defining your relationships? By
> hand? Most of the references and documents I've seen suggest using the J2EE
> DeployTool to create the files, since they have gotten more complex...
> 
> I've had a hard time getting the deploytool to work. Are other people using
> it? Something else? By hand?
> 
> Thoughts?
> 
> Hunter
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] How to obtain the name of an EJB object at runtime?

2001-09-20 Thread Herve Tchepannou
Title: How to obtain the name of an EJB object at runtime?





I have a bean deployed with the name tspace/User.
How can I obtain the name of that component at runtime. for exemple, in setSessionContext(..)
thanx


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




RE: [JBoss-user] MDB listening to a queue not working?

2001-09-18 Thread Herve Tchepannou
Title: RE: [JBoss-user] MDB listening to a queue not working?





put your test code in a try...finally block.
in the finally, close the session, connection and queue so every thing is cleanup property.
I already had that prob and thats how I fixed it.


-Original Message-
From: prajapatib [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 11:22 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] MDB listening to a queue not working?



Hi,


I am trying to send a message to a queue which a MDB is listening to,
however the onMessage() method never gets called, I just get a stacktrace
telling me that the peer has reset the connection.
( I am using a JUnit TestCase as the Client on NT4 sp 4 with JBoss 2.4 (with
tomcat running), JDK 1.3 )


I have provided bean and client code below, with the contents of the
relevant xml files.


- The stacktrace is as follows:


New Client Connection accepted.  Current Thread=Thread[OIL Worker,5,JBossMQ
Server Threads]
Client Connection set spyDistributedConnection, ClientID=ID2.  Current
Thread=Thread[OIL Worker,5,JBossMQ Server Threads]
[java.net.SocketException: Connection reset by peer: JVM_recv in socket
input stream read
  at java.net.SocketInputStream.socketRead(Native Method)
  at java.net.SocketInputStream.read(SocketInputStream.java:86)
  at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
  at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
  at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1549)
  at java.io.ObjectInputStream.refill(ObjectInputStream.java:1683)
  at java.io.ObjectInputStream.read(ObjectInputStream.java:1659)
  at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1905)
  at
org.jbossmq.distributed.server.DistributedJMSServerOIL.run(DistributedJMSSer
verOIL.java:79)
  at java.lang.Thread.run(Thread.java:484)


- The bean code is very simple:


public class TaskProxy implements MessageListener, MessageDrivenBean
{


    MessageDrivenContext ctx = null;
    public TaskProxy(){}
    public void setMessageDrivenContext(MessageDrivenContext ctx) throws
EJBException{ this.ctx = ctx; }
    public void ejbRemove(){ctx=null;}
    public void ejbCreate(){}


    public void onMessage(Message m)
    {
    System.out.println("i have just received a message, and it
says"+m.toString());
    }


}


- The client code is:


    private void sendTestQueueMessage()throws Exception
    {


    Properties props = new Properties();


    props = new Properties();
 
props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFac
tory");
    props.put("java.naming.provider.url","localhost:1099");
    props.put("java.naming.factory.url.pkgs","org.jboss.naming");


    Context context = new InitialContext(props);


    QueueConnectionFactory queueFactory =
    
(QueueConnectionFactory)context.lookup("QueueConnectionFactory");


    QueueConnection connection = queueFactory.createQueueConnection();
    QueueSession queueSession =
 connection.createQueueSession(
    false,
    Session.AUTO_ACKNOWLEDGE);


    Queue queue = (Queue)context.lookup("queue/testQueue");
    QueueSender sender = queueSession.createSender(queue);
    TextMessage message  = queueSession.createTextMessage("hello this is
a message to a mdb");
    System.out.println("HELLO");
    sender.send(queue, message); // CRASHES HERE!!
    System.out.println("GOODBYE");
    }


- The jboss.xml has this in it:


  
  uk.co.isesolutions.util.scheduler.biz.TaskProxy
  Standard Message Driven Bean
  queue/testQueue
  


- The ejb-jar.xml has this in it:


  
    uk.co.isesolutions.util.scheduler.biz.TaskProxy
 
uk.co.isesolutions.util.scheduler.biz.TaskProxy
    
    Container
    Auto-acknowledge
    
    javax.jms.Queue
    
    


    
    
 
uk.co.isesolutions.util.scheduler.biz.TaskProxy
    *
    
    Required
    


- The jbossmq.xml has this:


    
        testQueue
    


What is going on ?!?!
Many thanks in advance.





Disclaimer


This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immedia

RE: [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()

2001-09-17 Thread Herve Tchepannou
Title: RE: [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()





What is the transaction setting of ur bean and modifyDetails()?
are u sure that they are at 'Required'?


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 9:58 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Strange problem with BMP entity bean caching -
incorrect values found by findByPrimaryKey()



Folks,



JBoss 2.4.0 with Tomcat 3.2.3
-


I have a strange problem that has completely foxed me:


The sequence of events on a BMP entity bean is as follows. All steps are
called from a client in separate transactions:


1. Bean Created


2. Bean Read
   State OK at this point


3. Bean Updated
   State written to DB OK, beans internal value object is updated OK.


4. Bean Read.
   State retrieved is state *before* update in step 3.


5  Bean Updated


6. Bean Read



The problem is that the read at (4) retrieves the bean state that was
present *before* the update at (3) was processed.


I have checked the database and the update in (3) does get written to the
DB.
I have debugged the code and the ejbStore() and ejbLoad() methods get called
as expected.


As far as I can see, the cached bean does not accurately reflect the
contents of the DB.
Its almost as if findByPrimaryKey() is getting the wrong bean instance from
the cache.



I am using commit-option A as JBoss is only thing talking to the DB.


The code that updates the bean is as follows: (Note "details" is a
ContactModel value object instance)


--
// Find Contact instance first in case it does not exist
ContactKey primaryKey = details.getContactPrimaryKey();
Contact contact = contactHome.findByPrimaryKey(primaryKey);


// Modify Bean and re-read in case DB has massaged the data
contact.modifyDetails(details);
contact = contactHome.findByPrimaryKey(primaryKey);
ContactModel updatedDetails = contact.getDetails();
---



and the ejbStore method looks like: (contactDetails is the beans internal
value object holding the bean state)


-
try
{
  setDAO();
  this.contactDetails = (ContactModel)
contactDao.update(this.contactDetails);
  modified = false;


  logger.info("contact bean stored, contactDetails = " +
this.contactDetails);
 }
 catch (DAOFinderException ex)
 {
  context.setRollbackOnly();
  throw new NoSuchEntityException(ex.getMessage());
}
catch (DAOApplicationException ex)
{
  context.setRollbackOnly();
  throw new EJBException(ex.getMessage());
}
catch (DAOSystemException ex)
{
  context.setRollbackOnly();
  throw new EJBException(ex.getMessage());
}







Does anyone have any ideas? I am completely stumped...



Thanks in advance - Adam





___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] how to run JBoss with Tomcat?

2001-08-09 Thread Herve Tchepannou
Title: how to run JBoss with Tomcat?





I've downloader JBoss-2.4 with Tomcat-3.2.3.
I run the script run_with_tomcat.bat but, it looks like tomcat is not started
when I go to http://localhost:8080 in my browser, nothing hapens
In jboss/log/server.log, there is no mention of Tomcat


any clue what to do to run tomcat with JBoss?
thanx in advance





Re: [JBoss-user] [URGENT] Problem while calling a method of a session bean (hint)

2001-08-08 Thread Herve Tchepannou

Herve Tchepannou wrote:
 
if I change the UserCollection function by:

 public boolean findById( int id )
 throws ObjectNotFoundException,
 RemoteException
 {
 if ( TeamSpace.DEBUG_ENABLED )
 {
 m_logger.debug( "findById(" + id + ")" );
 }
 
 try
 {
 UserHome home = ( UserHome ) getHome( UserHome.JNDI_NAME,
 UserHome.class );
 User usr = home.findByPrimaryKey( new UserPK( id ) );
 return true;
 }
 catch ( FinderException f )
 {
 throw new ObjectNotFoundException( "Can't find user with
id:
 " + id, f );
 }
 }

every thing works fine. Looks like JBoss has problem returning UserData
class (BTW: UserData implements java.io.Serializable)


> 
> I have 2 beans: User (Entity) and UserCollection (Session).
> In UserCollection I have the following functions:
> 
> public UserData findById( int id )
> throws ObjectNotFoundException,
> RemoteException
> {
> if ( TeamSpace.DEBUG_ENABLED )
> {
> m_logger.debug( "findById(" + id + ")" );
> }
> 
> try
> {
> UserHome home = ( UserHome ) getHome( UserHome.JNDI_NAME,
> UserHome.class );
> User usr = home.findByPrimaryKey( new UserPK( id ) );
> return usr.getData();
> }
> catch ( FinderException f )
> {
> throw new ObjectNotFoundException( "Can't find user with id:
> " + id, f );
> }
> }
> 
> When I call this function from my test-case, I receive the following
> exception:
>  [test] .test.UserCollectionBeanTest.testFindById()
>  [test] java.rmi.ServerException: RemoteException occurred in server
> thread; nested exception is:
>  [test]  java.rmi.ServerException: Load failed; nested exception is:
> 
>  [test]  java.lang.NullPointerException
>  [test] java.rmi.ServerException: Load failed; nested exception is:
>  [test]  java.lang.NullPointerException
>  [test] java.lang.NullPointerException
>  [test]  at
> 
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
> 
>  [test]  at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> 
>  [test] F
>  [test]  at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
>  [test]  at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
> Source)
>  [test]  at
> 
>org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357)
> 
>  [test]  at
> 
>org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
> 
>  [test]  at $Proxy2.findById(Unknown Source)
> 
> Does anyone knows what's wrong in my bean?
> thanx
> 
> PS: Im using JBoss 2.4 with Linux 6.2
> 
>   
> 
> 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
> 
> 
> 
>
> 
>
> 
>   
>  Collection of users
>  tspace/UserCollection
>  tbh.tspace.bo.user.UserCollectionHome
>  tbh.tspace.bo.user.UserCollection
>  tbh.tspace.bo.user.UserCollectionSession
>  Stateless
>  Container
> 
>  
> ejb/tspace/User
> Entity
> tbh.tspace.bo.user.UserHome
> tbh.tspace.bo.user.User
> tspace/User
>  
> 
>   
> 
>   
>  TeamSpace user
>  tspace/User
>  1.0
>  tbh.tspace.bo.user.UserHome
>  tbh.tspace.bo.user.User
>  tbh.tspace.bo.user.UserCMP
>  Container
>  tbh.tspace.bo.user.UserPK
>  True
> 
>  
> Unique Id
> id
>  
>  
> Login
> login
>  
>  
> Password
> password
>  
>  
> First name
> firstname
>  
>  
> Last name
> lastname
>  
>  
> Email
> email
>  
>  
> ID of the user timezone
> timezoneID
>  
>  
> Version number for soft locking
> version
>  
> 
>   
> 
>   
>  Workspace bean
>  tspace/Workspace
>

[JBoss-user] [URGENT] Problem while calling a method of a session bean

2001-08-08 Thread Herve Tchepannou

I have 2 beans: User (Entity) and UserCollection (Session).
In UserCollection I have the following functions:

public UserData findById( int id )
throws ObjectNotFoundException,
RemoteException
{
if ( TeamSpace.DEBUG_ENABLED )
{
m_logger.debug( "findById(" + id + ")" );
}

try
{
UserHome home = ( UserHome ) getHome( UserHome.JNDI_NAME,
UserHome.class );
User usr = home.findByPrimaryKey( new UserPK( id ) );
return usr.getData();
}
catch ( FinderException f )
{
throw new ObjectNotFoundException( "Can't find user with id:
" + id, f );
}
}

When I call this function from my test-case, I receive the following
exception:
 [test] .test.UserCollectionBeanTest.testFindById()
 [test] java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
 [test]  java.rmi.ServerException: Load failed; nested exception is:

 [test]  java.lang.NullPointerException
 [test] java.rmi.ServerException: Load failed; nested exception is:
 [test]  java.lang.NullPointerException
 [test] java.lang.NullPointerException
 [test]  at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)

 [test]  at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)

 [test] F
 [test]  at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
 [test]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
Source)
 [test]  at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357)

 [test]  at
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)

 [test]  at $Proxy2.findById(Unknown Source)

Does anyone knows what's wrong in my bean?
thanx

PS: Im using JBoss 2.4 with Linux 6.2



http://java.sun.com/dtd/ejb-jar_2_0.dtd";>



   

   


  
 Collection of users
 tspace/UserCollection
 tbh.tspace.bo.user.UserCollectionHome
 tbh.tspace.bo.user.UserCollection
 tbh.tspace.bo.user.UserCollectionSession
 Stateless
 Container


 
ejb/tspace/User
Entity
tbh.tspace.bo.user.UserHome
tbh.tspace.bo.user.User
tspace/User
 



  

  
 TeamSpace user
 tspace/User
 1.0
 tbh.tspace.bo.user.UserHome
 tbh.tspace.bo.user.User
 tbh.tspace.bo.user.UserCMP
 Container
 tbh.tspace.bo.user.UserPK
 True

 
Unique Id
id
 
 
Login
login
 
 
Password
password
 
 
First name
firstname
 
 
Last name
lastname
 
 
Email
email
 
 
ID of the user timezone
timezoneID
 
 
Version number for soft locking
version
 






  

  
 Workspace bean
 tspace/Workspace
 1.0
 tbh.tspace.bo.workspace.WorkspaceHome
 tbh.tspace.bo.workspace.Workspace
 tbh.tspace.bo.workspace.WorkspaceCMP
 Container
 tbh.tspace.bo.workspace.WorkspacePK
 True

 
Workspace unique id
id
 
 
Name
name
 
 
Description
description
 
 
Date of creation
creationDate
 
 
Version number for soft locking
version
 






  


   

   









  
 
 tspace/UserCollection
*
 
 Supports
  
  
 
 tspace/User
*
 
 Supports
  
  
 
 tspace/Workspace
*
 
 Supports
  

   






http://www.jboss.org/j2ee/dtd/jaws.dtd";>

   java:/TSpaceDS
   Hypersonic SQL

   

  
 tspace/User
 t_user
 true
 true
 true
 false


 
email
VARCHAR(255)
 
 
firstname
VARCHAR(50)
 
 
id
pk
 
 
lastname
VARCHAR(50)
 
 
login
VARCHAR(16)
 
 
password
VARCHAR(16)
 
 
timezoneID
VARCHAR(50)
 


  

  
 tspace/Workspace
 t_workspace
 true
 true
 true
 false


 
creationDate
 
   

[JBoss-user] (no subject)

2001-08-08 Thread Herve Tchepannou
Title: 





I have an entity bean named 'User' (associate with value object UserData)
and a session bean named 'UserCollection' that contains the function 'findById( int id )'.
Whenever I call this function with a valid id, i receive the following exception:


 [test] java.rmi.ServerException: RemoteException occurred in server thread;
 nested exception is:
 [test] java.rmi.ServerException: Load failed; nested exception is:
 [test] java.lang.NullPointerException
 [test] java.rmi.ServerException: Load failed; nested exception is:
 [test] java.lang.NullPointerException
 [test] java.lang.NullPointerException
 [test] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(Unknown Source)
 [test] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source
)
 [test] at sun.rmi.server.UnicastRef.invoke(Unknown Source)
 [test] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.i
nvoke(Unknown Source)
 [test] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeCont
ainer(GenericProxy.java:357)
 [test] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.i
nvoke(StatelessSessionProxy.java:123)
 [test] at $Proxy2.findById(Unknown Source)
 [test] at test.UserCollectionBeanTest.testFindById(UserCollectionBeanTe
st.java:123)
 [test] at java.lang.reflect.Method.invoke(Native Method)
 [test] at junit.framework.TestCase.runTest(TestCase.java:156)
 [test] at junit.framework.TestCase.runBare(TestCase.java:130)
 [test] at junit.framework.TestResult$1.protect(TestResult.java:100)
 [test] at junit.framework.TestResult.runProtected(TestResult.java:118)
 [test] at junit.framework.TestResult.run(TestResult.java:103)
 [test] at junit.framework.TestCase.run(TestCase.java:121)
 [test] at junit.framework.TestSuite.runTest(TestSuite.java:149)
 [test] at junit.framework.TestSuite.run(TestSuite.java:144)
 [test] at junit.framework.TestSuite.runTest(TestSuite.java:149)
 [test] at junit.framework.TestSuite.run(TestSuite.java:144)
 [test] F
   [test] Time: 19.007
   [test]   at junit.textui.TestRunner.doRun(TestRunner.java:63)
 [test]
    [test]  at junit.textui.TestRunner.start(TestRunner.java:217)


BTW: in 'log/server.log', the error is not reported, every thing seems fine.
Im using JBoss v2.4 with Tomcat 2.3.2
 <>  <>  <> 



 ejb-jar.xml
 jaws.xml
 jboss.xml


[JBoss-user] Question about JAWS table generation

2001-08-08 Thread Herve Tchepannou
Title: Question about JAWS table generation





Im using EJBDoclet v1.2 to generate my EJB files.
When I build all my files and deploy them, here are the message that are log in 'server.log':


[JAWS] Table t_user created
[JAWS] Created table 't_user' successfully.
[JAWS] Primary key of table 't_user' is 'null'.


I checked in hypersonic, and the field 'pk' is not the primary key. Why? 
Is there any xml-tag for JAWS for specifying the primary key? 


here are my deployment files:


 <>  <>  <> 



 ejb-jar.xml
 jboss.xml
 jaws.xml