Re: [JBoss-user] What's the best java.util.Collection to return?

2002-06-15 Thread Brandon Knitter
, and return that. Of course, that's just one (common) design pattern among other viable options. Hope this helps, David -- Brandon Knitter wrote: Okay, I know this is not JBoss specific, but I got a good response from my last question, and this is a question in the context of EJB

Re: [JBoss-user] unpacked deployment under3.0

2002-06-11 Thread Brandon Knitter
Can you post your actual config section? I'm trying to get this working and I just can't get the config file format right. Thanks, -- -bk Quoting Emmanuel Charpentier [EMAIL PROTECTED]: I've managed to get exploded directories working, with: - directory is called /project/web.war/

[JBoss-user] I am SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
Okay, I have a 1-to-many relationship set up, and I'm thinking I did it right! ;-) I have patched the server to supposedly un hide exceptions on the server, but I'm not actually getting any stacks in my server.log output. Patch:

[JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
); } return(rc); } Ignore the fact that I have all the naming stuff hardcoded and such! Is this the proper way to do things? Thanks in advance!! -- -bk Quoting Brandon Knitter [EMAIL PROTECTED]: Okay, I have a 1-to-many relationship set up, and I'm thinking I did it right! ;-) I

Re: [JBoss-user] JBossCMP Documentation Updated

2002-06-11 Thread Brandon Knitter
I have the 6 month subscription. Has the CMP documentation in that package been updated as well? Should I download the AllDocumentation.zip again? -- -bk Quoting Dain Sundstrom [EMAIL PROTECTED]: JBossCMP documentation for the JBoss 3.0 release is now available at FlashLine.

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
(rc); } Ignore the fact that I have all the naming stuff hardcoded and such! Is this the proper way to do things? Thanks in advance!! -- -bk Quoting Brandon Knitter [EMAIL PROTECTED]: Okay, I have a 1-to-many relationship set up, and I'm thinking I did it right

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
a custom finder to return the collection of remote objects directly from the (User) home interface. This applies whenever you find yourself iterating over a collection of entities. The performance improvement can be dramatic. On Wednesday, June 12, 2002, at 10:42 AM, Brandon Knitter

[JBoss-user] What's the best java.util.Collection to return?

2002-06-11 Thread Brandon Knitter
Okay, I know this is not JBoss specific, but I got a good response from my last question, and this is a question in the context of EJB. When returning a java.util.Collection, what object is the best to return? I'm assuming that returning a Vector is not really a good idea as it is able to be

Re: [JBoss-user] Auto created relationship table name.

2002-06-11 Thread Brandon Knitter
Do you have the DOCTYPE XML header at the top of your files? This will also help in placement and accidental misspellings tags. I learned that one the hard way! :) -- -bk Quoting Gary S. Cuozzo [EMAIL PROTECTED]: To: Christofer Sandberg I would like to personally thank you for helping

Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-07 Thread Brandon Knitter
in the log4j.xml file. It has examples and good comments. If you can't figure it out, post a bug report at sourceforge and I'll take a look at it. -dain Brandon Knitter wrote: I'm tailing server.log, the only thing showing up during my request is: 2002-06-06 22:05:51,731 DEBUG

Re: [JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread Brandon Knitter
to datasource-mapping between alpha and beta 2. -dain Brandon Knitter wrote: I added the following to the top of my jbosscmp-jdbc.xml file and was met with TONS of errors, including errors from things I copied from the cmp2 commerce example: !DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD

Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Brandon Knitter
If you bought a subscription which has not expired (6 months and 12 months are available), then you should get them. If you bought them straight away ($10), then no. -- -bk Quoting Ricardo Argüello [EMAIL PROTECTED]: I bought the CMP docs from Flashline in January. Am I elegible for an

RE: [JBoss-user] Where to put a ejb jar especif lib

2002-06-07 Thread Brandon Knitter
Would making an EAR make it possible to package an ejb.jar file with other necessary supporting jars? -- -bk Quoting JD Brennan [EMAIL PROTECTED]: If you are trying to put a .jar inside your EJB jar, you can extract the contents of the jar into your jar. That's what we do. One stop

Re: [JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread Brandon Knitter
to use is the one included with the release in docs/dtd. Also type-mapping was changed to datasource-mapping between alpha and beta 2. -dain Brandon Knitter wrote: I added the following to the top of my jbosscmp-jdbc.xml file and was met with TONS of errors, including

Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-07 Thread Brandon Knitter
Near the bottom of the log4j.xml file there are two TRACE entries, I uncommented those and restarted jboss and have better errors now. Hope that's what you were looking for. -- -bk Quoting Paul Kavanagh [EMAIL PROTECTED]: Hi guys, hoping someone can shed some light on this. I'm using

Re: [JBoss-user] Where to put a ejb jar especif lib

2002-06-07 Thread Brandon Knitter
: http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html Hope that helps, I was enlightened! :) -- -bk Quoting David Jencks [EMAIL PROTECTED]: yes david jencks On 2002.06.07 14:26:16 -0400 Brandon Knitter wrote: Would making an EAR make it possible to package an ejb.jar file

[JBoss-user] Working CMP/CMR Example For JBoss 3.0?

2002-06-07 Thread Brandon Knitter
I know that the JBoss group is working on a new document release, but in my frustration (read: no more hair) I was hoping to get a working CMP example which has CMR relationships as well. If you have something that will build, and has all the deployment descriptors and works on JBoss 3.0, I'd

Re: [JBoss-user] JBoss3.0.0 CMR field not persisting

2002-06-07 Thread Brandon Knitter
I just noticed that you are working on an example for all of us! :) Do you have this ready, perhaps with the changes below? I got the zip from your site below about an hour ago, and I'm happy to see an example! :) Thanks, -- -bk Quoting David Jones [EMAIL PROTECTED]: Greg Turner [EMAIL

