[JBoss-user] TopicSession and transactions

2003-10-25 Thread Brian Wallis
I'm a bit confused about topics(queues) and transactions. TopicConnection.createTopicSession() takes a boolean parameter 'transacted'. What this seems to mean is that any messages written to that session are not written until an explicit call by the user to the commit() method on the TopicSess

[JBoss-user] Beginner's question

2003-10-25 Thread john
Hi I'm a Java programmer that's new to JBoss, J2EE and EJBs and I'm trying to get this beginner's hello world tutorial working: http://www.mastertech.net/spumer/Jboss%203%20step-by-step.pdf I've installed JBoss 3.0 on my W98 machine, and I've got the server running in a DOS box. Now whenever I dr

[JBoss-user] auto_increment field in JBuilder

2003-10-25 Thread Guido Scalise
Hello people, I'm starting up on EJB development, and here is something i couldn't manage to fix... How do i mark a field as autoincremental in a CMP Entity Bean in JBuilder (I'm using EntWizard for JBoss 3.2 support), without having to edit the xml files every time I make a change

Re: [JBoss-user] PostgreSQL and NOT NULL integer fields

2003-10-25 Thread Jonathan . O'Connor
Ivens, your int CMP fields should definitely be NOT NULL. Consider what happens if you have a NULL int column. What should happen when you read a NULL value from the DB? int i = null; is not valid Java code. int i = 0; is correct Java code, but then you are assuming that NULL and 0 are equivalen

Re: [JBoss-user] get environment entries

2003-10-25 Thread Adrian Brock
On Fri, 2003-10-24 at 18:10, Stefan Groschupf wrote: > Hi, > > I have problems to retrive environment entries. > > I tried: > > *Context environment = (Context) initial.lookup("java:comp/env"); > String realm = (String) environment.lookup("systemRealm"); > * > I had setup the entry via x doclet

[JBoss-user] get environment entries

2003-10-25 Thread Stefan Groschupf
Hi, I have problems to retrive environment entries. I tried: *Context environment = (Context) initial.lookup("java:comp/env"); String realm = (String) environment.lookup("systemRealm"); * I had setup the entry via x doclet in a other bean : * @ejb:env-entry name="systemRealm" * value="${sec

Re: [JBoss-user] new behavior in 3.2.2 - TransactionRolledbackLocalException

2003-10-25 Thread Alexey Loubyansky
Yes, you can do it. But it would be interesting to know whether JBossCMP initialized the fields to 0 instead of NULL. alex Jason Essington wrote: On Thursday, October 23, 2003, at 05:08 AM, Alexey Loubyansky wrote: Are there CMP fields mapped to the foreign key column? If not that is expecte

Re: [JBoss-user] 3.2.2 : limit on columns in entity beans

2003-10-25 Thread Alexey Loubyansky
Joachim (PROGS) wrote: Is this a new limitation or was this introduced in 3.2.2? We have > 64 column entity beans and AFAIK we have been inserting on them. Thx This limitation didn't exist in 3.2.1, it appeared in 3.2.2. In which RC was it introduced? RC4. It is fixed in current Branch_3_2. alex

Re: [JBoss-user] Problem with jbossweb-tomcat50.sar in 3.2.2

2003-10-25 Thread Remy Maucherat
[EMAIL PROTECTED] wrote: I don’t know if jbossweb-tomcat50.sar is officially supported yet but I’ll notify you of the problem I’m having anyway. I have a .war in an .ear that uses container managed FORM security. I was originally developing in 3.2.2RC3 + jbossweb-tomcat50.sar instead of jb

Re: [JBoss-user] [OT] Frameworks

2003-10-25 Thread Stephen Davidson
Eric Jain wrote: Having spent a fair amount of time with Eclipse recently, I couldn't help feeling that many of the concepts used for their plug-in architecture would greatly improve complex server side applications. I'd just like to pick out two issues; let me know if have any solutions or workaro

[JBoss-user] XDoclet 1.2b4 support for jboss.ejb-local-ref

2003-10-25 Thread Jon Barnett
I recently had a few problems with the JBoss 3.2.2 transition as I made the foolish choice of starting to use XDoclet as well. The original jboss.xml and ejb-jar.xml hand-built deployment descriptors had a few failures under the new release so I thought I might as well transition things over to get

Re: [JBoss-user] MDB and Jaas

2003-10-25 Thread Scott M Stark
On rereading, you would need to allow for unauthenticated users to map to an identity. This is supported by the unauthenticatedIdentity login module option as shown for the jbossmq configuration: flag = "required"> guest jboss.mq:service=StateManager

Re: [JBoss-user] MDB and Jaas

2003-10-25 Thread Scott M Stark
Why isn't the run-as role working for this? This is the authorization role the mdb assumes for all secure calls it makes. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian Wallis wrote: OK, I know, this is a FAQ (or should be) but I ca

[JBoss-user] MDB and Jaas

2003-10-25 Thread Brian Wallis
OK, I know, this is a FAQ (or should be) but I cannot find the answer. I have an MDB. It is configured for a durable subscription using mdb-user, mdb-password in jboss.xml and it has a security-identity/run-as/role-name in the ejb-jar.xml. But, it needs to call into an entity bean and needs to

Re: [JBoss-user] PostgreSQL and NOT NULL integer fields

2003-10-25 Thread Alexey Loubyansky
It works for me. public abstract Integer getIntegerField(); public abstract void setIntegerField(Integer value); public abstract int getIntField(); public abstract void setIntField(int value); 12:30:34,262 DEBUG [Child] Executing SQL: CREATE TABLE CHILD(CHILD_ID BIGINT NOT NULL, name

[JBoss-user] MDBs and JAAS

2003-10-25 Thread Brian Wallis
(resent as first message seems to have vanished again!) I have been searching around the web and reading what I can about JAAS and have not found out how an MDB is meant to authenticate itself before it calls into other secured beans. I can set mdb-user and mdb-password but I gather they are to