Re: [JBoss-user] DataSources, JNDI, ejb-jar.xml and avoiding jboss.xml

2001-07-11 Thread Allen Fogleson
What you must remember is that this was designed this way This is to allow you to map things at deployment time. Just like CMP beans should be mapped at deployment time so should resources. What if you have 6 DS resources on the server... which should I pick to map to if you dont tell me (

Re: [JBoss-user] Jsp & EJB's

2001-07-10 Thread Allen Fogleson
Accessing EJB's directly in JSP is strongly discouraged, however if you are going to do this in a JSP you will have to include the home and remote classes in the WEB-INF/lib or WEB-INF/classes directory for them to be found. I would actually suggest using a java bean to encapsulate the calls m

Re: [JBoss-user] Help

2001-07-09 Thread Allen fogleson
Well first off make sure you do not have hardcoded your provider url as t3://.   Secondly... if you are using ejb-ref in your web.xml (i assume you are) make sure you have a jboss-web.xml to map the ejbs into the enc.   lastly any ejb-ref in the ejb-jar.xml will require a corresponding e

Re: [JBoss-user] validation and setErrorHandler?

2001-07-08 Thread Allen fogleson
The sun DTD is very picky about order in the web.xml, check that first.   Al   - Original Message - From: G.L. Grobe To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 6:48 PM Subject: [JBoss-user] validation and setErrorHandler? After seeing the jbosstest ex

Re: [JBoss-user] 's needed?

2001-07-08 Thread Allen fogleson
When you have ejb-ref's you will also need a jboss-web.xml (for the war file) and possibly jboss.xml if you have ejb-ref's in your bean jars.   Al   - Original Message - From: G.L. Grobe To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 3:09 PM Subject: [JBoss-user]

Re: [JBoss-user] DataSource

2001-07-08 Thread Allen fogleson
import javax.sql.DataSource; - Original Message - From: "Richard Bottoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 08, 2001 1:05 PM Subject: Re: [JBoss-user] DataSource > At 07:15 AM 7/8/01 -0400, you wrote: > >your lookup is wrong. assuming you have a resource ref

Re: [JBoss-user] DataSource

2001-07-08 Thread Allen fogleson
your lookup is wrong. assuming you have a resource reference in your web.xml and a mapping in jboss-web.xml then you should be able to lookup the datasource with... DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mysql"); Al - Original Message - From: "Richard Bottoms" <[EMAI

Re: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-03 Thread Allen fogleson
i would refactor honestly. its probably too much of a pain to try and keep these classes in the inheritance structure of an ejb. you can read some examples of how to inherit things in the RMH book. But its mostly aimed at new development. Since the bean instantiation class implements entityBean y

Re: [JBoss-user] how does EJB 2.0 fix CMP?

2001-07-01 Thread Allen fogleson
Jim, Well under 1.1 cmp you are pretty much limited to the 1 Entity ejb = 1 DB row. (or persistent row... whatever). Entity beans were not intended to be finegrained like that, but to describe a business entity (lets use the classic example of a customer) Customers have names, and addresses (

Re: [JBoss-user] which servlet containers can be in same JVM?

2001-07-01 Thread Allen fogleson
right now jetty and tomcat... there are prebundled binaries even. Al - Original Message - From: Jim <[EMAIL PROTECTED]> To: jboss-user <[EMAIL PROTECTED]> Sent: Sunday, July 01, 2001 9:27 PM Subject: [JBoss-user] which servlet containers can be in same JVM? > Which servlet containers

Re: [JBoss-user] what is jboss-web.xml

2001-07-01 Thread Allen fogleson
you have to link your ejb-refs in jboss.xml to their jndi name. (also resource refs, etc) jboss-web.xml does similar things in web apps. - Original Message - From: G.L. Grobe <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 01, 2001 5:29 PM Subject: [JBoss-user] what is jbo

Re: [JBoss-user] entity beans name = database tables name??

2001-06-29 Thread Allen fogleson
actually CMP beans do not have to be named the same as the table, but you would need a jaws.xml to override it if it wasnt. Al - Original Message - From: Carlos Ferrão <[EMAIL PROTECTED]> To: jboss ml <[EMAIL PROTECTED]> Sent: Friday, June 29, 2001 8:53 PM Subject: [JBoss-user] entity be

Re: [JBoss-user] servlets vs. EJB

2001-06-29 Thread Allen fogleson
owever: > > 1) it pays to use simple data models > > 2) developers don't heed (1) > > Allen fogleson wrote: > > > yes, but using the 1 entity bean = 1 database table is not in general in my > > experience the best architecture in the world. entity beans are desig

