Hi,
Please help!
My Database has two tables:
"names"
- PK (primary key column)
- MEMBERS_PK (stores foreign key to "members" - Integer)
"members" table with a 1:1 bi-directinal relationship.
- PK (primary key column)
- NAMES_PK (stores foreign key to "names" - Integer)
I can make my Names Enti
I don't know if this is a beginners question, but I am a beginner and I had a
heck of a time figuring out how the mapping from ejb entity bean to application
to server all worked together.
The code below is just the relevant lines of all the xml deployment files I
thought I needed to persist a
Hi,
Can anyone help?
I put my deployment code for a simple test app to create an entity bean below.
My problem is that I have two database resources:
DefaultDS (database named jbossdb) and
ejbTestDS (database named ejbtestdb)
I thought the code below would mapped my OneBean class to the ejb
Thanx, but I I couldn't set the table name in jboss.xml and had to use do it
in jbosscmp-jdbc.xml.
However, now server keeps looking for its table (members) in the DefaulDS
resource (jbossdb database) instead of in the ejbTestDS resource (ejbtestdb
database) where I created members.
I can't f
I am new to J2EE w/jboss.
Where do I map the name of a table in which I want to pesist my bean to the
name of the bean?
To date, I always let the container create my Entity Bean's persitance tables
and never had to think about it.
But for the first time I need to map a bean to a preexisting t
Hi,
I am trying to find out if there is anyway for my own code to catch an
SQLException thrown by the conatiner generated store () code generated for a
CMP Entity Bean. I know I can catch the Exception by by using a more messey
BMP Entity Bean.
I am testing my first EJB appliaction.
Its a lo
Hi,
This code below works fine in a test class run from my PC.
However when I put it in a WebStart downloaded client, the app thows an
InvalidClassException.env= new Hashtable ();
|
| env.put (Context.INITIAL_CONTEXT_FACTORY,
|"org.jnp.interfaces.NamingContextFactory");
|
| env.p
Thanks.
If anyone else hits this question and is using a JBoss server, please note that
the other problem was that I did not have jbossall-client.xml in my
classpathwhen I ran the client.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871634#3871634
Reply t
Can anyone help me understand why the code below fails?
I tired to get an instance of InitialContext over HTTP per chapter 3.2.1.2 of
the JBoss 4 Application Server Guide at:
http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch3.chapter.html.
You will find below:
1.The code which should run on a
In case there is someone willing to offer a useful suggestion, I tired to
follow the documentation below that comes from from:
http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch3.chapter.htmlObviously I
am missing something big when reading it.
3.2.1.2. The HTTP InitialContext Factory Implemen
I would sure apprecitate someone running the code below and giving me a hint as
to why I am getting the error I do.
Getting started 4.0 and everything else I found says it is easy to send JMS
messages over HTTP, but I cannot.
The code is a client that cycles through 2 attempts to send and retre
Hi,
The EJB and JMS forums said JMS over HTTP is easy, but it still defeats me. I
hope this is simple enough to fit in them beginners forum, because I need a
simple beginning point.
MessageTest below is a client that sends and retreives a JMS message that says
"Success" from a Queue whose JN
A company named eApps hosts a virtual jboss 3.2.6 server for me, so I doubt if
I can do what you suggest, and I can't check until Monday.
I will post when I find out.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870864#3870864
Reply to the post :
http://
Thanks.
The server runs on Linux,
And \etc\hosts contained:127.0.0.1localhost localhost.localdomain
| Where X = name of my domain, and Z = a literal name assigned to my account
by the server host company.
So, I tried to use 127.0.0.1 in four URL formats based on what I fond at 3.2.2
(Acce
I am trying to change a simple java JMS client.
It now sends Messeges to, and receives them from a Queue on my local server.
I want it to do the same from the same version server <3.6.2> that is running
remotely on .org
But JNDI lookup is defeating me. Can anyone point me to a solution?
This
Just in case anyone else refers to this topic, all it took was to repeate the
section in the jbosscmp-jdbc.xml in my ejb.jar META-INF directory.
|
| java:/GoDS
| mySQL
| ...
|The section did not have to be repeated.
Thanx for all the help.
View the origi
Hi;
I configured JbBoss to use MySql and created two databases therein:
"jbossdb"
"go"
I'd really like to have JBoss use "jbossdb" for its jms_message, jms_roles,
jms_subscriptions, jms_transactions and jms_users tables.
And I'd like JBoss to use "go" for my bean persistance tables: games,
Hi;
I configured JbBoss to use MySql and created two databases therein:
jbossdb
go
I'd really like to have JBoss use jbossdb for jms_message, jms_roles,
jms_subscriptions, jms_transactions and jms_users tables.
And I'd like JBoss to use go for my bean persistance tables: games, members,
plays
Thanks much.
That was exactly it. I allowed Norton's to upgrade my anti-virus protection
and it slipped in another fire wall I didn't need. Uninstalling it got me back
to my original problem.
I get no errors on deploy, but cannot see my enterprise beans in the JNDI list.
If anyone is still w
I start my JBoss 3.2.6 server with nothing deployed, then hot copy my
application into it.
The log show the deployement was successful. (See Log Below).
Bu my enterprise beans cannot be seen in the console JNDI list.
Can anyone point me to the problem area? Without an error, I don't know where
Sorry for not getting back to you sooner, but I was interrupted by the need to
renew my Norton Anti-Virus software, and the update trashed my computer.
At the moment, I can no longer even get jboss to launch locally.
I am guessing that the upgradeed NOrtons is blocking the connection, but am no
Thanks, I sort of guessed that was why it still didn't work.
The servlets are in the same container I think.
My entire application is deployed in exploded form (the provider of my virtual
remote server where I go next has problems with go.ear packaging)
The Servlets are in $jboss}\...\deploy
My question is what deployment descriptor I use to bind a JNDI name to my
Entity Beans.
I am stuck.
My applicartion deployes with no error messages. I have some Servlets included
that all work.
AND ... deploying my application even creates all the required database tables
correctly.
However
I am lost in an example in O'Reilly's Enterprise Beans text (In JMS messages).
I wrote a simple java remote client tofigure out how to publish a message to a
Topic. The code and its output are posted below.
Can anyone help me with 2 questions? (other gratuitous pointers are also most
welcome):
I configured my local 3.2.3 JBoss server to use MySql with no problem.
I tired to do that same with my 3.2.6 JBoss server that is hosted on the web.
And I get an error I cannot get a handle on. (Note: I tried uninstalling
jboss, deleting the residual jboss file, reinstalling (got a clean startu
I am not sure I explained my question fully.
I have jboss and a mysql server installed on my local computer. Everything
works there.
I have jboss and a mysql server installed by a company called eApps who is my
webb host. That is were the problem is.
I am pretty certain that the remote mysql
I am configuring jboss running as a remote virtual server to use MySql.
I replaced
hsqldb-ds.xml with mysql-ds.xml
hsqldb-jdbc2-service.xml with mysql-jdbc2-service.xml
modifed standardjbosscmp-jdbc.xml
And then I was left with
hsqldb-jdbc-state-service.xml in jboss/server/defalut/deploy/j
Thanks.
It seems I needed to add
"java.naming.factory.url.pkgs"="org.jboss.naming:org.jnp.interfaces" to the
Properties parameter for new InitialContext ().
The code and screen output is shown below for the next new guy to attempt JMS.
(PS: I didn't understand the question about telnet.)
imp
Hi:
I have tried for hours to read all the questions related to looking up a
ConnectionFactory object with no success. Is there anyone who would be willing
to tell me how to this code to get an out of the box, locally installed JBoss
3.2 give me the object?
import java.util.*;
| import javax
I am using this URL for the local host
http://localhost:8080/servlet/SmallWebAppServlet
And I am using this one for the web host
http://America-3.org/servlet/SmallWebAppServlet
Thanks
George
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835572#3835572
Rep
Can anyone point me in the right direction. I have a very simple servlet packaged in
an .ear file.
It deploys perfectly on a JBoss 3.2.3 server run by my web host. But when I try the
same package on the local JBoss 3.2.3 server I just installed, I get a 500 error on my
local Jboss 3.2.3. i.e.
Can anyone point me in the right direction. I have a very simple servlet packaged in
an .ear file.
It deploys perfectly on a JBoss 3.2.3 server run by my web host. But when I try the
same package on the local JBoss 3.2.3 server I just installed, I get a 500 error on my
local Jboss 3.2.3. i.e.
32 matches
Mail list logo