Re: [JBoss-user] JBoss3.0.0 CMR field not persisting

2002-06-07 Thread Brandon Knitter
a zip file that contains source and deployment files. I've tested this in Win2000 using RC2 version of JBoss. Enjoy. Brandon Knitter wrote: I just noticed that you are working on an example for all of us! :) Do you have this ready, perhaps with the changes below? I got the zip from

RE: [JBoss-user] SapDB and Jboss

2002-06-07 Thread Brandon Knitter
mean that I cann't run cmp2.0 with jboss-sapdb? Thanks -Original Message- From: Brandon Knitter [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 3:14 PM To: [EMAIL PROTECTED]; Arthur Wang Subject: Re: [JBoss-user] SapDB and Jboss I grepped the binary distro, nothing

Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-07 Thread Brandon Knitter
I checked out things with: cvs co -r JBoss_3_0_0 jboss-all So, after I apply that patch, then I go into jboss-all/build dir and run build.sh. Then what? What do I move and copy over the binary distro I downloaded? Is it an entire dir, or just a jar? Thanks in advance, -- -bk Quoting

Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-06 Thread Brandon Knitter
about it. It's actually: Playlist to User -- many to one none to one Meaning that a User can have 0+ Playlists. How is that represented? I'll keep playing! -- -bk Quoting Brandon Knitter [EMAIL PROTECTED]: Well, I'm on with my learning and now

Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-06 Thread Brandon Knitter
/multiplicity relationship-role-source ejb-nameUserBean/ejb-name /relationship-role-source /ejb-relationship-role /ejb-relation /relationships -- -bk Quoting Brandon Knitter [EMAIL PROTECTED]: I did notice one other thing. When I try to get a User, I

Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-06 Thread Brandon Knitter
=?) Which looks about right for a prepared statement...any ideas? Is there a way to turn up vebosity? -- -bk Quoting Dain Sundstrom [EMAIL PROTECTED]: What is the exception you are getting on the server? It should be printed into the server.log file. -dain Brandon Knitter wrote: I did

[JBoss-user] How To Set Classpath? EJB's without wars.

2002-06-05 Thread Brandon Knitter
I am trying to set up an EJB installation (for dev purposes) without the need for a war, jar, or ear. So what I have done so far is to set in the jboss.jcml the deployment url to be my path hierarchy which contains a META-INF dir with my ejb-jar.xml file in it. So far so good, JBoss tries to

Re: [JBoss-user] How To Set Classpath? EJB's without wars.

2002-06-05 Thread Brandon Knitter
for each one 2) point it to a directory where your classes are, at the root of the package - so if you have /build/my/foo/bar/test.class (package is my.foo.bar), point the extension to /build. Easy as that. rp Brandon Knitter [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED

EJB Specification 2.0 is *not* supported!?!?! Was: [JBoss-user] How To Set Classpath? EJB's without wars.

2002-06-05 Thread Brandon Knitter
questions? -- -bk Quoting Brandon Knitter [EMAIL PROTECTED]: I have done both. 1) This works great, thanks for the confirmation! :) 2) This is not working. I have added the path to the top level. My class: org.blandsite.music.play.PlaylistBean.java My dir: /home/knitterb/lib

Re: [JBoss-user] JBoss 3.0 - How do I set up datasources?

2002-06-05 Thread Brandon Knitter
First off, thanks a bunch! :) This seems to get me closer...and I need the CMP 2.0 stuff! What is the principal? Is that like the security requested (another user)? I'm assuming I should just set this to my username as per your description below? Next, how do I reference this in my

RE: [JBoss-user] JBoss 3.0 - How do I set up datasources?

2002-06-05 Thread Brandon Knitter
] [mailto:[EMAIL PROTECTED]]On Behalf Of Brandon Knitter Sent: Wednesday, June 05, 2002 3:00 PM To: [EMAIL PROTECTED]; Neal Sanche Subject: Re: [JBoss-user] JBoss 3.0 - How do I set up datasources? First off, thanks a bunch! :) This seems to get me closer...and I need the CMP 2.0

[JBoss-user] JBoss-3.0rc3: Can't get remote reference to EJB

2002-06-05 Thread Brandon Knitter
I'm getting closer! :) First question, I'm looking through these massive logs and trying to see if my EJB was deployed. I don't see any errors on the deployment, but that doesn't mean it's working. What will the logs say? I've looked through almost every line, and I'm searching for my EJB

[JBoss-user] CMP 2.0 Not Supported!!

2002-06-05 Thread Brandon Knitter
I starting to just give up on the notion that WARs are not required, so I finally just built a damned WAR file and deployed it. If you know of a way to get a directory to act as the deployment path, please do let me know. So, when I drop this WAR into my deploy/ dir, I'm getting the following:

Re: [JBoss-user] JBoss-3.0rc3: Can't get remote reference to EJB (still)

2002-06-05 Thread Brandon Knitter
1. Please use the 3.0 final or later. Grabbing... 2. To deploy an unpacked structure you may need to put it in a directory like /usr/blah/myear.ear/ myejb-jar.jar /META-INF /ejb-jar.xml

[JBoss-user] CMP 2.0 Is Supported!!

2002-06-05 Thread Brandon Knitter
[EMAIL PROTECTED]: Check your ejb-jar.xml file. I think it has the ejb 1.1 dtd. war != jar. Making unsupported and obviously wrong claims about jboss is unlikely to get you much help. david jencks On 2002.06.05 20:50:47 -0400 Brandon Knitter wrote: I starting to just give up

Re: [JBoss-user] CMP 2.0 Is Supported!!

2002-06-05 Thread Brandon Knitter
Thank you for the confirmation! :) I replied specifically for mail list archive purposes! :) -- -bk Quoting Dain Sundstrom [EMAIL PROTECTED]: Brandon Knitter wrote: Cool, thanks for your patience, and I apologize for my frustrations. I should not let them get the best of me

Re: [JBoss-user] CMP 2.0 Is Supported!!

2002-06-05 Thread Brandon Knitter
ejb 1.1. I thought the abstract warning you got might be from using the wrong cmp engine. david jencks On 2002.06.05 22:56:00 -0400 Brandon Knitter wrote: I had the entry: cmp-version2.x/cmp-version And even tried 2.0. Turns out, in my haste I forgot to add the XML

[JBoss-user] Timeout connecting to the jndi server

2002-06-05 Thread Brandon Knitter
When trying to get an initial context I get the following: env

Re: [JBoss-user] Timeout connecting to the jndi server

2002-06-05 Thread Brandon Knitter
a similar problem last night and for some reason, that seemed to fix the problem. hth, gary. Brandon Knitter wrote: When trying to get an initial context I get the following: env CLASSPATH=:.:/usr/java/lib/tools.jar:/usr/java/jre/lib/rt.jar:/home/knitterb/lib/java:/home/knitterb/lib/java

RE: [JBoss-user] Timeout connecting to the jndi server

2002-06-05 Thread Brandon Knitter
://localhost:1099/ changed to java.naming.provider.url=jnp://machinename or ip address:1099/ Not sure if this is on the right track but it may help -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brandon Knitter Sent: Thursday, 6 June 2002

Re: [JBoss-user] Deploy an EJB *without* a jar, war, or ear?

2002-06-04 Thread Brandon Knitter
. Each time you rebuild e.g. classes within the war, touch the WEB-INF/web.xml - This will cause JBoss to reload this module. I assume that touching the META-INF/application.xml will reload the whole J2EEApp - but haven't tried it. Jules Brandon Knitter wrote: How can I make

[JBoss-user] I *don't* want a WAR!

2002-06-04 Thread Brandon Knitter
From: Brandon Knitter [EMAIL PROTECTED] To: [EMAIL PROTECTED], Jules Gosnell [EMAIL PROTECTED] Subject: Re: [JBoss-user] Deploy an EJB *without* a jar, war, or ear? Date: Tue, 4 Jun 2002 12:18:18 -0700 Cool, now...how do I point JBoss to my directory? :) I come from a Resin (Caucho

[JBoss-user] Deploy an EJB *without* a jar, war, or ear?

2002-06-03 Thread Brandon Knitter
How can I make jboss look into a directory structure and allow me to deploy my ejbs without building out a jar, war, or ear? Also, does JBoss automagically reload the classes when they change (i.e. I make a change to my EJB), I want to be able to develop in place without a) redeploying a couple