Re: [JBoss-user] cgi

2001-06-29 Thread Allen fogleson
the thing to remember here is that weblogic is several containers... its an EJB container, a servlet/jsp container and it also does HTML. (and jsp, and such) OTOH jboss doesnt concern itself with any of the web containers. it is, for the most part and to newbies can be viewed mostly as, an EJB co

Re: [JBoss-user] servlets vs. EJB

2001-06-29 Thread Allen fogleson
yes, but using the 1 entity bean = 1 database table is not in general in my experience the best architecture in the world. entity beans are designed to represent business entities, and such entities are rarely modeled in one database table. Take the classic and ubiquitous example of a customer. Ev

Re: [JBoss-user] JBoss Verifier

2001-06-29 Thread Allen fogleson
if you havent modified your jboss much the directory for deployment is deploy, and the files are deployed from there to ../tmp/deploy/Default Al - Original Message - From: sheena sid <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 29, 2001 2:48 AM Subject: [JBoss-user] JBo

Re: [JBoss-user] servlets vs. EJB

2001-06-28 Thread Allen fogleson
Frank; It really depends on the application. we do fairly highlevel applications for our clients that are based on J2EE. We use servlets, JSP, Session EJB, and entity ejb, but there is no single solution. There are some guidelines of course. our Model components are almost always EJB. Whether

Re: [JBoss-user] Security in JBoss

2001-06-28 Thread Allen fogleson
are you using the new jboss 2.2.2? search the documentation on JAAS. Scott has a very good tutorial on it there.   Al - Original Message - From: Scott Keane To: [EMAIL PROTECTED] Sent: Friday, June 29, 2001 12:27 AM Subject: [JBoss-user] Security in JBoss

Re: Subject: [JBoss-user] Oracle 8i lite

2001-06-28 Thread Allen fogleson
pointbase is a great embedded database. If you only needed tcp though Jboss comes with hypersonic which allows tcp/ip access. Al - Original Message - From: Vladimir Blagojevic <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 28, 2001 11:13 PM Subject: Re: Subject: [JBoss-

Re: [JBoss-user] Oracle 8i lite

2001-06-28 Thread Allen fogleson
I assume all your references to 8i you meant 8i lite?   since 8i does have a tns listener, and a type 4 driver...   al   - Original Message - From: Larry O To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 7:04 PM Subject: [JBoss-user] Oracle 8i lite

Re: [JBoss-user] Is there BMP sample?

2001-06-28 Thread Allen fogleson
famous :) > > Thanks. > Vincent. > > > -Message d'origine- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de > > Allen fogleson > > Envoye : jeudi 28 juin 2001 9:11 > > A : [EMAIL PROTECTED] > > Objet : Re: [JBoss-user

Re: [JBoss-user] Is there BMP sample?

2001-06-27 Thread Allen fogleson
you would still use a datasource... well unless you just want around the whole transaction, connection pooling of the container... I cant imagine why. I can whip together a quick simple example if you havent found what you need yet... email me direct Al - Original Message - From: Boris G

Re: [JBoss-user] Keeping cmp beans in synch

2001-06-27 Thread Allen fogleson
Do you remove it by calling the database or the remove() of the entity bean? if the former... look at your default standardjboss.xml and change the commit option from the default of A. This presumes that the ejb has exclusive access to the database. you want either B (caching but non exclusive acc

Re: [JBoss-user] Access control

2001-06-27 Thread Allen fogleson
cess control > On Wed, Jun 27, 2001 at 07:02:05PM -0400, Allen fogleson wrote: > > fortunately yes. > > Why is this fortunate? > > Cheers > Bent D > -- > Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd >

Re: [JBoss-user] Strange Behavior When DataSource goes down.

2001-06-27 Thread Allen fogleson
every time i have seen a hang on startup with the DS binding it was because either a) the driver wasnt available to Jboss b) The driver wasnt available to jboss. I have actually seen a driver "mysteriously" disappear from the lib/ext dir. (i think some moron deleted the jar lol) and had this prob

