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
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
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
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
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
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
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
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
(
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
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
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
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
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
.
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
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
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
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):
>
>
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.
_
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
Id 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
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
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
Properties">UserName=username
>
>
>
> ---
>
> JBoss.xml
> ---
>
>
>
>
>
>
>
> OneEJB
> emuse/ejb/OneEJB
>
>
>
>
> TwoEJB
>
> emuse/ejb/
>
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
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
.
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.
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.
__
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"
>
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
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
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
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
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
--- 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
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
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,
&
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
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
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
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
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
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
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
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-
--- 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
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.
>
>
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
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
;
> 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
>
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
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
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
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
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
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
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
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:
57 matches
Mail list logo