Re: [JBoss-user] Deployment Failure JBoss 3.0beta

2002-02-20 Thread Edward Q. Bridges


when i look at the results page for WebIntegrationUnitTestCase from today:
http://lubega.com/testarchive/reports-20020220-0519/org/jboss/test/web/test/WebIntegrationUnitTestCase.html

the only error is a 500 error on UserTransactionServlet that doesn't appear to be 
caused by a deployer rewrite.

could you please be more specific, or explain where the exact problems you're 
referring to are being tested?

thanks in advance
--e--


On Tue, 19 Feb 2002 17:35:17 +, Adrian Brock wrote:

Hi,

There's still some problems reported by WebIntegrationUnitTestCase
in JBoss3.0.0DR1 due to the deployer rewrite.

You might want to monitor this link.
http://lubega.com/testarchive/?M=D

Hopefully, this will be fixed soon :-)

Regards,
Adrian






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



Re: [JBoss-user] Deployment Failure JBoss 3.0beta

2002-02-20 Thread Edward Q. Bridges

probably the best thing is for you to make your .ear file available via 
a url to allow people to download it.  large attachments aren't good to 
send through email.  

i would be happy to give it a go, even though my post was directed more 
toward adrian brock and his post regarding the error in the unit tests.

regards
--e--






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



[JBoss-user] Order of events with BMP

2002-02-15 Thread Edward Q. Bridges

using JBoss 2.4.3

i don't think i'm clear with regard to the sequence of events with the 
creation of a BMP bean.

as i understand the sequence of events:
* client calls home.create(xxx);
* server calls bean.ejbCreate(xxx).
* implementation of ejbCreate(xxx) should insert a row into the database, 
and return an initialized copy of the primary key.

when simply trying to create a bean, the server is generating an error 
message from ejbStore().  

does the server call ejbStore() after ejbCreate()?  and should that method 
do the work of actually putting the data for the bean into the database?

can someone clearly describe the correct sequence of calls to the interface 
methods?  

thanks in advance
--e--



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



[JBoss-user] File RAR (was: How can I use a background process with JBoss)

2002-02-14 Thread Edward Q. Bridges


can this be both possible and useful?

as far as i can tell from reading a tutorial on JCA, when the server 
starts up it spawns several connections to a resource via the 
ManagedConnectionFactory.  then the client requests one of these 
connections via a ConnectionFactory.

the connections are (apparently) made anonymously to a datasource 
configured in a config file that the server reads in at startup.

in this regard, how useful is this really when considering files.  in 
this context how is it possible to create connections to arbitrary files 
or network connections?   (IMHO this would be the the truly useful aspect 
of such a service). the most useful application of this would be to 
create a tempfile service that provides a connection to an anonymous 
file on the filesystem.



On Wed, 13 Feb 2002 16:00:46 -0500, David Jencks wrote:

I think the only useful thing you can impelement with a file system
connector is serialization: keep connections from accessing the same 
file
at the same time. Transactions without versioning would be very 
difficult. 
I don't really see any place for security.

If you are interested in an example that is only a little more 
complicated
than what would be necessary for a filesystem connector, I can send you 
my
javaspace adapter.  I haven't been able to test it, however based on the
other (3) adapters I've written I think everything important is
implemented.  I'd also be happy to answer questions and review code.

Aside from the spec, the recent jca book is somewhat informative, but
copying an existing adapter will be much easier.

david jencks





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



Re: [JBoss-user] Directories

2002-02-13 Thread Edward Q. Bridges

if you put myservlet.war in $JBOSS_HOME/deploy you will be able to access 
it via http://localhost:8080/myservlet

at least, that's the way it works with jboss-jetty



On Tue, 12 Feb 2002 15:11:14 -0800 (PST), Dustin Grabau wrote:

I am still experimenting with servlets and find no use
in the vauge tutorials I find so I have come to ask if
anyone knows what directory in
JBoss-2.2.2_Tomcat-3.2.2 I would need to put my
servlet to use the link
Http://localhost:8080/servlet/myservlet (if i need to
put it in a specific directory at all)

--Dustin

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

___
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] How can I use a background process with JBoss

2002-02-13 Thread Edward Q. Bridges


why not just send the user an email after the order has been processed?

you could process the order using a message-driven bean that sends an email 
when completed, since you won't know if the user is still available after 
processing the order.

HTH




On Wed, 13 Feb 2002 14:16:36 +0100, Dirk Storck wrote:

How can I achieve this with JBoss and Struts ? What would be the best way 
to
implement this



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



RE: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread Edward Q. Bridges


my curiosity has been piqued.  what's involved in making a .rar?
is there someone that would be interested in helping me spec it out?

--e--


On Wed, 13 Feb 2002 18:15:37 +0100, Coetmeur, Alain wrote:

it could be a good tutorial for .rar developement...
any volunteer ?




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



[JBoss-user] postgres rabbithole confusion

2002-02-06 Thread Edward Q. Bridges

i have been trying to migrate a 2.4.3/postgres setup to use rabbithole, but 
am not getting very far. :-(

i copied (with minor modifications) the default config mentioned in the 
online manual but it is not working for me.

i've attached the postgres-service.xml and an excerpt from the server log 
(debug=true), but am at a loss to interpret the error message (Object name 
cannot be null -- what object??).

i would really appreciate it if someone could point out what i'm missing in 
this.

(jboss 3.0.0 alpha and postgres 7.1.2)

thanks in advance!
--e--



?xml version=1.0 encoding=UTF-8?
!-- $Id: postgres-service.xml,v 1.2 2002/01/14 00:16:51 d_jencks Exp $ --


!-- = --
!--   --
!-- Example configuration for the postgres database.  --
!-- Put the driver jar jdbc7.0-1.2.jar in lib/ext --
!-- Contributed by Ignacio Coloma [EMAIL PROTECTED]--
!-- = --


server

  classpath archives=postgresql.jar/
  mbean code=org.jboss.resource.ConnectionFactoryLoader 
	 name=jboss.jca:service=ConnectionFactoryLoader,name=ContentDS
attribute name=ManagedConnectionFactoryProperties
ConnectionURL=jdbc:postgresql://localhost/contentdb
	DriverClass=org.postgresql.Driver
	UserName=ebridges
	Password=ebridges
/attribute
attribute name=JndiNameContentDS/attribute
attribute name=TransactionManagerNamejava:/TransactionManager/attribute
depends optional-attribute-name=ResourceAdapterNamejboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter/depends
depends optional-attribute-name=ConnectionManagerFactoryLoaderNamejboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory/depends
attribute name=ConnectionManagerProperties
  BlockingTimeoutMillis=50
  IdleTimeoutMinutes=30
  MaxSize=10
  CleanupIntervalMinutes=10
  MinSize=0
  MaxIdleTimeoutPercent=1.0
/attribute
attribute name=PrincipalMappingClass
  org.jboss.resource.security.ManyToOnePrincipalMapping
/attribute
attribute name=PrincipalMappingProperties
  UserName=ebridges
  Password=ebridges
/attribute
  /mbean
/server



server.log
Description: Binary data


Re: [JBoss-user] production config on Mandrake Linux

2001-12-17 Thread Edward Q. Bridges


this is what my isp is using:
http://www.freebsd.org/java/dists/13.html

the isp is hub.org, and i highly highly recommend them.  very responsive,
good pricing, and part of money goes to support postgres development.

they also provide virtual servers where you basically have your own machine
in a virtual environment -- including sudo access, your own webserver, etc.

HTH
--e--



On Mon, 17 Dec 2001 09:04:10 +0100, Sebastian Hauer wrote:

Hi Edward,


Edward Q. Bridges wrote:

 you might also investigate *BSD.  it has very robust threading.
Just curious. Which JDK do you use under *BSD I thought there it no 1.3
compliant version.

Regards,

   Sebastian


argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



Re: [JBoss-user] Re: JBoss-user digest, Vol 1 #1576 - 13 msgs

2001-10-19 Thread Edward Q. Bridges


actually, you _don't_ want to use OID's in any form, they are internal
housekeeping numbers that the RDBMS uses, they're really not intended for
application work.  besides, you then bind your code to postgres, because it's
platform dependent (analogous to the rowid in oracle).  it's also not
guaranteed to be unique: if you move the database to a new installation,
OID's start from the beginning. if you really really must make your code
postgres-dependent, then  use the serial datatype (which creates an
implicit sequence).

in any event the most platform independent approach is to do the select from
the sequence in the same transaction as the insert.


On 19 Oct 2001 08:34:47 -0200, Marcus Brito wrote:

 As an alternative to fetching the parameters from the original definition
 as above, you can use
SELECT last_value FROM seqname;
 to obtain the last value allocated by any backend.

You can't trust this. Perhaps some other process (other bean, other
application, other thread) has alredy modified the sequence.

