Re: [JBoss-user] [EJB/JBoss] - Could not create Entity exception

2005-07-28 Thread Allan Kamau
I don't know if this may make a difference but it may be worth trying. Return hospitalid in place of myid, your ejbCreate() method may look like this. public Long ejbCreate(HospitalData hospitalData) throws CreateException { System.out.println("Came in ejbCreate method of Hospit

Re: [JBoss-user] [EJB/JBoss] - Re: Help stuck with JBoss 4.0.2 and MySQL 4.1.13

2005-07-28 Thread Allan Kamau
I've just realized the ejb-ql opening tag comes after the closing result-type-mapping tag which comes after the closing query-method tag. These three tags are enclosed within the query tag. Allan. --- Allan Kamau <[EMAIL PROTECTED]> wrote: > Surely your ejb-jar.xml file and proba

Re: [JBoss-user] [EJB/JBoss] - Re: Help stuck with JBoss 4.0.2 and MySQL 4.1.13

2005-07-27 Thread Allan Kamau
Surely your ejb-jar.xml file and probably jbosscmp-jdbc.xml files have errors. XML errors and errors caused by the xml not conforming to the .dtd. For example, you have a string "False" after the closing and your ejb-ql tag should enclose the query-method tag. I'd suggest going through your xml an

Re: [JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Query method not found

2005-07-26 Thread Allan Kamau
You may try specifying the result-type-mapping after your query-method closing tag. Depending on the type of home interface you have/expect for the beans being returned. If remote, the tag may look like so. Remote Allan. --- zaddo <[EMAIL PROTECTED]> wrote: > Hi, > > i implemented a finder met

Re: [JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Null Primary Key

2005-07-26 Thread Allan Kamau
Have you specified the primary key tag in your ejb declaration? In the original post the ejb-jar.xml xml treelet didn't have it. Allan. --- pittupgd <[EMAIL PROTECTED]> wrote: > Hi spiffer, > I am getting the same error Have u figured out what > the problem was > > View the original post : > h

Re: [JBoss-user] [EJB/JBoss] - Unable to create data using CMP 2.0

2005-07-25 Thread Allan Kamau
Strange, you've said you've debugged the Entity bean and found that the pk field has a value perhaps using simple System.out.println(" Value of PK is:"+pk). Check to see there is nowhere in the entity bean code that you may be initializing the pk to null. Ensure that the pk field like other fields

Re: [JBoss-user] [Persistence & CMP/JBoss] - special primary key

2005-07-12 Thread Allan Kamau
I could provide you with part 1 of the solution. Your table seems to have a composite primary key comprising of the two foreign keys form countries and languages tables. If this is so, you may need to create a primary key class. Which is basically a java bean containing the two fields (country and

[JBoss-user] Simple JAAS Client LoginModule

2005-03-10 Thread Allan Kamau
Hi, I would like to use a simple LoginModule for client side JAAS authentication. I have tried using the LoginModule “SampleLoginModule.java” available with sun's JAAS tutorial “http://java.sun.com/j2se/1.5.0/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html” the authentication at the client (

[JBoss-user] Persisting arrays using CMP in Entity EJBs

2004-09-22 Thread Allan Kamau
This is probably an EJB spec question. I am using PostgreSQL for persistance and it susports array datatype. I would like to know if it is possible to store seamlessly an array in Entity EJBs using CMP. And if so do I simply refer (in the ejb-jar.xml) to the array field as if it was a non-collectio

[JBoss-user] Limiting the number of beans returned in the home interfaces multi-entity find methods

2003-06-24 Thread Allan Kamau
I would like to limit the number of EJB object references returned by an entity's home interface's finder method(s) through the corresponding finder method(s) ejb-ql statement. This is my situation. I am developing a module that would process a user defined number of entity EJB that satisfy a speci

[JBoss-user] Limiting the number of beans returned in the home interfaces multi-entity find methods

2003-06-24 Thread Allan Kamau
I would like to limit the number of EJB object references returned by an entity's home interface's finder method(s) through the corresponding finder method(s) ejb-ql statement. This is my situation. I am developing a module that would process a user defined number of entity EJB that satisfy a speci

[JBoss-user] CMP ejb-ql and Joins

2003-06-24 Thread Allan Kamau
I am trying to write join queries in ejb-ql. This is my situation. I have three CMP entry beans, two of these entity beans are have a many to many relationship, so I created an the third ejb. This new ejb is also a parent of some other ejb. I would like to retrive a Collection or Set of this third

Re: [JBoss-user] newbie question on JMS and JBOSS

2003-05-28 Thread Allan Kamau
Hi Markus, Indeed it is difficult to explain how to use JMS in an J2EE environment/application like JBOSS by email. This is because one needs to first understand what messaging is, what message driven beans (MDB) are, then how to deploy MDB in an application server such as JBOSS. A good place to st

RE: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans concerned

2003-03-31 Thread Allan Kamau
. Allan Kamau. --- Jboss Percy <[EMAIL PROTECTED]> wrote: > I use the normal download (with Tomcat integrated) > from the Jboss Site > jboss-3.0.6_tomcat-4.1.18. > Here is the release log. > JBoss Release: JBoss-3.0.6 CVSTag=JBoss_3_0_6 > How and where can I get that latewst

[JBoss-user] Accessing multiple SQL data sources using queries

2003-03-19 Thread Allan Kamau
Hi, I would like to know if there is any way to reference data from a table in a secondary datasource. My data exists in two data sources, PostgreSQL 7.2 and M$-SQL 2000. I configured the two data sources and I can use CMP to store data into both the data sources through configurations in my META-I

[JBoss-user] xactisolevel error: PostgreSQL-7.3 and JBOSS-3.0.4

2003-01-10 Thread Allan Kamau
I am experiencing problems running JBoss-3.0.4 using PostgreSQL-7.3 as the database for CMP. It appears PostgreSQL-7.3 doesn't understand "show xactisolevel" command (which is been sent to it by JBoss) unlike PostgreSQL-7.2.x. I've deployed the latest jdbc driver for PostgreSQL-7.3 from jdbc.postg

RE: [JBoss-user] JBoss 3.0.x and PostgresDS solved thank you

2002-08-13 Thread Allan Kamau
false false 300 true false false foreign-key on-load 1000 * 1000 Allan Kamau. --- Saroj Kumar <[EMAIL PROTECTED]> wrote: > In file , > > Do it like (For ORACLE): > >

[JBoss-user] JBoss 3.0.x and PostgresDS

2002-08-12 Thread Allan Kamau
I have successfully configured and deployed the PostgresDS on JBoss-3.0.0 now I seem to be stuck in getting JBoss use PostgresDS as CMP of my EJBs in place of the DefaultDS. What additional configurations are required (is jboss.xml used in JBoss-3.0.x for the same?) Allan. _

Re: [JBoss-user] MSSQLDS and JBoss 3.0

2002-08-08 Thread Allan Kamau
I'd also like to ask, once you have the MSSQLDS running what changes are required in the jboss.xml to make the deployed application use the 'MSSQLDS' in place of the default 'DefaultDS'? Allan --- Jamie Burns <[EMAIL PROTECTED]> wrote: > > > b). I tried writing a client program (classpath > has

[JBoss-user] Complex relationships involving relationships to M-to-M EJB relationships

2002-07-31 Thread Allan Kamau
I’d like to know how I can create an EJB relationship involving an EJB and a pre-existing relationship (of many to many) of two EJB. I have the following scenario: I have User, Group and Department objects/entities. A User belongs to zero or more groups and a group contains zero or more users. The

RE: [JBoss-user] How do I obtain a connection from the DefaultDS from my session bean

2002-07-11 Thread Allan Kamau
a:/DefaultDS"); > > return ds.getConnection(); > > > -Original Message- > > From: Allan Kamau [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, July 11, 2002 9:02 AM > > To: [EMAIL PROTECTED] > > Subject:[JBoss-user] How do I obtain a

[JBoss-user] How do I obtain a connection from the DefaultDS from my session bean

2002-07-11 Thread Allan Kamau
I am trying to obtain a connection from the DefaultDS, but I get the error "DefaultDS not Bound". Below is the code I use to try a bind to the DefaultDS. private Connection getConnection()throws SQLException { try { Context

RE: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-03 Thread Allan Kamau
Properties">UserName=username > > > > --- > > JBoss.xml > --- > > > > > > > > OneEJB > emuse/ejb/OneEJB > > > > > TwoEJB > > emuse/ejb/

RE: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-03 Thread Allan Kamau
> name="PrincipalMappingProperties">userName=connect > > > > place this file in the deploy-directory (after > copying the postgres > jdbc-driver (.jar) into the jboss-3.0.0beta2/lib, > and restarted jboss) > > > > On Wed, 2002-04-03

RE: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-03 Thread Allan Kamau
McAuley, Kindly send me the postgresql-service.xml for jboss-3.0.0beta together with details of where to place this file and the postgres-jdbc.jar file and finally an extract of the jboss.xml file. Thanks, Allan Kamau. --- Marius Kotsbak <[EMAIL PROTECTED]> wrote: > I have used the

Re: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-02 Thread Allan Kamau
. Allan Kamau. --- Andrew Scherpbier <[EMAIL PROTECTED]> wrote: > Put your postgres-service.xml file in the deploy > directory. (or > server/default/deploy if you're using a more recent > beta of 3.0) > Don't forget to put the JDBC driver in that > directory as well.

[JBoss-user] CMP of EJB2.0 with Postgres

2002-03-21 Thread Allan Kamau
I am unable to use postgreSQL for CMP of my EJB2.0 bean. I have looked at Gnacio Coloma's postgres-service.xml but I'd like to know where to save this file or the contents of this file. And also any other configuration required. Thank you all. Allan. __

RE: [JBoss-user] Compiling Haefel's example EJB 2.0 .java files in JBoss 3

2002-03-19 Thread Allan Kamau
Dirk Krummacker, Thanks so much it worked. And sorry it was indeed a typing error on my part. Allan Kamau. --- Dirk Krummacker <[EMAIL PROTECTED]> wrote: > 1) change 'returns' to 'return' > 2) the method name is "setId", not "setID" >

[JBoss-user] Compiling Haefel's example EJB 2.0 .java files in JBoss 3

2002-03-18 Thread Allan Kamau
I have tried compiling the example EJB application list in Richard Monson-Haefel's book. The application consists of the following *.java files i)CabinHomeRemote ii)CabinHome iii)CabinBean I am using the command below to compile. "javac -classpath %JBOSS_DIST%\client\jbosssx-client.jar;%JBOSS_DI

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

2001-09-28 Thread Allan Kamau
slackware) I've had to > resort to using -classic to stop certain libraries > from seg faulting all the time (Xerces > and Ant). > > hth > Owen > > On 28 Sep 2001 at 3:22, Allan Kamau wrote: > > > Where (in what file) does one remove the "-server" &g

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

2001-09-28 Thread Allan Kamau
slackware) I've had to > resort to using -classic to stop certain libraries > from seg faulting all the time (Xerces > and Ant). > > hth > Owen > > On 28 Sep 2001 at 3:22, Allan Kamau wrote: > > > Where (in what file) does one remove the "-server" &g

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

2001-09-28 Thread Allan Kamau
Where (in what file) does one remove the "-server" option. Allan --- Mica Cooper <[EMAIL PROTECTED]> wrote: > JBoss/Linux thread probsThe -server affects the > runtime compilation of the > 20% of java code that is interpreted. It is supposed > to optimize it for > running over and over. For insta

[JBoss-user] Increasing the thread limit in RH 7.1

2001-09-14 Thread Allan Kamau
Hi all, I'd like to increase the number of threads in my RedHat 7.1 and RedHat 6.2 to a value way above 200. I think I have seen someone ask this question some time back but I didn't see the answer to it. Allan. __ Terrorist Attacks on U.S. - How

[JBoss-user] Increasing the thread limit in RH 7.1

2001-09-14 Thread Allan Kamau
--- Mariano Kamp <[EMAIL PROTECTED]> wrote: > Hi Dragos, > > thanks for your support. It is working now. > > But now, the auto-deploy is not working anymore. > When copying files to the > conf directory then the jar files are not picked up > by JBoss. How can I check > what the reasons fo

Re: [JBoss-user] Two copies of Jboss2.4.1/tomcat3.2.3 on the same machine

2001-09-13 Thread Allan Kamau
Hi, I think you can. However it may require changing of one the JBoss/TC installation ports. In this installation change the port which Tomcat listens to something other than the default port or to a port not been listened by the other TC installation. Then do the same for the JNDI from 1099 to an

Re: [JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!

2001-07-20 Thread Allan Kamau
I've been searching for an answer to the same problem (with exactly the same senerio: where a client other than a servlet is accessing the ejb just fine) for a couple of weeks. If you get a solution please let me know. Allan Kamau. --- damian guy <[EMAIL PROTECTED]> wrote: > Hi, &

Re: [JBoss-user] Problems accessing an ejb from a servlet.

2001-07-13 Thread Allan Kamau
Hi all, I have copied all the .jar files for the $JBOSS_HOME/client to the lib folder of the tomcat-3.2.2 context serving the client ejb servlet. Now where I am I going wrong. Thank you in advance. Allan Kamau. --- Allan Kamau <[EMAIL PROTECTED]> wrote: > I am reposting this quest

Re: [JBoss-user] Problems accessing an ejb from a servlet.

2001-07-12 Thread Allan Kamau
al variables. Thanks in advance Allan Kamau. --- Allan Kamau <[EMAIL PROTECTED]> wrote: > I am running tomcat and JBoss separately. And I > would > like to access an ejb from a servlet just as my > client > application did. > > I tried the ejb interest example and it w

[JBoss-user] Problems accessing an ejb from a servlet.

2001-07-11 Thread Allan Kamau
I am running tomcat and JBoss separately. And I would like to access an ejb from a servlet just as my client application did. I tried the ejb interest example and it worked just fine. The client application was able to communicated with a remote ejb. I modified this client application into a serv

[JBoss-user] Problems accessing an ejb from a servlet.

2001-07-11 Thread Allan Kamau
I am running tomcat and JBoss separately. And I would like to access an ejb from a servlet just as my client application did. I tried the ejb interest example and it worked just fine. The client application was able to communicated with a remote ejb. I modified this client application into a serv

Re: [JBoss-user] Re: JBoss 2.2.2 - Linux kernel 2.4

2001-07-04 Thread Allan Kamau
Hi Axel Muench, it seems you are trying to start jboss from a location other than the /bin directory. To solve your problem you may have to change your current working directory while starting JBoss to this directory. Allan. --- awc <[EMAIL PROTECTED]> wrote: > I am running sun JDK-1.3.0 and 1.3

Re: [JBoss-user] Problems with FreeTDS-Driver

2001-06-27 Thread Allan Kamau
I am also experiencing problems with freetds driver. I am using the freetds driver packaged in a jar. I have set up the jboss.jcml file to include 'com.internetcds.jdbc.tds.Driver' in the list of drivers. then add a new mbean tag reading as follows freetdsPool org.opentools.minerva.jdb

Re: [JBoss-user] JBossCX tutorial

2001-06-19 Thread Allan Kamau
Am also looking for the same including samples. Allan. --- Daryl Beattie <[EMAIL PROTECTED]> wrote: > Dear JBoss Users, > > Hey, I hate to be a pain, but is there a > tutorial for how to use > JBossCX? If so, where can I find it? If not, uh.. > nevermind. > Also, I seem to be hav

RE: [JBoss-user] Opta2000/Minerva pool combination, unexpected results

2001-06-18 Thread Allan Kamau
When using CMP with Opta2000trial for MSSQL, a table representing the entity bean gets created in the Master database (default for 'sa' login I am using) and not in the database I have specified in the Minerva pool and and the Minerva pool name is in my applications WEB-INF/jaws.xml file. The max-

Re: [JBoss-user] AnyBody managed to use transactions with MYSQL ?? Please help !!!

2001-06-18 Thread Allan Kamau
--- Francesco Marchioni <[EMAIL PROTECTED]> wrote: > Dear jBossusers, > I have spent some weeks to set up an environment > "jBoss + mysql". > Unfortunately I have discovered (too lately) that > mysql by default doesn't support > transactions. So I have downloaded the lates version > of mysql (my

Re: [JBoss-user] Minerva DataSource Error

2001-06-15 Thread Allan Kamau
use DataSource ds = (DataSource) jndiCntx.lookup("java:/OracleDB"); return ds.getConnection( ); Allan. --- "De Closmadeuc, Etienne" <[EMAIL PROTECTED]> wrote: > > I'm trying to execute a query on an Oracle 8.1.7 > database but ... > I can't figure what JNDI name must be used. > >

Re: [JBoss-user] JBossMQ exception on startup

2001-06-14 Thread Allan Kamau
I have the same problem in Windows 2000 server but not on Linux. Can anyone help, thank you in advance. Allan. --- "Ferguson, Doug" <[EMAIL PROTECTED]> wrote: > Hey, > > I get following exception on jboss startup for win2k > but not on linux. > > [JBossMQ] Starting > [JBossMQ] Cannot start th

Re: [JBoss-user] Minerva DataSource Error

2001-06-13 Thread Allan Kamau
st time, I even used JAWS and could see data in CMP Beans in the postgres tables. But I haven't been able to replicate the same actions this time round. The problem persists. Allan Kamau --- "De Closmadeuc, Etienne" <[EMAIL PROTECTED]> wrote: > > Hello everybody

Re: [JBoss-user] Problems installing Postgresql JDBC driver:

2001-06-12 Thread Allan Kamau
; > 3) tripple check your URL to the db. > Burkhard > > - Original Message - > From: "Allan Kamau" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 12, 2001 11:31 AM > Subject: Re: [JBoss-user] Problems to install JDBC > driver >

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

2001-06-12 Thread Allan Kamau
I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver postgresqlPool org.opent

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

2001-06-12 Thread Allan Kamau
I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver postgresqlPool org.opent

Re: [JBoss-user] Unable to run JBoss-2.2.2 on NT2000

2001-06-08 Thread Allan Kamau
Hi All, I still haven't received a response on the problem below. > I have been running JBoss-2.2.1 successfully on > Win2000 server. However where I tried running > JBoss-2.2.2 it listed error associated with the JMS > server.JBossMQ server. > > Cannot start the JMS server! > javax.jms.JMSExcep

Re: [JBoss-user] Unable to run JBoss-2.2.2 on NT2000

2001-06-08 Thread Allan Kamau
I still haven't received a response on the problem below. > I have been running JBoss-2.2.1 successfully on > Win2000 server. However where I tried running > JBoss-2.2.2 it listed error associated with the JMS > server.JBossMQ server. > > Cannot start the JMS server! > javax.jms.JMSException: In

Re: [JBoss-user] Unable to run JBoss-2.2.2 on NT2000

2001-06-08 Thread Allan Kamau
I still haven't received a response on the problem below. > I have been running JBoss-2.2.1 successfully on > Win2000 server. However where I tried running > JBoss-2.2.2 it listed error associated with the JMS > server.JBossMQ server. > > Cannot start the JMS server! > javax.jms.JMSException: In

Re: DataSource ?? Re: [JBoss-user] to Dexter

2001-06-07 Thread Allan Kamau
I also did experience the same problem. Here's how I solved mine. You may need include the JDBC optional (or greater) package into your classpath during your .java compilation. Visit the www.javasoft.com for this class or get it from the attachment with this email. I hope this helps. I would be

[JBoss-user] Unable to run JBoss-2.2.2 on NT2000

2001-06-07 Thread Allan Kamau
I have been running JBoss-2.2.1 successfully on Win2000 server. However where I tried running JBoss-2.2.2 it listed error associated with the JMS server.JBossMQ server. Cannot start the JMS server! javax.jms.JMSException: Invalid configuration .. How can I configure the JMS server to avoid

[JBoss-user] Using Minerva

2001-06-07 Thread Allan Kamau
I understand Minerva is a pool of connections to a database. I have configured my postgresql 7.1.1 database to be accessed by Minerva and I have successfully queried the database. However I don't think I am making use of connection pooling offered. I am obtaining a DataSource object from the java: