[JBoss-user] [EJB/JBoss] - How to map C-M-Relationship Field to Table Column?

2005-09-11 Thread gberish
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

[JBoss-user] [Beginners Corner] - A Simple Entity Bean Deployment Goes to Wrong Database

2005-08-09 Thread gberish
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

[JBoss-user] [EJB/JBoss] - My server can't follow my deployement map from Bean to table

2005-08-07 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Re: Is this A dumb Question -- How to map table name to bean

2005-08-07 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Is this A dumb Question -- How to map table name to bean nam

2005-08-06 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Can I Catch an SQLException in a CMP Entity Bean?

2005-08-03 Thread gberish
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

[JBoss-user] [JNDI/Naming/Network] - InvalidClassException on jbossall-client.jar class

2005-05-10 Thread gberish
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: No Hope - JMS over HTTP 4.0.1

2005-03-25 Thread gberish
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

[JBoss-user] [Installation & Configuration] - Desperate for a hint. JNDI over HTTP

2005-03-23 Thread gberish
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: No Hope - JMS over HTTP 4.0.1

2005-03-21 Thread gberish
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

[JBoss-user] [Messaging, JMS & JBossMQ] - No Hope - JMS over HTTP 4.0.1

2005-03-21 Thread gberish
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

[JBoss-user] [Beginners Corner] - JMS over HTTP

2005-03-19 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Re: Local 3.6.2 Server InitialContext OK -- Remote doesn't??

2005-03-19 Thread gberish
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://

[JBoss-user] [EJB/JBoss] - Re: Local 3.6.2 Server InitialContext OK -- Remote doesn't??

2005-03-18 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Local 3.6.2 Server InitialContext OK -- Remote doesn't???

2005-03-17 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Re: Why Can't I Use Two MySQL Databases?

2005-03-15 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Why Can't I Use Two MySQL Databases?

2005-03-14 Thread gberish
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,

[JBoss-user] [Installation & Configuration] - Why Can't I Use Two Databases?

2005-03-13 Thread gberish
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

[JBoss-user] [Beginners Corner] - Re: DTD to set Entity Bean's JNDI Name?

2005-02-20 Thread gberish
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

[JBoss-user] [EJB/JBoss] - Jboss will neither bind my bean names nor throw an error?

2005-02-19 Thread gberish
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

[JBoss-user] [Beginners Corner] - Re: DTD to set Entity Bean's JNDI Name?

2005-02-18 Thread gberish
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

[JBoss-user] [Beginners Corner] - Re: DTD to set Entity Bean's JNDI Name?

2005-02-14 Thread gberish
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

[JBoss-user] [Beginners Corner] - DTD to set Entity Bean's JNDI Name?

2005-02-12 Thread gberish
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Where is my TopicConnectoinFactory?

2004-12-18 Thread gberish
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):

[JBoss-user] [Installation & Configuration] - Unsolvable MySql Configuration.

2004-12-16 Thread gberish
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

[JBoss-user] [Installation & Configuration] - Re: Unsolvable MySql Configuration.

2004-12-14 Thread gberish
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

[JBoss-user] [Persistence & CMP/JBoss] - Reconfigure To MySQL - hsqldb-jdbc-state-service.xml

2004-12-11 Thread gberish
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: One Last ConnectionFactory Lookup Question.

2004-12-01 Thread gberish
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

[JBoss-user] [Messaging, JMS & JBossMQ] - One Last ConnectionFactory Lookup Question.

2004-11-30 Thread gberish
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

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Local JBoss http 500 Error. Web Host JBoss no Problem

2004-05-19 Thread gberish
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

[JBoss-user] [Installation & Configuration] - ERROR 500: No Context configured to process this request

2004-05-18 Thread gberish
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.

[JBoss-user] [HTTPD, Servlets & JSP] - Local JBoss http 500 Error. Web Host JBoss no Problem

2004-05-18 Thread gberish
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.