Re: [JBoss-user] Client code example

2001-06-27 Thread Allen fogleson
ohh duh, heh. i hate having to populate hashtables :) - Original Message - From: danch <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 27, 2001 7:52 PM Subject: Re: [JBoss-user] Client code example > Note that the JNDI URL that Allen is using in his code example will

Re: [JBoss-user] Lookup question

2001-06-27 Thread Allen fogleson
assuming you do the binding in jboss.xml you can look it up in 2 ways... Object o = ctx.lookup("UserManager"); //assumes you have made the jndi name UserManager in the global space or... binding it into the java;comp/env namespace with jboss.xml... Object o = ctx.lookup("java:comp/env/user/Use

Re: [JBoss-user] Is there BMP sample?

2001-06-27 Thread Allen fogleson
Id be careful expecting too much out of the Container managed relation stuff... a lot of it is being discarded from 2.0. Unfortunately :( Al - Original Message - From: Uwe Pleyer <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 27, 2001 6:40 PM Subject: Re: [JBoss-user]

Re: [JBoss-user] Does it really works ?

2001-06-27 Thread Allen fogleson
lets start with moving back to jdk1.3 I have had more problems getting ANYTHING to work properly with 1.4. Jboss-tomcat definitely has difficulties now. But of course 1.4 is not in a production ready state yet either...   Al   - Original Message - From: jean To: [EMAIL

Re: [JBoss-user] Client code example

2001-06-27 Thread Allen fogleson
try { InitialContext ctx = new Initialcontext(); Object o = ctx.lookup("java:comp/env/ejb/simpleSession"); simpleSessionHome home = (simpleSessionHome)PortableRemoteObject.narrow(o, simpleSessionHome.class); simpleSession bean = home.create(); . . . } catch( Al --

Re: [JBoss-user] Access control

2001-06-27 Thread Allen fogleson
fortunately yes. Al - Original Message - From: <[EMAIL PROTECTED]> To: jboss <[EMAIL PROTECTED]> Sent: Wednesday, June 27, 2001 4:23 PM Subject: [JBoss-user] Access control > It appears as if J2EE's use of JAAS gives me some control over which > users can use which methods in whi

Re: [JBoss-user] Sun J2EE to jBoss

2001-06-26 Thread Allen fogleson
dang i missed that... thanks Dan. Sometimes what you do out of habbit you just forget heh Al - Original Message - From: danch (Dan Christopherson) <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 4:40 PM Subject: Re: [JBoss-user] Sun J2EE to jBo

Re: [JBoss-user] FREE LOADERS

2001-06-26 Thread Allen fogleson
I agree. There is still plenty of work that can be done on the documentation. Tobias is heading up a great effort to bring it up to compliance with 2.2 but we will soon be into 2.4 and 3.0 and will need more work there again. There could be more tutorials on how to actually use JBoss (im working o

Re: [JBoss-user] Using java beans in finder methods

2001-06-26 Thread Allen fogleson
sure... why not. lol. Do you mean does it automatically create the finders for you? No, but finders can be overridden (even in CMP beans) in the implementation class. Al - Original Message - From: Eduardo Bastos Leite <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 20

Re: [JBoss-user] Sun J2EE to jBoss

2001-06-26 Thread Allen fogleson
You can reuse the ejb-jar.xml deployment descriptor if that is what you are asking. However, if you are asking about the specific j2eeRI.xml files, then no. Using BMP you shouldn't have too many problems or need to create extra files, other than potentially a jboss.xml to handle security. Al ---

Re: [JBoss-user] Suggested way of calling Session Beans from JSP

2001-06-26 Thread Allen fogleson
I would never call anything that i can get away with NOT calling from a JSP directly. I always try to use a bean or a tag library to encapsulate that call. sometimes scriptlets are necessary in a jsp, but in general they become maintenance nightmares :) If you have ever worked maintenance of a la

Re: [JBoss-user] Can custom finder methods return java.util.Vector

2001-06-26 Thread Allen fogleson
You can return a Vector, in practice we have found it easier to return a Collection, but since it subclasses (indirectly) Collection a Vector can be returned. Al - Original Message - From: Anoop <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 3:43 PM Subject: [JB

Re: [JBoss-user] Re: freeloading

2001-06-26 Thread Allen fogleson
- Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: Nathalie Mason <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 3:24 AM Subject: [JBoss-user] Re: freeloading > Actually, I was referring to the newbies, and there are more of them every > day, as

Re: [JBoss-user] Key generation by random numbers

2001-06-26 Thread Allen fogleson
A similar technique is to do something like concat your content, then use the string.hashCode function to get a hashcode. fairly well distributed, easily repeatable... etc etc. :) Al - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 9:28

Re: [JBoss-user] Key generation by random numbers

2001-06-26 Thread Allen fogleson
I guess it is feasible. you will have some hits eventually, especially if the same pool of random numbers is used accross many tables. There are several primary key generators available for free that create unique ID's for you, i would suggest using one of those. Al - Original Message -

Re: [JBoss-user] getEJBHome(): NoInitialContextException

2001-06-25 Thread Allen fogleson
uhmmm why are you getting the home again? you already have the home. - Original Message - From: Boris Garbuzov <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 2:42 PM Subject: [JBoss-user] getEJBHome(): NoInitialContextException > I am just playing with EJB A

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-25 Thread Allen fogleson
if not db independent. I freely admit we do this all the time. we dont do it in the ejbCreate... we do it before calling create, but same difference. recently i had to write some components (really a set of beans/tags/jsps) that would work on (potentially) several databases... it was a little more

Re: [JBoss-user] CMP example of primitive key using int

2001-06-25 Thread Allen fogleson
Can you include the code. I assume you are wrapping the int primary key in the primary key class, like RMH does in the book? Al - Original Message - From: Hiep Luong <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 2:01 PM Subject: [JBoss-user] CMP example of primi

Re: [JBoss-user] who can state it clear about primitives?

2001-06-24 Thread Allen fogleson
1. return types must meet rmi/iiop. which in general means no primitives. 2. simple answer... yes.. except as the primary key. 3. according to the spec... on entity beans... ALL primary keys MUST be objects, not primitives. If you want to use primitives you wrap them in a compund key class. so

Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Allen fogleson
There is a JBoss-Jetty bundle... you dont need tomcat if you have jetty. it is also a servlet/jsp container Al - Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 24, 2001 12:41 PM Subject: Re: [JBoss-user] Apache+Tomcat+JBoss > At

Re: [JBoss-user] Mail list volume - victim of it's own success?

2001-06-24 Thread Allen fogleson
Actually how to connect JBoss to oracle is in the docs. I just went through it and it all appears to be current. Al - Original Message - From: Guy Rouillier <[EMAIL PROTECTED]> To: JBoss User <[EMAIL PROTECTED]> Sent: Saturday, June 23, 2001 11:34 PM Subject: [JBoss-user] Mail list volum

Re: [JBoss-user] More Newbie Questions

2001-06-24 Thread Allen fogleson
off hand I would say the second line is a narrowing from javax.rmi.PortableRemoteObject it should say session = (Session)PortableRemoteObject.narrow(InitialContext().lookup(("java:comp/env /mail/MyMail"), Session.class); Al - Original Message - From: Hunter Hillegas <[EMAIL PROTECTED]>

Re: [JBoss-user] primitive primary key description

2001-06-24 Thread Allen fogleson
technically an rmi/iiop type... serializeable class. Long would work... long wont. - Original Message - From: Vinay Menon To: [EMAIL PROTECTED] Sent: Saturday, June 23, 2001 3:33 PM Subject: Re: [JBoss-user] primitive primary key description Culprit is long [the one you have flagged].

Re: [JBoss-user] Composite Primary Key and CMP.

2001-06-22 Thread Allen fogleson
create a custom primary key class then define the primary key fields... al - Original Message - From: Devraj Mukherjee <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: JBoss List Serve <[EMAIL PROTECTED]> Sent: Saturday, June 23, 2001 1:36 AM Subject: [JBoss-user] Composite Primary Ke

Re: [JBoss-user] Using remote ejb inside of a webapp w/Jetty

2001-06-22 Thread Allen fogleson
you do that in the jboss-web.xml. it looks like so env/ejb/hello hello you put the jboss-web.xml in the WEB-INF directory with your web.xml file. al - Original Message - From: Jason Dillon <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 6:50 PM Su

Re: [JBoss-user] jsp only

2001-06-22 Thread Allen fogleson
The advantage of the ear file is setting the context root of course but other than that I agree a war file would work fine. Al - Original Message - From: Tahir Awan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 10:01 AM Subject: RE: [JBoss-user] jsp only >

Re: [JBoss-user] Urgent: storing vector in the database

2001-06-21 Thread Allen fogleson
y of any type in the database with CMP. > > Igor > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Allen > fogleson > Sent: Wednesday, June 20, 2001 5:05 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Urgent: storing ve

Re: [JBoss-user] closing PreparedStatements

2001-06-21 Thread Allen fogleson
also I have always closed things in reverse order.. resultset, preparedstatement, connection. it may or may not matter depending on the drivers i guess, but better safe than sorry. amazingly ihave seen problems with oracle and closing connections before resultsets and prepared statements. at l

Re: [JBoss-user] How to set the classpath to run the InterestClient sample

2001-06-20 Thread Allen fogleson
just call it without the .class if you call it with .class java is looking for a class called "class" in the package InterestClient Al - Original Message - From: Christine <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 12:13 AM Subject: [JBoss-user] How to set

Re: [JBoss-user] Urgent: storing vector in the database

2001-06-20 Thread Allen fogleson
what sql type are you using? blob? in general I wouldnt serialize a vector to a data table. I would populate a vector (actually probably an array list... ) from sql results. Al - Original Message - From: Igor Rabinovich <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June

Re: [JBoss-user] hello.ear example: Servlet works OK, but not JSP

2001-06-20 Thread Allen fogleson
the problem here if you have not changed the ear is that I use the default context not /hello see my earlier message to Richard on how to change the context Al - Original Message - From: Richard Kasperowski <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20

Re: [JBoss-user] Please, please , please

2001-06-20 Thread Allen fogleson
it is all in the deployment descriptors... first web.xml the relevent parts first to map the servlet hello simple.helloServlet hello /hello this names out helloServlet.class hello, then maps ALL calls to /hello to that servlet so h

Re: [JBoss-user] Please, please , please

2001-06-20 Thread Allen fogleson
I think Richard was referring to the interest example being slightly more than a bite for a new user. Al - Original Message - From: Dovan Nguyen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 4:33 PM Subject: Re: [JBoss-user] Please, please , please > How co

Re: [JBoss-user] hello.ear example: Servlet works OK, but not JSP

2001-06-20 Thread Allen fogleson
in my example everything was mapped to the default context (/). so the helloServlet class is mapped to /hello. http://localhost:8080/hello calls the servlet class helloServlet to see a JSP invoked try calling http://localhost:8080/ the included jsp "index.jsp" is mapped as a welcome file, so

Re: [JBoss-user] Please, please , please

2001-06-20 Thread Allen fogleson
ill jar this all up as soon as i get t the machine i did the tutorial on. al - Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 1:57 PM Subject: [JBoss-user] Please, please , please > Would someone send an example set o

Re: [JBoss-user] Adding deployment directory

2001-06-20 Thread Allen fogleson
you have a semicolon in there it should be something like ../deploy/myDirectory I think. Al - Original Message - From: Saint-Martin Cecile <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 5:40 AM Subject: [JBoss-user] Adding deployment directory > > What is

Re: [JBoss-user] hello

2001-06-19 Thread Allen fogleson
Wonder if he is adding the / at the end... not sure how tomcat would handle it without it. I deployed the simple app in the default context... and it worked. (lol. I wouldnt put out a tutorial i didnt test would I?) but never tried it without a / at the end of the url... also netscape and IE handl

Re: [JBoss-user] Who can send me a sample about security in jboss

2001-06-19 Thread Allen fogleson
there is a good example of complete security in jboss 2.2.2 here www.jboss.org/documentation/HTML/ch11s83.html Al - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 19, 2001 9:42 PM Subject: [JBoss-user] Who can send me a sample about security

RE: [JBoss-user] JMS - javax.jms.QueueConnectionFactory not bound

2001-06-19 Thread Allen Fogleson
Natalie, It looks like the connectionQueue is not being created in JBoss... are you sure you have created a Queue there? Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ng, Natalie Sent: Tuesday, June 19, 2001 5:43 PM To: '[EMAIL PROTECTED]'

Re: [JBoss-user] JSP accessing EJB classes error

2001-06-19 Thread Allen fogleson
in my experience if you do not have the home and remote interfaces available in the war file, then I have always gotten this error. Al - Original Message - From: De Closmadeuc, Etienne <[EMAIL PROTECTED]> To: jboss-request <[EMAIL PROTECTED]> Sent: Tuesday, June 19, 2001 12:57 PM Subject

Re: [JBoss-user] distributing an application

2001-06-19 Thread Allen fogleson
instead of using the jnp://localhost:1099/ you should use jnp://location_of_machine_with_beans:1099/ Al - Original Message - From: Cumps Jef <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 19, 2001 8:12 AM Subject: [JBoss-user] distributing an application > Hi all,

Re: [JBoss-user] newbie stuff >> jboss vs. simple classes

2001-06-18 Thread Allen fogleson
take a look at the J2EE blueprints on java.sun.com thats a good start. Although i disagree with their implementation of Data Access Objects, It is a good start on EJB.   you should never be just dropping classes around. A good design phase up front will save you a lot of issues later, su

Re: [JBoss-user] is there a t3:// for JBoss

2001-06-18 Thread Allen fogleson
t3 is the weblogic specific wire protocol. switch to straight RMI. Even better, if you are using the JBoss/tomcat or JBoss/jetty package you dont even need to populate your initialcontext call. Im not a big fan of that method anyway, since you end up tying your app to a single container... al --

Re: [JBoss-user] is there a t3:// for JBoss

2001-06-18 Thread Allen fogleson
or jnp... heh. I always forget that one. - Original Message - From: Scott M Stark <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 3:41 PM Subject: Re: [JBoss-user] is there a t3:// for JBoss > jnp://localhost:1099 > > - Original Message - > From: "Sc

Re: [JBoss-user] Manual suggestions

2001-06-18 Thread Allen fogleson
sorry. Your example is interesting, it will be perfect if there were a servlet :) SAINT-MARTIN Cecile [EMAIL PROTECTED] > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Allen > fogleson > Envoyé : lundi 18 juin 2001 15:29 > À : [EM

Re: [JBoss-user] quick tutorial

2001-06-18 Thread Allen fogleson
right... its an option. the only problem with that is that then you have tied it to a specific deployment, and it is no longer really platform independent. Or in this case really container independent. al - Original Message - From: Lachezar Dobrev <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: [JBoss-user] Manual suggestions

2001-06-18 Thread Allen fogleson
hmmm when you say a full app do you mean with security? I wrote up a simple ear app and posted it here. it has servlet, jsp and a session bean. I could expand on that (And really the write up was rather quick so not 100% great docs :) Al - Original Message - From: Saint-Martin Cecile <[E

Re: [JBoss-user] quick tutorial

2001-06-18 Thread Allen fogleson
Hmmm well I think you could include them in the lib directory, it isnt platform independent then, but it should work in JBoss. (I havent tested that) Those classes do have to be available to the client, be it an application client or a web client, so they should be in the war file. I deployed the

Re: [JBoss-user] undeploy

2001-06-17 Thread Allen fogleson
you can just delete the ear from the deploy directory and it will be undeployed automatically Al - Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 17, 2001 1:10 PM Subject: [JBoss-user] undeploy > So the next obvious question. How

Re: [JBoss-user] Obtaining a transaction from outside JBoss in another VM Plan

2001-06-17 Thread Allen fogleson
d > > to > > > control transactions which takes us back to my original question to Marc > > > Fleury. When does JBOSS plan to support the use of UserTransaction from > a > > > VM that is not running JBOSS? Marc seems to discourage this usage in > one > &g

Re: [JBoss-user] Obtaining a transaction from outside JBoss in another VM Plan

2001-06-16 Thread Allen fogleson
om a > VM that is not running JBOSS? Marc seems to discourage this usage in one > reply, so my second question is why? Thanks. > > Anh > > - Original Message - > From: "Allen fogleson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sa

Re: [JBoss-user] Obtaining a transaction from outside JBoss in another VM Plan

2001-06-16 Thread Allen fogleson
well not necessarily just EJB... although i would put most of it there. probably 99% of it would be in session EJB. I would use limited servlets for business logic. mostly i would do JSP -- Servlet --- EJB views controllers model/business logic Al - Original Message --

Re: [JBoss-user] quick tutorial

2001-06-16 Thread Allen fogleson
assuming a default installation with no changes to the jboss-tomcat install and assuming you are accessing from the computer running jboss. once it deploys you should be able to call it just like this... http://localhost:8080/ or you can call the servlet directly http://localhost:8

Re: [JBoss-user] jboss-web.xml and jboss.xml in hello example

2001-06-16 Thread Allen fogleson
There was no need for a jboss.xml since I made no references in the EJB. the jboss.xml is used for ejb's, and jbss-web.xml is used in web archives. Al - Original Message - From: Boris Garbuzov <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 16, 2001 9:30 PM Subject: [JBo

Re: [JBoss-user] quick tutorial

2001-06-16 Thread Allen fogleson
Just trying to help out. There are some holes, for instance no security at all is used. but it shows the basics of calling an EJB from a servlet. Al - Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 16, 2001 9:04 PM Subject: Re: [

Re: [JBoss-user] disregards XML comments

2001-06-16 Thread Allen fogleson
is the datasource listed in jboss-auto.jcml? this file is created by jboss, but you can comment out the lines there, or delete the entire file and then it should wrk. Al - Original Message - From: Boris Garbuzov <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 16, 2001 7:

Re: [JBoss-user] javax.rmi???

2001-06-16 Thread Allen fogleson
DOH! I have both 1.2 and 1.3 so i always forget that it is included in 1.3 now. Al - Original Message - From: danch <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 16, 2001 1:33 PM Subject: Re: [JBoss-user] javax.rmi??? > It's actually in J2SE as of version 1.3 > > al

[JBoss-user] quick tutorial

2001-06-16 Thread Allen fogleson
After seeing the question arise so many times about how to bind an EJB to the env/ejb/nameofbean context I have put together a quick tutorial to show that. the two included files are the complete ear file that does this, and a text file explaining what is happening. I didnt get into how to a

RE: [JBoss-user] The method return values in the home interface must be of valid types for RMI/IIOP.

2001-06-13 Thread Allen Fogleson
but you could have the business methods in an interface and implement the interface. then you have something like +-+ +-+ | businessint | | EJBObject | +-+ +-+

RE: [JBoss-user] Old jserv with JBoss'

2001-06-13 Thread Allen Fogleson
you can place servlets in a war with no problem. the classes are packaged in WEB-INF/classes. I will place the simple deployment descriptor below. what you really want is to use the servlet tags in the deployment descriptor to tell your web application where they are. the example I will use is a s

RE: [JBoss-user] Auth.conf question

2001-06-13 Thread Allen Fogleson
yes, it is in the docs by the way, just search the docs for JAAS and you will find it there that the other entry is used when no others match. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gerry Duhig Sent: Wednesday, June 13, 2001 10:42 AM To: [EMA

RE: [JBoss-user] Old jserv with JBoss'

2001-06-13 Thread Allen Fogleson
I suspect it crshed because the new methods are not available in the old JServ package. Try compiling it using the old API and deploying it that way, it should work. Assuming you have everything there you should still be able to do lookups. I haven't of course tried this. best bet would really be

RE: [JBoss-user] manual

2001-06-13 Thread Allen Fogleson
JBoss. Just wanted to clarify :) Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Allen Fogleson Sent: Wednesday, June 13, 2001 10:22 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] manual I think Randy commented on it, but I have found the docs on

RE: [JBoss-user] manual

2001-06-13 Thread Allen Fogleson
: Allen Fogleson To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 2:09 PM Subject: RE: [JBoss-user] manual Its not? i dunno, be amazed at how much one can glean from the source, I would say in general for a developer that understands it the source would

RE: [JBoss-user] JDB and JBoss

2001-06-13 Thread Allen Fogleson
you are debugging the implementation class, so you place break points on the implementation class of the bean, not the home or remote in general.   Al -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Francesco MarchioniSent: Wednesday, June

RE: [JBoss-user] manual

2001-06-13 Thread Allen Fogleson
Title: RE: [JBoss-user] manual Its not? i dunno, be amazed at how much one can glean from the source, I would say in general for a developer that understands it the source would be the ultimate docs. Sure we all like pretty, fluffy docs that answer our question instantly, but if something is

RE: [JBoss-user] Newbie question about clustering

2001-06-13 Thread Allen Fogleson
right now clustering is not available in JBoss. As for the client, well they would see nothing different they would still make the call to the webserver normally, and some device (software or hardware) would decide which node would handle the call. whether sessions are tied to a single server or a

RE: [JBoss-user] Deploying Multiple applications?

2001-06-12 Thread Allen Fogleson
Yes you can do this. You should be able to deploy them by copying the jar file (or war or ear) to the jboss/deploy directory. Jboss will then autodeploy the application. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen Oakes Sent: Tuesday, Jun

RE: [JBoss-user] Servlets in tomcat out of war file

2001-06-12 Thread Allen Fogleson
create the war file, and assuming you are running jboss with tomcat or jetty, just drop it into the jboss/deploy directory. That will deploy the war file including any included servlets. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Emerson Sent: Tu

RE: [JBoss-user] Deploying Jive in JBOSS 2.2.1 Jetty 3.1.RC4

2001-06-11 Thread Allen Fogleson
I posted a message earlier that talked about ear and war files... you can use that to set up your war file. war files deploy on tomcat or jetty so it should work the same in either container. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Joha

RE: [JBoss-user] Lookup Datasource from Javabeans. Possible?

2001-06-11 Thread Allen Fogleson
only copy the compiled .class file to the "SERVLET_CLASSES" directory. Then you got it! I use JBoss just because it's free. For our customer need a cheap one than weblogic, it's too expensive! But I never imagined JBoss is so frustrating... - Original Message - From

RE: [JBoss-user] javax.naming.NameNotFoundException: jdbc not bound

2001-06-11 Thread Allen Fogleson
Scott what is the actual lookup you are performing? it should appear as InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("jdbc.atalk"); Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Bermon Sent: Monday, June

RE: [JBoss-user] Authentication problems in JBoss-2.2.2/Tomcat-3.2.2 (env not bound)

2001-06-11 Thread Allen Fogleson
we are using the DatabaseLogin for our security. And it works fine. As Greg did we added the jboss-web.xml and also added the extra property Andrew spoke of. Additionally we had to change auth.conf so it had an entry for our security domain. It was then just a simple matter of adding servlet mapp

RE: [JBoss-user] how do I access simple html pages in a war file

2001-06-11 Thread Allen Fogleson
well JSP is a servlet really, so the same methodology will work -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Emerson Sent: Monday, June 11, 2001 11:02 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] how do I access simple html pages in a war file

RE: [JBoss-user] Problems to install JDBC driver

2001-06-11 Thread Allen Fogleson
is the jar file in your jboss/lib/ext directory?     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marie RajonSent: Monday, June 11, 2001 9:29 AMTo: [EMAIL PROTECTED]Subject: [JBoss-user] Problems to install JDBC driver Hi,   I

  1   2   >