Suppose you have a table named MYTABLE, with a column named TBL_ID,
whose value is obtained from the SEQ_TBL_ID sequence.

If you do something like:

PreparedStatement stmt =3D dbConn.prepareStatement(INSERT INTO mytable(tbl=
_id) VALUES (nextval('seq_tbl_id')));
stmt.executeUpdate();

you should do the following (in JBoss) to get the value just inserted

int oid =3D ((org.postgresql.Statement)(((org.jboss.pool.jdbc.PreparedState=
mentInPool)stmt).getUnderlyingPreparedStatement())).getInsertedOID();

and then

stmt =3D dbConn.prepareStatement(SELECT tbl_id FROM mytable WHERE oid =3D =
?);
stmt.setInt(1, oid);
ResultSet rs =3D stmt.executeQuery();
rs.next();
int tbl_id =3D rs.getInt(tbl_id);

This is pretty ugly, specilly the line to obtain the inserted OID. So
many typecasts. Also, this is not portable across application servers.
But is the only way to make sure you obtain the last value you inserted.
If I'm wrong, please someone correct me.

--=20
Ja ne,
   Pazu
   mailto: [EMAIL PROTECTED]

Anime Gaiden: de f=E3s para f=E3s, sempre.


argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



Re: [JBoss-user] sql query

2001-10-10 Thread Edward Q. Bridges

would this do it?

select grp, cmod, dmod from table where
grp in (select distinct grp from table)




On Tue, 9 Oct 2001 19:17:43 -0400, David Jencks wrote:

unfortunately your question makes no sense.  If the GRP value does not
determine the CMOD and DMOD values, which one of the rows with a given GRP
value do you want?  If there is an aggregation function that can sensibly
be applied to CMOD and DMOD, you can do a group by query select grp,
f(CMOD), f(DMOD) from TABLE group by grp  where f is the aggregation
function (sum, min, max, etc)

david jencks

On 2001.10.09 17:27:05 -0400 [EMAIL PROTECTED] wrote:
 Sorry my internet access is down so I am going to try and ask this
 question
 here instead of at a related site.
 I need to do a query like this:
 String sql=SELECT DISTINCT  GRP,CMOD,DMOD FROM TABLE;
 The problem is I only want distinct on the first column(GRP) but it
 returns
 all distinct combinations of the above three columns.
 Any sql pros out there?
 THANKS!! Graham
 
 ___
 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



Re: [JBoss-user] Many instance of TomCat/Jboss running..

2001-10-08 Thread Edward Q. Bridges

On Mon, 8 Oct 2001 18:15:09 +0800, John LYC wrote:

I don't know why there are many instances of tomcat or jboss  (dont know
which one) running in my server..

if you're using linux, this might answer the why part of your question:
 http://www.jboss.org/documentation/HTML/ch11s02.html

you might also check out the last few emails in the thread from last week
with the subject line:
production config on Mandrake Linux

regards
--e--

argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



Re: [JBoss-user] Start Jboss with tomcat as Daemon?

2001-10-08 Thread Edward Q. Bridges


http://www.jboss.org/documentation/HTML/ch11s11.html



On Mon, 8 Oct 2001 21:43:03 +0800, John LYC wrote:

Hi all,
how do i start Jboss-tomcat as a daemon in linux?



argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



Re: [JBoss-user] production config on Mandrake Linux

2001-10-05 Thread Edward Q. Bridges

you might also investigate *BSD.  it has very robust threading.

regards
--e--

On Fri, 5 Oct 2001 20:32:12 +1000, Peter Wone wrote:

This is a bit of a worry; guess I'll have to look into the terms of the
freebie Intel Solaris.




argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



RE: [JBoss-user] JNDI with Jetty Servlets

2001-10-04 Thread Edward Q. Bridges


after some poking around, it turns out that the problem is with
$JBOSS_HOME/conf/jetty/jetty.xml

here is the entire file:

?xml version=1.0  encoding=ISO-8859-1?
!DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure 1.1//EN
http://jetty.mortbay.com/configure_1_1.dtd;

Configure class=org.mortbay.http.HttpServer
  Call name=addListener
Arg
  New class=org.mortbay.http.SocketListener
Set name=Port8080/Set
Set name=MinThreads5/Set
Set name=MaxThreads255/Set
Set name=MaxIdleTimeMs6/Set
Set name=MaxReadTimeMs6/Set
  /New
/Arg
  /Call

  Call name=addWebApplication
Arg/pix/*/Arg
ArgC:/JBoss-2.4.1_Jetty-3.1.RC9-1/jboss/deploy/pix.war/Arg
ArgSystemProperty name=jetty.home
default=.//etc/webdefault.xml/Arg
Arg type=booleantrue/Arg
  /Call

/Configure

The problem seems to come from the call to addWebApplication.  when that is
present, and i deploy to $JBOSS_HOME/deploy/mywarfile, then java:comp/env
entries specified in WEB-INF/web.xml don't get created.  when i comment it
out, they do get created.

this also happens with the JBoss-2.4.3_Jetty-3.1.1-1 distro.

is this a problem?  or should it just be part of configuring a .war to use
with jboss/jetty that there is no need to edit the jetty.xml file?

thanks
--e--


On Tue, 02 Oct 2001 23:44:11 +0100, Julian Gosnell wrote:

I am having reports of another JNDI related problem with this release.

Would it be possible for you to drop back to the 2.4.0/3.1.RC8 release and let
me know if that works, or shows the same problem ?

Thanks,


Jules



argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



[JBoss-user] JNDI with Jetty Servlets

2001-10-02 Thread Edward Q. Bridges

i am using the JBoss 2.4.1 bundle with Jetty 3.1.RC9-1 on Win 2k and JDK 1.3.

i have an entry in web.xml in a .war as such:
web-app
env-entry
  descriptionThis is an environment entry./description
  env-entry-nameEnvName/env-entry-name
  env-entry-valueThisIsaValue/env-entry-value
  env-entry-typejava.lang.String/env-entry-type
/env-entry

servlet
   servlet-nameSystemDump/servlet-name
   servlet-classSystemDump/servlet-class
/servlet

servlet-mapping
   servlet-nameSystemDump/servlet-name
   url-pattern/system/*/url-pattern
/servlet-mapping
/web-app

and the SystemDump servlet simply dumps all the values from java:comp/env

i deploy the .war file to $JBOSS_HOME/deploy successfully, and it deploys
without a problem.

the servlet works okay, but doesn't display the env-entry from the
deployment descriptor.

does the jboss/jetty integration support jndi locating?  if so, am i missing
something in this?

thanks
--e--



argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



[JBoss-user] Help preparing an intro to JBoss

2001-09-19 Thread Edward Q. Bridges

hi all,

i just came back from the training session in London, and found it to be a
very rewarding experience (thanks for the dinner marc!).  being new to EJB
stuff -- and newer to JBoss -- i found it to be both an excellent
introduction to the inner workings of JBoss, and how it deals with EJB.  to
be sure, there was a lot over my head, but it was enough to be exposed to the
breadth and depth of it all.  one thing i would have found helpful, would
have been to have the detailed description of the JBoss architecture
presented earlier in the week rather than friday.  but, it was useful and
insightful anyway.

i am planning on giving a one hour or so presentation to my co-workers
(senior and mid level java) introducing them to JBoss.  they are mostly
familiar with Weblogic (56), and most of them are more experienced with JSP
and Servlets than with EJB.

i had considered this as a rough outline for the presentation:
   * intro to jboss.org
   * description of jboss features and things that differentiate it from the
competition
   * description of jboss config  directory layout
   * description of jboss architecture
   * ???

so, my questions are:
   * has anyone done something of this sort before, and can offer any
materials that can help?
   * can anyone add to the list of talking points, or suggest alternatives?
   * along those lines, would anyone care to offer some
ideas/information/approaches to flesh out each of the talking points?

thanks a lot!
--e--






argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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



RE: [JBoss-user] Help preparing an intro to JBoss

2001-09-19 Thread Edward Q. Bridges


that would be great!  unfortunately, i was there but i missed the
presentation.

i was also hoping, however, to get direct feedback from users and developers
on the project.  perhaps people who made the case in their own organizations?

thanks again
--e--


On Wed, 19 Sep 2001 13:42:43 +0100, Weir, John wrote:

This sounds like the talk that marc gave to the 'open evening' ( Wednesday )
during the training course in London -

marc, maybe you could make that available for those of us who participate in
Corporate JBoss Advocacy 

-Original Message-
From: Edward Q. Bridges [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2001 11:13
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Help preparing an intro to JBoss


hi all,

i just came back from the training session in London, and found it to be a
very rewarding experience (thanks for the dinner marc!).  being new to EJB
 .
 .
 .

argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh




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