[JBoss-user] ejb.jar & CLASSPATH

2001-04-06 Thread Francesco Marsoni

Downloaded JBoss+Tomcat binary. Derployed my ear with no problems. When I
hit a jsp, jboss reports a compilation error, because I can't import from
ejb package. Any hint?
Thx
Francesco


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] [Connection Factory] No Resource Manager Found for

2001-04-06 Thread Naresh Sharma

Hello Everybody,


I am trying to deply a BMP entity bean.

Well i am facing problem in defining Resource Manager. the behaviour i
observed is like this

1) I put my app jar file in deploy folder and started JBoss server then
it throws this errormessage

 [J2EE Deployer Default] Create application myapp.jar
 [J2EE Deployer Default] install module myapp.jar
 [Container factory]
Deploying:file:/F:/jboss/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy/Default/myapp.jar

 [Verifier] Verifying
file:/F:/jboss/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy/Default/myapp.jar/e

 jb1002.jar
 [Container factory] Deploying abc
 [Container factory] Deploying xyz
 [Container factory] No resource manager found for myDB
 [Container factory] No resource manager found for myDBDB


fine.

now if i again put my application jar file in deploy folder(still jboss
is running) this error message does'nt appear and everything works fine.

my conclusion is if i am deploying the application using Auto deploy it
works perfect but does'nt
work if deploying it other way. and i think i am missing something in
mapping the Resource manager, datasource ...


any clue ?

Thanks
naresh


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] The first bean

2001-04-06 Thread Peter Routtier-Wone

renej,

JBoss is software, not magic - even if it is amazing.

There are two ways JBoss could respond to changes in the data store
underlying your CMP beans. The first is for it to poll the data store. This
is not a good idea. It would place an unacceptable load on the data store.

The other way is for the data store to notify JBoss of changes. Doing this
requires code that is very specific to the data store. For example, if you
were using Oracle as a data store, you could have an update trigger on each
table set up to send a JMS notification to JBoss, and use message driven
beans to cause the reloading of entity bean data.

If you stop JBoss while the legacy application uses the data store, and
restart it afterwards, entity beans reading the data store for the first
time will pick up the latest values, correctly reflecting whatever changes
your legacy application made. This is much simpler and will certainly work.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] The first bean

2001-04-06 Thread Rickard Öberg

> I have a question not seen before on any of the lists. I deployed
yesterday the first CMP bean in
> JBoss, works fine. The situation:
>
> The bean shows database records and is able to update. However the
database
>  is also updated by legacy 4GL, as soon as this happens the beans don't
show
>  the actual values anymore, is there a way to refresh beans ? Should we
turn
> 4GL update routines off ?

This is actually a frequently asked question. Change your commit option to C
in standardjboss.xml. This will cause the beans state to be updated on every
transaction.

/Rickard

--
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re embedded tomcat jboss-2.1

2001-04-06 Thread faisal

This what happened:
My session,mcp and bmp beans are deployed as I can see in Jboss-2.1
console.When I try to call my bean home using a servlet or a jsp - beanHome
home =(beanHome)new InitialContext().lookup("my bean JNDI name") I don't
receive any answer . I tried most of the suggested configurations in the
mailing list and
and the web
Or do I  still need to configure Tomcat server.xml or its mod_jk ?


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss and Petstore deployment problem

2001-04-06 Thread acroo

Hi!

I tried to remove the j2ee.jar from the classpath and ended up with this error 
when trying to build the petstoreEJB.ear

Executing Target: ear
[java] Calling com.sun.enterprise.tools.packager.Main
Myos = Windows 2000
[exec] java -
classpath ..\build\classes;..\..\components\mail\build\classes;..\..\components\
shoppingcart\build\classes;
..\..\components\inventory\build\classes;..\..\components\customer\build\classes
;..\..\components\util\tracer\build\clas
ses;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1
\lib\ext\ejb2.0.jar;..\..\..\..\..\servers\jboss-tomcat-2.1-be
ta\jboss-2.1\bin\run.jar;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1
\lib\ext\jboss.jar;..\src\lib\parser.jar;
..\src\lib\jaxp.jar;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1
\client\jbosssx-client.jar com.sun.enterprise.
tools.packager.Main -
enterpriseArchive ../build/petstoreEjb.jar:../../components/mail/build/mailerEjb
.jar:../../componen
ts/inventory/build/inventoryEjb.jar:../../components/customer/build/customerEjb.
jar:../../components/shoppingcart/build/
shoppingcartEjb.jar:../build/petstore.war petstore ../build/petstore.ear
[error] java.lang.NoClassDefFoundError: com/sun/enterprise/tools/packager/Main
[error] Exception in thread "main"
[exec] Result: 1
---

The same error occured in the runtime and main executing target as well (I use 
the -verbose flag for ant to get more information about commands and so on...)

Then I tried to unjar j2ee.jar, remove the javax.ejb package and rejared it. 
When this was added to the classpath the result error was the same. Also when I 
removed the ejb2.0.jar file the result was the same.

I really don't know what to do know so any idea would be greatly appreciated!

Again thank you for your time!

Cheers Christian




Executing Target: ear
[java] Calling com.sun.enterprise.tools.packager.Main
Myos = Windows 2000
[exec] java -
classpath ..\build\classes;..\..\components\mail\build\classes;..\..\components\
shoppingcart\build\classes;
..\..\components\inventory\build\classes;..\..\components\customer\build\classes
;..\..\components\util\tracer\build\clas
ses;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1
\lib\ext\ejb2.0.jar;D:\java\j2sdkee1.3\lib\j2ee_no_ejb.jar;..\
..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1
\bin\run.jar;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1\l
ib\ext\jboss.jar;..\src\lib\parser.jar;..\src\lib\jaxp.jar;..\..\..\..\..\server
s\jboss-tomcat-2.1-beta\jboss-2.1\client
\jbosssx-client.jar com.sun.enterprise.tools.packager.Main -
enterpriseArchive ../build/petstoreEjb.jar:../../components/
mail/build/mailerEjb.jar:../../components/inventory/build/inventoryEjb.jar:../..
/components/customer/build/customerEjb.j
ar:../../components/shoppingcart/build/shoppingcartEjb.jar:../build/petstore.war
 petstore ../build/petstore.ear
[error] java.lang.NoClassDefFoundError: com/sun/enterprise/tools/packager/Main
[error] Exception in thread "main"
[exec] Result: 1

Christian Holmqvist

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dewayne
> McNair
> Sent: den 4 april 2001 16:27
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss and Petstore deployment problem
> 
> 
> The first thing to do is remove j2ee.jar from your classpath.  Report back
> if you still have problems after that.
> 
> > ents\util\tracer\build\classes;D:\java\j2sdkee1.3
> > \lib\j2ee.jar;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1\bi
> > n\run.jar;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1
> > \lib\ext\jboss.jar;..\src\lib\parser.jar;..\src\lib\jaxp
> >
> .jar;..\..\..\..\..\servers\jboss-tomcat-2.1-beta\jboss-2.1\client
> \jbosssx-
> > client.jar com.sun.enterprise.tools.packager.
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss won't read jaws.xml, jboss.xml

2001-04-06 Thread Pelle Poluha

Hello!

I have a small problem when deploying a ear-file containing 6 ejb:s. I have
placed my table definitions in the jaws.xml-file (including
true so that
the table would be removed when undeploying. I also have a jboss.xml
containing the jndi-names of the beans. These to files have then been placed
in the META-INF directory of the application, i e the same directory as
application.xml.

But the tables don't get removed when undeploying. And the table definitions
remain the same, whatever I write in the jaws.xml. Furthermore, the jndi
names of the beans are those given in the ejb-jar.xml-file (in ),
and not those stated in the jboss.xml-file.

So I suspect jBoss doesn't read the files at all. But why not? I've tried to
place the jaws-file in the META-INF of one of the beans, but that didn't
help.

Please advice!

Regards,
Pelle Poluha



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] The first bean

2001-04-06 Thread Peter Routtier-Wone

> This is actually a frequently asked question. Change your commit option to
C
> in standardjboss.xml. This will cause the beans state to be updated on
every
> transaction.

OK Rickard, you've really got my curiosity piqued - where in the code is
this particular miracle?



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] ClassNotFoundException in deploying a .ear in Jboss2.1-beta : 2nd post

2001-04-06 Thread Halim Yahia



Hi,

i already posted my question a few days ago but i had
have no answer to it.

i am using Jboss2.1-beta+Tomcat. I try to deploy a J2EE
application but i get an error msg from jboss.

i tried the same app.ear on a JBoss2.0-Final then i don't
get the error msg. So, is it a bug of Jboss2.1-beta ?


My application is packaged into an app.ear file that has
structure:

/ META-INF /application.xml
  app.jar
  app.war

in app.jar i have EJBs and in app.war other util code and
jsp pages.

my app.war have the structure
/ WEB-INF /web.xml
/classes/com/st/risk/log/RiskFileAppender.class
/lib

/ jsp files

I don't think that i have to give the CLASSPATH access to my classes because
they are part of application. So, why do not jboss find my classes ?

Thanks for help.

Here is error msg from server console :


[EmbeddedTomcat] java.lang.ClassNotFoundException:
com.st.risk.log.RiskFileAppender
[EmbeddedTomcat]at
javax.management.loading.MLet.findClass(MLet.java:800)
[EmbeddedTomcat]at
java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[EmbeddedTomcat]at
java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[EmbeddedTomcat]at java.lang.Class.forName1(Native Method)
[EmbeddedTomcat]at java.lang.Class.forName(Class.java(Compiled
Code))
[EmbeddedTomcat]at
org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConver
ter.java:195)
[EmbeddedTomcat]at
org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.ja
va:89)
[EmbeddedTomcat]at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.jav
a:574)
[EmbeddedTomcat]at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.jav
a:555)
[EmbeddedTomcat]at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigur
ator.java:462)
[EmbeddedTomcat]at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
388)
[EmbeddedTomcat]at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
300)
[EmbeddedTomcat]at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:30
8)
[EmbeddedTomcat]at
com.st.risk.log.RiskCategory.init(RiskCategory.java:58)
[EmbeddedTomcat]at
com.st.risk.log.RiskCategory.(RiskCategory.java:54)
[EmbeddedTomcat]at
com.st.risk.log.RiskCategoryFactory.makeNewCategoryInstance(RiskCategoryFact
ory.java:37)
[EmbeddedTomcat]at
org.apache.log4j.Hierarchy.getInstance(Hierarchy.java:158)
[EmbeddedTomcat]at
org.apache.log4j.Category.getInstance(Category.java:599)
[EmbeddedTomcat]at
com.st.risk.log.RiskCategory.getInstance(RiskCategory.java:75)
[EmbeddedTomcat]at
com.st.risk.log.RiskCategory.getCategory(RiskCategory.java:44)
[EmbeddedTomcat]at
_0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.
java:74)
[EmbeddedTomcat]at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
[EmbeddedTomcat]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[EmbeddedTomcat]at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
[EmbeddedTomcat]at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
[EmbeddedTomcat]at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
[EmbeddedTomcat]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[EmbeddedTomcat]at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[EmbeddedTomcat]at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[EmbeddedTomcat]at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[EmbeddedTomcat]at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
[EmbeddedTomcat]at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
[EmbeddedTomcat]at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
[EmbeddedTomcat]at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
[EmbeddedTomcat]at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
[EmbeddedTomcat]at java.lang.Thread.run(Thread.java:498)
[EmbeddedTomcat] log4j:ERROR Could not instantiate appender named "A2".
[EmbeddedTomcat] log4j:ERROR No appenders could be found for category
(risk.cat).
[EmbeddedTomcat] log4j:ERROR Please initialize the log4j system properly.


Halim YAHIA

SELF TRADE
18 QUAI DU POINT DU JOUR
92659 BOULOGNE BILLANCOURT CEDEX

Tel: +33 (0)1 46 09 48 55
Fax: +33 (0)1 46 09 53 90
e-mail: [EMAIL PROTECTED]



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo

[JBoss-user] Re: Is there a way to configure Minerva Object Pool through XML

2001-04-06 Thread chinnaswamyg

Hi All,

   Can some one help me out to know whether it is possible to do the object pool 
configuration using xml.

Highly appreciate your advice.

Thanks and regards

Chinnaswamy






Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problem with embedded Tomcat

2001-04-06 Thread jsoriano

Hello everybody:

I've followed every step in your 'chapter10. howto' section to configure
Tomcat with JBoss. When i run the script 'run.sh' i get the following error:


[Service Control] Could not start DefaultDomain:service=EmbeddedTomcat
[Service Control] java.lang.NoClassDefFoundError: org/apache/tomcat/util/xml/XmlAction
(...)


...Well, JBoss starts correctly, i can view the page on 'http://localhost:8082' about
JBoss. But i can't view the tomcat welcome page on 'http://localhost:8080' nor my
contexts published in /tomcat/webapps.

I have read about similar problems in the 'archive' of this mail-list and i've done
the recommendations (i.e., i execute "export CLASSPATH=" before running 'run.sh')
but it doesn't run.

Any suggestion??

Thanks in advance, regards:
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__

[JBoss-user] Missing DependencyManager

2001-04-06 Thread Tobias Seelinger

Hi,

it seems to me that changes in jboss.dependencies has no effect. I have
found a DependencyManager in org.jboss.dependencies but it is not used.
It was called by Main.java till Revision 1.22. Could it be activated
again or is there another way to configure the list of MBeans ?


Tobias

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] The first bean

2001-04-06 Thread Sacha Labourey

Hello,

>
> OK Rickard, you've really got my curiosity piqued - where in the code is
> this particular miracle?
>
I think there no magic here ;)

The container will simply reload the bean state each time the bean is
requested i.e. no more caching.

Cheers,


Sacha


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problems with FreeTDS

2001-04-06 Thread Antonio Vazquez

Hi all,
I have some problems creating a connection pool using the FreeTDS driver.The
database server is MS-SQL Server 2000. I've followed the document "HowTo:
Use MS SQL Server with JBoss".I don´t know which is the problem.

The lines from jboss.jcml are:

  
org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.
internetcds.jdbc.tds.Driver 
  
.

  SQLServerPool
  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
  
  jdbc:freetds:sqlserver://localhost:1433/NCRMSGB
  120
  sa
  10
  
  false
  false
  false
  true
  12
  180
  false
  false
  1.0
  0

The freetds_jdbc.jar file is in c:\jboss-tomcat-2.1-beta\jboss-2.1\lib\ext.

And the error is:

[SQLServerPool] Starting
[SQLServerPool] XA Connection pool SQLServerPool bound to
java:/SQLServerPool
[SQLServerPool] Exception- java.lang.NullPointerException

Can somebody help me?

Thank in advance

Antonio


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with embedded Tomcat

2001-04-06 Thread Christopher Albert

[EMAIL PROTECTED] wrote:
> 
> Hello everybody:
> 
> I've followed every step in your 'chapter10. howto' section to
> configure
> Tomcat with JBoss. When i run the script 'run.sh' i get the following
> error:
> 
> [Service Control] Could not start DefaultDomain:service=EmbeddedTomcat
> 
> [Service Control] java.lang.NoClassDefFoundError:
> org/apache/tomcat/util/xml/XmlAction
> (...)
> 

Jaume,

What version of jboss+tomcat are you using?
Have you tried the build on
www.jboss.org/bin/jboss-tomcat-2.1-beta.zip ?
It's ready to go.

However, the class you are missing is normally
in webserver.jar which should be in your $TOMCAT_HOME/lib
directory, and thus get loaded automaticaly by tomcat.

Chris


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] The first bean

2001-04-06 Thread Rickard Öberg

> > This is actually a frequently asked question. Change your commit option
to
> C
> > in standardjboss.xml. This will cause the beans state to be updated on
> every
> > transaction.
>
> OK Rickard, you've really got my curiosity piqued - where in the code is
> this particular miracle?

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/jboss/src/main/org/jboss/ejb/p
lugins/EntitySynchronizationInterceptor.java?rev=1.31&content-type=text/x-cv
sweb-markup&cvsroot=jboss

Last page of code.

/Rickard

--
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Class Not Found Exception :org.jboss.util.ServiceMBeanSupport not found

2001-04-06 Thread Rama Rao

Hi All,

   I have created my custom M Bean and plcaed in lib/ext directory.
   This is working fine if i run jboss using java -jar run.jar command.
   It is giving the exception "Class Not Found Exception
:org.jboss.util.ServiceMBeanSupport not found" if run jboss using the batch
file run.bat.
   jboss.jar is in lib/ext directory only.
   can any body help me?

TIA
Rama Rao


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problems with FreeTDS

2001-04-06 Thread Antonio Vazquez



-Mensaje original-
De: Antonio Vazquez [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de abril de 2001 14:23
Para: Jboss-User@Lists. Sourceforge. Net
Asunto: Problems with FreeTDS


Hi all,
I have some problems creating a connection pool using the FreeTDS driver.The
database server is MS-SQL Server 2000. I've followed the document "HowTo:
Use MS SQL Server with JBoss".I don´t know which is the problem.

The lines from jboss.jcml are:

  
org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.
internetcds.jdbc.tds.Driver 
  
.

  SQLServerPool
  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
  
  jdbc:freetds:sqlserver://localhost:1433/NCRMSGB
  120
  sa
  10
  
  false
  false
  false
  true
  12
  180
  false
  false
  1.0
  0

The freetds_jdbc.jar file is in c:\jboss-tomcat-2.1-beta\jboss-2.1\lib\ext.

And the error is:

[SQLServerPool] Starting
[SQLServerPool] XA Connection pool SQLServerPool bound to
java:/SQLServerPool
[SQLServerPool] Exception- java.lang.NullPointerException

Can somebody help me?

Thank in advance

Antonio


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Need Help With Connection Pools

2001-04-06 Thread Creighton Kirkendall



I am a little new to 
JBoss.  Can anyone give me some sample code of a session bean or bean 
managed entity bean accessing the database directly using JBoss's internal 
connection pools.  
 
Creighton


Re: [JBoss-user] The first bean

2001-04-06 Thread James Cook

Very true, and in accordance with the spec. EJB isn't about caching live
instances of data objects. Never has been. There are very few business
applications that have the luxury of sole ownership of their data. For those
that do, you may use commit option a or b, others must user c.

jim

- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 8:12 AM
Subject: RE: [JBoss-user] The first bean


> Hello,
>
> >
> > OK Rickard, you've really got my curiosity piqued - where in the code is
> > this particular miracle?
> >
> I think there no magic here ;)
>
> The container will simply reload the bean state each time the bean is
> requested i.e. no more caching.
>
> Cheers,
>
>
> Sacha
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ECperf project

2001-04-06 Thread Christopher Albert

Tom Coleman wrote:
> 
> Tom Daly wrote:
> 
> >
> > Actually I was working on JBoss on Solaris and Linux 7 and got it working on
> > both platforms well at least I got one user running on both platforms.  I
> > would be interested to try my build with the cloudescape schema and whatever
> > JDBC drivers you recommend (I was using Oracle).
> >
> 
>  Re: Oracle, you have my sympathies.   ;\
> 
> > I take it you didn't have to change the schema but if you have something
> > to allow me to "easily" populate the cloudescape DB it would enable me to
> > do a quick test, and maybe send you something back working and complete.
> 

>  The zip file can be accessed from the JBoss ECperf project page:
> 
>  
> 
>  I built a single test database using Cloudscape from the RI (1.2.1)
>  distribution.
> 
>  The Cloudscape tools assume Cloudscape is running on port 1098.  Grep for
>  this if you need to change the rmi port number.
> 
>  Further information on running JBoss/Cloudscape is available in the Pet
>  Store HOWTO:
> 
>  
> 
>  Tom C.

I just downloaded the ECperf patch, then built the app successfully in
the following way.

1. I edited the file "ri.env" in $ECPERF_HOME/config to set the J2EE and
JAVA home environment variables correctly for my machine( adding as well
an $ECPERF_HOME ).
2. I went to my $J2EE_HOME (j2sdkee1.2.1) and started cloudscape and
j2ee from the bin dir. THis cloudscape had alreday been set to run on
port 1098 from the petstore app.
3. I then unzipped the patch in $ECPERF_HOME, and ran the populate
script in schema/cloudscape.
4. I then went into $ECPERF_HOME/src , sourced the file 
$ECPERF_HOME/config/ri.env and then ran 
make
make ri
make ri.emulator

All of which built and deployed without errors. Though I did not test it
all all on j2sdkee1.2.1.( I only use jboss ...) 

This is just to give you some testing feedback.

As for the patch JBoss-ECperf-patch-001.zip, It seems a bit confusing
since there is considerable overlap between the contents of this archive
and the contents of the JBoss-ECperf-001.zip file which it contains. In
fact the latter only adds the Jboss dir and its contents, and only omits
the README.Jboss and itself.

In addition, the populate script contains two identical commands (first
and forth for  sql/schema_C.sql). This might not be important, but I
thought I might mention it.

Thanks,

Chris


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] ECperf project

2001-04-06 Thread Tom Coleman


I managed to get ECperf to build and deploy on RH 6.2 / jdk-1.3-fcs on the
RI server.  (Hey, you got to start _somewhere_).

The Makefile was being very fussy about spaces.

I've also manged to "load" the Cloudscape DB.  There were some problems 
with the 'loaddb.sh' script.

I have some errors, but I think they're DB related and may succumb after
I peruse the RI docs.

I will post updated resources tonight.  I'll also post the exceptions if
I can't make any sense of them.

Does anyone have ECperf running?

Thanks,



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with embedded Tomcat

2001-04-06 Thread Christopher Albert

[EMAIL PROTECTED] wrote:
> 
> Hello everybody:
> 
> I've followed every step in your 'chapter10. howto' section to
> configure
> Tomcat with JBoss. When i run the script 'run.sh' i get the following
> error:
> 
> [Service Control] Could not start DefaultDomain:service=EmbeddedTomcat
> 
> [Service Control] java.lang.NoClassDefFoundError:
> org/apache/tomcat/util/xml/XmlAction
> (...)
> 
> ...Well, JBoss starts correctly, i can view the page on
> 'http://localhost:8082' about
> JBoss. But i can't view the tomcat welcome page on
> 'http://localhost:8080' nor my
> contexts published in /tomcat/webapps.
> 
> I have read about similar problems in the 'archive' of this mail-list
> and i've done
> the recommendations (i.e., i execute "export CLASSPATH=" before
> running 'run.sh')
> but it doesn't run.
> 
> Any suggestion??
> 
> Thanks in advance, regards:
> __
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 96504 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias
> W a n a d o o E s p a n a - http://www.wanadoo.es
> __

Jaume,

I forget to add that you need to modify jboss.conf to add the tomcat
jars.
Here are the relevant lines from my jboss.conf, which is from the zip
download I mentioned in my previous post



   
   


Note the final slash after lib on the forth line.

Buena Suerte,

Chris


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Need Help With Connection Pools

2001-04-06 Thread Chidambara, Vinoth (CTS)

 <> 

With Regards,
Vinoth.C

> -Original Message-
> From: Creighton Kirkendall [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 6:22 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  [JBoss-user] Need Help With Connection Pools
> 
> I am a little new to JBoss.  Can anyone give me some sample code of a
> session bean or bean managed entity bean accessing the database directly
> using JBoss's internal connection pools.  
>  
> Creighton


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

 Database.zip


[JBoss-user] Need Help Connection Pools (can't see zip files)

2001-04-06 Thread Creighton Kirkendall



I want to thank you 
Vinoth.C for your quick response.  However because I get these 
messages in a batch file I can't read zips.  I can read them if you 
cut an passed one of the bean implementation into a 
message. 
 
Creighton 
Kirkendall


RE: [JBoss-user] Need Help Connection Pools (can't see zip files)

2001-04-06 Thread Chidambara, Vinoth (CTS)


import javax.ejb.*;
import java.sql.*;
import javax.sql.*;
import java.awt.event.*;
import javax.naming.*;
import java.awt.*;
import java.util.*;
import java.rmi.*;

public class DatabaseBean implements SessionBean{

SessionContext ctx;

public void ejbCreate(){
}
public void ejbRemove(){

}
public void setSessionContext(SessionContext ctx)
{
this.ctx = ctx;
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}

public int connectDatabase(){

Connection con=null;
int i=0;
Context ctx =   null;

try {
ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/TryDB");
con = ds.getConnection();
Statement stmt=con.createStatement();

ResultSet rs=stmt.executeQuery("select * from model");
while(rs.next()){
i++;
}
}catch(Exception ne) {
System.out.println("naming exception "+ne);
} finally {
if(con != null)
try {con.close();} catch(SQLException e) {}
}
return i;
}

}

With Regards,
Vinoth.C

> -Original Message-
> From: Creighton Kirkendall [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 6:48 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  [JBoss-user] Need Help Connection Pools (can't see zip
> files)
> 
> I want to thank you Vinoth.C for your quick response.  However because I
> get these messages in a batch file I can't read zips.  I can read them if
> you cut an passed one of the bean implementation into a message. 
>  
> Creighton Kirkendall

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Re embedded tomcat jboss-2.1

2001-04-06 Thread Swami Iyer

Hey Faisal,
Try doing the JNDI list with the given jndiView.jar and see whether your
bean is properly deployed when you use the embedded tomcat. Also check
whether you are logging to console or file and if you want set the logging
level to be DEBUG so that you see every bit of information.

--Swami


> -Original Message-
> From: faisal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 5:24 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re embedded tomcat jboss-2.1
> 
> 
> This what happened:
> My session,mcp and bmp beans are deployed as I can see in Jboss-2.1
> console.When I try to call my bean home using a servlet or a 
> jsp - beanHome
> home =(beanHome)new InitialContext().lookup("my bean JNDI 
> name") I don't
> receive any answer . I tried most of the suggested 
> configurations in the
> mailing list and
> and the web
> Or do I  still need to configure Tomcat server.xml or its mod_jk ?
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


 Swami Iyer.vcf


Re: [JBoss-user] jboss 2.0 connection pool AutoCommit default?

2001-04-06 Thread toby cabot

More data: AccountEJB.java from the Sun j2ee tutorial grabs a Connection
in setEntityContext(), holds onto it until unsetEntityContext(), and
uses it for all database work in the mean time.  This doesn't seem to
agree with the 1.1 spec (page 168) which shows example code grabbing and
releasing the Connection in the same method.

If I hack the code to grab and release in each method then it seems to
work as expected.  Guess I'll point this out to Sun.

Am I right in thinking that holding on to the Connection is a bad idea
and interferes with the container's container-managed demarcation?

Thanks,
Toby Cabot

> I'm getting my feet wet porting some of the Sun j2ee tutorial code
> (stateless session "Converter", BMP entity "Account") over to jboss
> 2.0 and postgresql 7.0.  It's been pretty straightforward so far,
> except for one issue: it appears that the Sun BMP code assumes (and
> the Sun
> reference j2ee container implements) that jdbc connections are by
> default AutoCommit true, since the AccountEJB code never calls
>setAutoCommit() or commit(), but the results *are* committed to the
>database.
> 
> In jboss/postgresql it looks like AutoCommit is false by default
> since I get the same behavior if I explicitly setAutoCommit( false)
> that I get if I do nothing (i.e. results never committed to db).




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Shutdown

2001-04-06 Thread Taylor, Richard

Is there any static method exposed to initiate a shutdown of jboss.  I
realise that System.exit(0) does this but I cannot use it in this case.

I have seen the Shutdown class in CVS that uses a URL to shut the server
down but this is not of use to me either.

(This is basically trying to get a clean shutdown when run as an NT
Service).

Thanks,

Richard.


**
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Missing DependencyManager

2001-04-06 Thread danch

The dependency stuff is not used in 2.1/2.2. MBeans are simply started 
in the order the occur in jboss.jcml

-danch

Tobias Seelinger wrote:

> Hi,
> 
> it seems to me that changes in jboss.dependencies has no effect. I have
> found a DependencyManager in org.jboss.dependencies but it is not used.
> It was called by Main.java till Revision 1.22. Could it be activated
> again or is there another way to configure the list of MBeans ?
> 
> 
> Tobias
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Missing DependencyManager

2001-04-06 Thread Scott M Stark

See the "How to Integrate Custom Services via MBeans" in 
http://www.jboss.org/documentation/HTML/index.html

- Original Message - 
From: "Tobias Seelinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 4:37 AM
Subject: [JBoss-user] Missing DependencyManager


> Hi,
> 
> it seems to me that changes in jboss.dependencies has no effect. I have
> found a DependencyManager in org.jboss.dependencies but it is not used.
> It was called by Main.java till Revision 1.22. Could it be activated
> again or is there another way to configure the list of MBeans ?
> 
> 
> Tobias
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Where can I find Hypersonic Database viewer?

2001-04-06 Thread Pifen Ellwood

Hi,
I search the Hypersonic web site for the viewer program but can't find it.
Can anyone tell me if there is any Hypersonic DB viewer exists? Where can I
find it?
Thanks

Pifen Ellwood


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss won't read jaws.xml, jboss.xml

2001-04-06 Thread danch

Pelle Poluha wrote:

> Hello!
> 
> I have a small problem when deploying a ear-file containing 6 ejb:s. I have
> placed my table definitions in the jaws.xml-file (including
> true so that
> the table would be removed when undeploying. I also have a jboss.xml
> containing the jndi-names of the beans. These to files have then been placed
> in the META-INF directory of the application, i e the same directory as
> application.xml.
> 
> But the tables don't get removed when undeploying. And the table definitions
> remain the same, whatever I write in the jaws.xml. Furthermore, the jndi
> names of the beans are those given in the ejb-jar.xml-file (in ),
> and not those stated in the jboss.xml-file.
> 
> So I suspect jBoss doesn't read the files at all. But why not? I've tried to
> place the jaws-file in the META-INF of one of the beans, but that didn't
> help.

They _must_ be in the META-INF directory to get picked up. 

How are they capitolized? Their names must be in lower case.

-danch




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help for a little subproject?

2001-04-06 Thread Peter Routtier-Wone

I'm experimenting with knocking up a GUI editor for EJBs that autogenerates
the home and proxy (client) interfaces as well as the deployment
descriptors. Imagine a tree at left and an edit pane at right that shows
either a property sheet for terminal children of the selected node or a
method body editor. The info that goes in deployment descriptors etc is
handled as "properties" of the beans.

I've got visions of compiling in memory, and simply emitting finished jars
(why not, it's not hard to create a zip stream).

To start with I'm just going to emit class files and XML files, and manually
compile and package them.

Supposing that things get that far, can anyone out there help me with the
mysteries of in-memory compilation? That part is new territory for me. I
don't even know where to find the doco, I just hazily remember seeing a
compiler class mentioned somewhere.

If you're really keen, we could define an interface for passing a source
stream plus support info, and returning a bytestream. That way I could fake
it with an implementation that just writes out to files, allowing me to get
on with the editor parts.

The grandest version of this particular delusion has all the exciting bits
happening as an EJB application emitting a jar straight into the deploy
directory and returning the client jar to the client.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] InstantDB hang

2001-04-06 Thread Taylor, Richard

[JBoss 1.2, JDK1.3, NT]

I am attempting to get a clean method of installing jboss as an NT service.
I'm almost there except InstantDB is hanging just before it says 

[InstantDB] Started

If I run it from the batch file then it works fine.

Also please can someone clarify what InstantDB is used for?


**
Information in this email is confidential and may be privileged. 
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with embedded Tomcat

2001-04-06 Thread jsoriano

Thanks Chris: you are right...it was a tomcat version problem!
I'm executing Jboss correctly now.
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__

Re: [JBoss-user] ejbStore and finder method

2001-04-06 Thread Emmanuel Sciara

From: "danch" <[EMAIL PROTECTED]>
> Emmanuel Sciara wrote:
> >
> > I would tend to agree with that. IMHO no commit means that you can
rollback.
> > It does not mean that you don't perform any actions what so ever.
> >
> > I guess the server could take one of two approaches (or both and leave
the
> > option to the developer):
> > - use the rollback capabilities of the underlying datastore. This means
> > performing updates and creates straight away to the database, which
> > performance-wise is not great.
> > - maintain the state at the server level with some kind of caching. This
> > means performing updates and creates to the datastore only if there is
no
> > rollback required and commit straight after. That would probably provide
> > better performance, but the caching layer seems to have to be fairly
> > complexe to me.
> The EJB spec dictates the behavior. If you look in section 9.5 of the
> 1.1 spec, it indicates that when an entity is created, its initial state
> should be pushed into the database right away, but that update
> operations should be done as part of the commit process.

So we seem to have a slight compliance issue here.

Mark, what is the best way to raise the problem (if you agree there is a
problem). Send it to the developer list? Should I raise a bug in Bugzilla?
Sing a song? (huh?! Maybe not, I am an appalling singer) :)

> >
> > In both cases, I think you should be able to find an entity you have
created
> > in the same transaction.
> That does follow the "Law of least astonishment"

Huh?

Emmanuel

> >
> > Do I make sens here or is there something I have not considered?
> >
> > Emmanuel
> >
> > - Original Message -
> > From: "Dan Christopherson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 04, 2001 4:31 PM
> > Subject: RE: [JBoss-user] ejbStore and finder method
> >
> > > I'm not so sure it's that simple, Marc. WRT to CMP created bean
> > > especially, the 1.1 spec indicates that the bean's state should be
pushed
> > > into the database as part of the 'create' call. Shouldn't custom
finders
> > > then find it? Assuming that the database allows a transaction to see
what
> > > it has already done, that is.
> > >
> > > As for the problem where the customer finders come in, shouldn't the
> > > container do a cache look-aside sort of a thing? Oof, it then has to
make
> > > sure transactions match, doesn't it. But the
> > > (InstanceInterceptor? TxInterceptor? one or the other) will block if
the
> > > transactions don't match. A agree, obviously, that no commit means no
> > > commit, but I think it's reasonable to expect a transaction to see its
own
> > > work. Implementing this look aside would require a bit of an egg-shell
> > > walk, perhaps.
> > >
> > > On Wed, 4 Apr 2001, marc fleury wrote:
> > >
> > > > |Or is it simply not part of the spec?
> > > >
> > > > by definition, no commit -> no commit
> > > >
> > > > marc
> > > >
> > > >
> > > >
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > >
> > > --
> > > Dan Christopherson (danch)
> > > nVisia Technical Architect (www.nvisia.com)
> > >
> > > Opinions expressed are mine and do not neccessarily reflect any
> > > position or opinion of nVISIA.
> > >
> >
> --
> > -
> > > If you're a capitalist and you have the best goods and they're
> > > free, you don't have to proselytize, you just have to wait.
> > > -Eben Moglen
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> Confidential e-mail for addressee only.  Access to this e-mail by anyone
else is unauthorized.
> If you have received this message in error, please notify the sender
immediately by reply e-mail
> and destroy the original communication.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ECperf project

2001-04-06 Thread Tom Coleman

Christopher Albert wrote:

> 
> As for the patch JBoss-ECperf-patch-001.zip, It seems a bit confusing
> since there is considerable overlap between the contents of this archive
> and the contents of the JBoss-ECperf-001.zip file which it contains.
>

  It is strange, but I thought it would be a good idea to include
  a README that tells you where to zip the patch file. 

> 
> In addition, the populate script contains two identical commands (first
> and forth for  sql/schema_C.sql). This might not be important, but I
> thought I might mention it.
> 

  It was a rush job.  I'll fix it tonight.  Thanks.

> 
> All of which built and deployed without errors. Though I did not test it
> all all on j2sdkee1.2.1.( I only use jboss ...) 
>

  That would put you in good position to work on the JBoss deployment
  descriptors.  ;-)

  They're in the patch, and Tom D. says they work.  Since you've got 
  Cloudscape running, you're in pretty good position to move forward.

  We'll have to repackage the .ear for JBoss, but there is plenty of
  extremely competent help on this list.

  Regards,

  Tom C.
 

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] FW: [JBoss-dev] JMX in jBoss, Clustering, Monitoring, Failover, better bootstrapping via pluggable XMLet

2001-04-06 Thread Sean Neville

...and here is Marc's response.

Cheers,
Sean

-Original Message-
From: marc fleury [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 10:22 AM
To: Sean Neville; 'Stacy Curl'; Rickard Öberg (E-mail)
Subject: RE: [JBoss-dev] JMX in jBoss, Clustering, Monitoring, Failover,
better bootstrapping via pluggable XMLet




|-Original Message-
|From: Sean Neville [mailto:[EMAIL PROTECTED]]
|Sent: Friday, April 06, 2001 9:38 AM
|To: 'Stacy Curl'; Marc Fleury (E-mail); Rickard Öberg (E-mail)
|Subject: RE: [JBoss-dev] JMX in jBoss, Clustering, Monitoring, Failover,
|better bootstrapping via pluggable XMLet
|
|
|One remark I might add regards the following statement:
|
|>>>
|- Are there parallels between JMX and RMI, there is an RMIRegistry, does it
|make sense to have a JMXRegistry and access the MBeans through URL's ?
|jmx://machineName:agentName/domainName/objectName or
|jmx://agentName/domainName/objectName, or in conjunction with the SSI JMX:
|jmx://domainName/objectName
|>>>
|
|
|There is a JSR (JSR-111, proposed by the good folks at
|HP/Bluestone) that is
|an attempt to standardize the JMX-based service infrastructure that JBoss
|pioneered, and that has since found a home within many app servers. One
|element that it adds as an internal service (internal, that is, when the
|infrastructure is viewed as an implementation of the microkernel
|pattern) in
|Naming.
|
|Instead of treating JMX and RMI as raw registries accessible via raw URL's,
|the JSR suggests making services available via JNDI. I am doing something
|similar at the moment in JRun 4.0, using
|java:comp/jrun/serverName/serviceName. JRun allows the deployment of
|multiple servers from the same install and codebase, hence the serverName
|subcontext.

Yes this is where I am going, I am leading JSR77 in that direction.  I
believe I have the folks in order there, but the implementation is
orthogonal.  See my forum response.

|
|The JSR also suggests composite services, referred to as service
|partitions.
|These services contain other services that are not meaningful outside the
|bounds of the parent service (such as the specific interceptors
|instantiated
|within a container, where the container is a partition). These internal
|services are accessible through
|java:comp/serverName/partitionName/serviceName. Typically
|partitionName is a
|unique JMX domain name. This assumes that services are properly bindable.

Interesting... services are thought of standalone services today
(navigatable)

|There is more that the JSR adds as an internal service to the
|infrastructure
|(security, for example), but this one has struck me as particulary useful
|and relevant. It also allows services to reference one another
|without being
|tied to JMX or RMI. Just something to consider. I did not want to post this

Ok, really see my previous mail the EJB bare brain is a simple way to
offer that... you are also missing the transactional nature of managmeent
operations.

|to the entire list, but do feel free to forward it to whomever may have an
|interest, at your discretion.

Oh please forward all this


"I like this..."



|
|Best regards,
|Sean
|

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: (JBoss-user) Oracle Authentication

2001-04-06 Thread Greg Parker

Thank you for your assistance.
I want to make sure I understand the implications of this.
If going I'm to establish my own connection string within the bean, this implies
that I will be writing my own SQL code to go with it. Does this imply I can not
implement CMP, only BMP or Session beans?

Thank you,
Greg Parker


 -Original Message-
From:  <[EMAIL PROTECTED]> at Internet
Sent: Friday, April 06, 2001 5:46 PM
To: [EMAIL PROTECTED] at Internet
Subject: RE: [JBoss-user] Oracle Authentication

 << File: RFC822.TXT >> Guy Rouillier wrote:

> I think J2EE (and JBoss) handle this, though I may have found a bug in

You are quite right that the spec allows this. Apologies for the
misinformation.

The relevent section of the EJB2.0 spec that I have is 19.4.

> JBoss.  In jboss.jcml, when you create your connection pool, provide a URL
> but do not provide a userid or password.  The MBean will start up
> successfully.  In your bean code, use this form of connect statement:
>
>Connection connection = ((DataSource)new
> InitialContext().lookup("java:comp/env/jdbc/OracleDB")).getConnection("myuse
> rid", "mypassword");
>
> Now your connection will use the credentials of the userid provided.  I've
> tried this and it seems to work

Now, JBoss's support of this is obtained from Minerva. Looking at the
code for XAPoolDataSource, we see:

/**
 * Gets a new connection from the pool.  If a new connection must be
 * created, it will use the specified user name and password.  If there is
 * a connection available in the pool, it will be used, regardless of the
 * user name and password use to created it initially.
 */
public Connection getConnection(String user, String password) throws
java.sql.SQLException {
if(!initialized) initialize();
factory.setUser(user);
factory.setPassword(password);
return ((XAConnection)pool.getObject()).getConnection();
}

So, Minerva does not do what you might expect, unless you are never
returning your connections to the pool.

This is superceded by the JCA stuff, which knows how to handle the case
of requesting connections on behalf of different principals.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Shutdown

2001-04-06 Thread danch



"Taylor, Richard" wrote:
> 
> Is there any static method exposed to initiate a shutdown of jboss.  I
> realise that System.exit(0) does this but I cannot use it in this case.
> 
> I have seen the Shutdown class in CVS that uses a URL to shut the server
> down but this is not of use to me either.
> 
> (This is basically trying to get a clean shutdown when run as an NT
> Service).
You should be OK - JBoss installs a shutdown hook and closes itself in
an orderly fashion.
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problems with FreeTDS

2001-04-06 Thread Daren R. Sefcik

You seem to be missing the end Password attribute tag ().

I have just setup that driver with MSQL Server 7 and it appears to work fine,
I don't know if it will work with SQL Server 2000..but I would think so.
I would also just run a test app outside of JBoss to make sure the driver
works with the SQL 2000 server..something simple like:

/*/

import java.sql.*;

public class JDBCTest
{
  public static void main(String args[])
  {
 Connection con = null;
 Statement stmt = null;
 ResultSet rs = null;

 try
 {
 Class.forName("com.internetcds.jdbc.tds.Driver");
 con = DriverManager.getConnection("jdbc:freetds://localhost:1433/NCRMSGB", 
"sa", "");
 stmt = con.createStatement();
 rs = stmt.executeQuery("SELECT SomeColumn FROM SomeTable");
 rs.next();
 do
 {
 System.out.println(rs.getString("SomeColumn").trim());
 } while ( rs.next() );
 }
 catch (ClassNotFoundException e)
 {
 System.err.println("Couldn't load the driver: " + e.getMessage());
 }
 catch (SQLException e)
 {
 System.err.println("SQLExecption caught: " + e.getMessage());
 }
  }
}
/*/

Daren


On Fri, 6 Apr 2001, Antonio Vazquez wrote:

> Hi all,
> I have some problems creating a connection pool using the FreeTDS driver.The
> database server is MS-SQL Server 2000. I've followed the document "HowTo:
> Use MS SQL Server with JBoss".I don´t know which is the problem.
>
> The lines from jboss.jcml are:
>
>   


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Oracle 8i

2001-04-06 Thread Simphoukham, Southin

Hi,

Has anyone run into problems on making an update to an Oracle table?

I have run into such a problem.  I have created a preparedStatement and
called the preparedStatement.excuteUpdate.  The update returns a value of 1
(which is good).  I turn around and check to make sure it works in SQLPlus.
Wrong.  I turn on the loggingenable option in the Mbean in the jcml.
Everything looks good though the logging doesn't tell me if it actually
excuted and committed the changes to Oracle.  I know I can definitely
retrieve using Jboss's connection pool saving ummm.
oh yes I also copy the sql and pasted in SQLPlus and excuted it. That
worked.

Thanks,

Southin Simphoukham



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Can't run the sample 'InterestClient' :-(

2001-04-06 Thread jsoriano

Hi:
JBoss is running!! 
Now...
I've compiled the files InterestHome.java, Interest.java and InterestBean.java
put in the appropiate dir, created the ejb-jar.xml file in 'META-INF' and packed
with 'jar' (then i copy the jar file into 'deploy' dir, etc)
Then i've compiled the client (InterestClient.java) but when i try to execute it
(with 'java -classpath .. ') i get the following:

Exception in thread "main" java.lang.NoClassDefFoundError: InterestClient

anybody has encounttered a similar error?

Thanks!
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__

Re: [JBoss-user] Can't run the sample 'InterestClient' :-(

2001-04-06 Thread jsoriano

Don't worry!! the problem is solved...
i forget a (fucking) dot !!


__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__






[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
06/04/01 18:32
Please respond to jboss-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        [JBoss-user] Can't run the sample 'InterestClient'  :-(



Hi: 
JBoss is running!! 
Now... 
I've compiled the files InterestHome.java, Interest.java and InterestBean.java 
put in the appropiate dir, created the ejb-jar.xml file in 'META-INF' and packed 
with 'jar' (then i copy the jar file into 'deploy' dir, etc) 
Then i've compiled the client (InterestClient.java) but when i try to execute it 
(with 'java -classpath .. ') i get the following: 

Exception in thread "main" java.lang.NoClassDefFoundError: InterestClient 

anybody has encounttered a similar error? 

Thanks! 
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__



Re: [JBoss-user] RE: (JBoss-user) Oracle Authentication

2001-04-06 Thread Guy Rouillier

See the discussion Toby and I are having - probably not feasible for CMP
(though I haven't done enough with CMP to say authoritatively.)

- Original Message -
From: "Greg Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 11:02 AM
Subject: [JBoss-user] RE: (JBoss-user) Oracle Authentication


> Thank you for your assistance.
> I want to make sure I understand the implications of this.
> If going I'm to establish my own connection string within the bean, this
implies
> that I will be writing my own SQL code to go with it. Does this imply I
can not
> implement CMP, only BMP or Session beans?
>
> Thank you,
> Greg Parker
>
>
>  -Original Message-
> From:  <[EMAIL PROTECTED]> at Internet
> Sent: Friday, April 06, 2001 5:46 PM
> To: [EMAIL PROTECTED] at Internet
> Subject: RE: [JBoss-user] Oracle Authentication
>
>  << File: RFC822.TXT >> Guy Rouillier wrote:
>
> > I think J2EE (and JBoss) handle this, though I may have found a bug in
>
> You are quite right that the spec allows this. Apologies for the
> misinformation.
>
> The relevent section of the EJB2.0 spec that I have is 19.4.
>
> > JBoss.  In jboss.jcml, when you create your connection pool, provide a
URL
> > but do not provide a userid or password.  The MBean will start up
> > successfully.  In your bean code, use this form of connect statement:
> >
> >Connection connection = ((DataSource)new
> >
InitialContext().lookup("java:comp/env/jdbc/OracleDB")).getConnection("myuse
> > rid", "mypassword");
> >
> > Now your connection will use the credentials of the userid provided.
I've
> > tried this and it seems to work
>
> Now, JBoss's support of this is obtained from Minerva. Looking at the
> code for XAPoolDataSource, we see:
>
> /**
>  * Gets a new connection from the pool.  If a new connection must be
>  * created, it will use the specified user name and password.  If
there is
>  * a connection available in the pool, it will be used, regardless of
the
>  * user name and password use to created it initially.
>  */
> public Connection getConnection(String user, String password) throws
> java.sql.SQLException {
> if(!initialized) initialize();
> factory.setUser(user);
> factory.setPassword(password);
> return ((XAConnection)pool.getObject()).getConnection();
> }
>
> So, Minerva does not do what you might expect, unless you are never
> returning your connections to the pool.
>
> This is superceded by the JCA stuff, which knows how to handle the case
> of requesting connections on behalf of different principals.
>
> Toby.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle Authentication

2001-04-06 Thread Guy Rouillier

Toby, I haven't taken the time to dig into the minerva code.  Realistically,
how far away are we from JCA?  It shouldn't take long to update minerva so
that it uses the userid to get a connection for that userid (I'm thinking of
a hash) - I could take a crack at that.  But if JCA is right around the
corner, then it may not be worth the effort.  Just curious - I see the
userid and password being passed on to the factory - are you sure the
pool.getObject()).getConnection() doesn't cause the factory to use the
userid and password?

I thought a  little more about my scenario.  Perhaps the reason if fails on
the first attempt is that it is using the connection already in the pool
(although, because I don't have a userid or password in the MBean, that
connection is pretty worthless.)  Then when the first call fails, perhaps
the connection is discarded, so that the second call through causes the
factory to generate a new connection with the userid and password given to
it, and everything works after that.

- Original Message -
From: "Toby Allsopp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 1:46 AM
Subject: Re: [JBoss-user] Oracle Authentication


> Guy Rouillier wrote:
>
> > I think J2EE (and JBoss) handle this, though I may have found a bug in
>
> You are quite right that the spec allows this. Apologies for the
> misinformation.
>
> The relevent section of the EJB2.0 spec that I have is 19.4.
>
> > JBoss.  In jboss.jcml, when you create your connection pool, provide a
URL
> > but do not provide a userid or password.  The MBean will start up
> > successfully.  In your bean code, use this form of connect statement:
> >
> >Connection connection = ((DataSource)new
> >
InitialContext().lookup("java:comp/env/jdbc/OracleDB")).getConnection("myuse
> > rid", "mypassword");
> >
> > Now your connection will use the credentials of the userid provided.
I've
> > tried this and it seems to work
>
> Now, JBoss's support of this is obtained from Minerva. Looking at the
> code for XAPoolDataSource, we see:
>
> /**
>  * Gets a new connection from the pool.  If a new connection must be
>  * created, it will use the specified user name and password.  If
there is
>  * a connection available in the pool, it will be used, regardless of
the
>  * user name and password use to created it initially.
>  */
> public Connection getConnection(String user, String password) throws
java.sql.SQLException {
> if(!initialized) initialize();
> factory.setUser(user);
> factory.setPassword(password);
> return ((XAConnection)pool.getObject()).getConnection();
> }
>
> So, Minerva does not do what you might expect, unless you are never
> returning your connections to the pool.
>
> This is superceded by the JCA stuff, which knows how to handle the case
> of requesting connections on behalf of different principals.
>
> Toby.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Help for a little subproject?

2001-04-06 Thread toby cabot

You'll probably want to look at EJBDoclet:
http://dreambean.com/projects/ejbdoclet/ .  Granted it's not a GUI but I
think that's a feature, and if you use it with ant you can automate the
building of jars (and even copying to the deploy directory).
 
> I'm experimenting with knocking up a GUI editor for EJBs that
> autogenerates the home and proxy (client) interfaces as well as the
> deployment
> descriptors. Imagine a tree at left and an edit pane at right that
> shows either a property sheet for terminal children of the selected
> node or a method body editor. The info that goes in deployment
> descriptors etc is handled as "properties" of the beans.




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: Re: Transaction timeout

2001-04-06 Thread sujith s.pillai.

Thanks Simon, it worked.

My objective is to control the passivation of the
beans by setting the transaction boundaries using the
methods UserTransaction.begin() and
UserTransaction.commit(). The bean should not get
passivated during this transaction period. However, I
find that JBoss passivates my bean, eventhough it is
in the midst of a transaction.
The reason why I do not want the bean to get
passivated:
It is a stateful session bean having a DataSource
connection, which I need to maintain throughout the
lifetime of the application for the user to be able to
move through the record set. Otherwise, since I am
using a database format (DDS in AS/400) which does not
have any unique keys, it is not possible to maintain
the current cursor position.

I thought by demarcating the boundaries of the
transaction, I will be able to avoid the passivation
of the bean. But now, it seems JBOss is passivating
the bean in spite of having a transaction associated
with it.

Is it not possible to control passivation in JBoss by
using bean managed transactions?

Thanks,
Sujith S Pillai.



From: "Bordet, Simone" <[EMAIL PROTECTED]>
To: "JBoss User Mailing List (E-mail)" 
<[EMAIL PROTECTED]>
Date: Wed, 4 Apr 2001 22:39:11 +0100 
Subject: [JBoss-user] RE: [JBoss-dev] Transaction
timeout
Reply-To: [EMAIL PROTECTED]

Hey,

look in jboss.jcml and almost at the top there is the
transaction =
mbean. You
will find there the transaction timeout value, that
overrides the one =
in the
code.

Simon

> -Original Message-
> From: sujith s.pillai. [mailto:[EMAIL PROTECTED]]
> Sent: mercoled=EC 4 aprile 2001 21:48
> To: [EMAIL PROTECTED]
> Subject: [JBoss-dev] Transaction timeout
>=20
>=20
> Hi,
>=20
> I am not sure whether this is the right forum for
> posting this doubt. I have already sent this to
jboss
> users' forum. Sorry for the cross-posting.
>=20
> I am running JBoss 2.1 alongwith Jetty 3.0.2 / JDK
> 1.3.
>=20
> We have a stateful session bean running with bean
> managed transaction. It has got the transaction
> boundaries set as follows:
> getFirstName() is where the transaction is initiated
> by UserTransaction.begin(). In getNextName(), the
> transaction is committed by
UserTransaction.commit().
>=20
> Now, the two methods are invoked by two different
> servlets. When the user calls the first servlet, it
> calls the bean's getFirstName() method, and fetches
> the values for us. When the user clicks on the
"Next"
> button on the form, the second servlet is invoked,
and
> it calls the bean's getNextName() and fetches the
> required values; and commits the transaction.
>=20
> Our problem is, when the user invokes the first
> servlet, and then, chooses to remain idle for more
> than 5 minutes, the transaction gets timed out, and
> then, if we try to invoke the second servlet, it
gives
> a RollbackException in the getNextName().
>=20
> This is because the org.jboss.tm.TxManager class has
> got the timeout value hard-coded in it as :
> START OF JBOSS SOURCE CODE-
>=20
>   /**
> *  Default timeout in milliseconds.
> *  Must be >=3D 1000!
> */
>long timeOut =3D 5*60*1000;=20
>=20
> END OF JBOSS SOURCE CODE---
>=20
> Because of this, we cannot let the user remain idle
> for more than 5 minutes.
>=20
> However, our application, which is a conversion
> project from AS/400, needs to have the timeout set
to
> a higher limit as in the earlier AS/400 version of
the
> application.
>=20
> Can we change this timeout value in the
> org.jboss.tm.TxManager class, without affecting
> anything else?
>=20
>=20
> Thanks,
> Sujith.
>=20
> Additional info:
>=20
> From the org.jboss.tm.TxCapsule class:
>=20
> JBOSS SOURCE CODE---
>/**
> *  Create a new TxCapsule.
> *
> *  @param tm The transaction manager for this
> transaction.
> *  @param timeout The timeout for this
transaction
> in milliseconds
> * (timeouts are not yet
> implemented).
> */
>TxCapsule(TxManager tm, long timeout)
>{
>   this(tm);
>=20
>   status =3D Status.STATUS_ACTIVE;
>=20
>   start =3D System.currentTimeMillis();
>   this.timeout =3D
> TimeoutFactory.createTimeout(start+timeout, this);
>   branchXids =3D new HashMap();
>}
> --END OF JBOSS SOURCE
CODE
>=20
>=20
>=20


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle 8i

2001-04-06 Thread Guy Rouillier

Sounds like your change is being made but not committed.  What type of EJB
is this?  Are you managing your own transaction?  Are you turning autocommit
off?

- Original Message -
From: "Simphoukham, Southin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 12:32 PM
Subject: [JBoss-user] Oracle 8i


> Hi,
>
> Has anyone run into problems on making an update to an Oracle table?
>
> I have run into such a problem.  I have created a preparedStatement and
> called the preparedStatement.excuteUpdate.  The update returns a value of
1
> (which is good).  I turn around and check to make sure it works in
SQLPlus.
> Wrong.  I turn on the loggingenable option in the Mbean in the jcml.
> Everything looks good though the logging doesn't tell me if it actually
> excuted and committed the changes to Oracle.  I know I can definitely
> retrieve using Jboss's connection pool saving ummm.
> oh yes I also copy the sql and pasted in SQLPlus and excuted it. That
> worked.
>
> Thanks,
>
> Southin Simphoukham
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: Re: [JBoss-user] Writing a finder which returns max id used

2001-04-06 Thread tim . haley



How about using some creative SQL like:

pStatement = con.prepareStatement(
 "Insert into Attribute " +
 "(ID, Value, Display_Format, Attribute_Switches, Name,  Type_ID) " +
 "Select max(id)+1, ?, ?, ?, ?, ? from Container ");

pStatement.setString(1, value);
pStatement.setString(1, displayFormat);
pStatement.setLong  (2, attributeSwitches);
pStatement.setString(1, name);
pStatement.setInt   (2, typeID);

if (pStatement.executeUpdate() != 1)
{
 throw new CreateException(...
}

Just fill in the parameters with your values and the SQL statement is executed
all at once.
Wouldn't most, if not all, databases handle concurrancy issues in this case?

Regards,
Tim Haley



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Re: Re: Transaction timeout

2001-04-06 Thread Hansen, Richard

I can see why you do not want the transaction to time out, but why does it
matter whether the bean is passivated? What does this effect, other than
performance? Doesn't the container activate the bean again as needed? I
would have to check the EJB spec, but I think a container is generally
within its rights to passivate whenever it wants. The purpose of passivation
is for scalability, which the container is supposed to manage for.

Rick Hansen

The views, opinions, and judgments expressed in this message are solely
those of the author. The message contents have not been reviewed or
approved by West Group.



> -Original Message-
> From: sujith s.pillai. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re: Re: Transaction timeout
> 
> 
> Thanks Simon, it worked.
> 
> My objective is to control the passivation of the
> beans by setting the transaction boundaries using the
> methods UserTransaction.begin() and
> UserTransaction.commit(). The bean should not get
> passivated during this transaction period. However, I
> find that JBoss passivates my bean, eventhough it is
> in the midst of a transaction.
> The reason why I do not want the bean to get
> passivated:
> It is a stateful session bean having a DataSource
> connection, which I need to maintain throughout the
> lifetime of the application for the user to be able to
> move through the record set. Otherwise, since I am
> using a database format (DDS in AS/400) which does not
> have any unique keys, it is not possible to maintain
> the current cursor position.
> 
> I thought by demarcating the boundaries of the
> transaction, I will be able to avoid the passivation
> of the bean. But now, it seems JBOss is passivating
> the bean in spite of having a transaction associated
> with it.
> 
> Is it not possible to control passivation in JBoss by
> using bean managed transactions?
> 
> Thanks,
> Sujith S Pillai.
> 

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] external ejb ref on different servers

2001-04-06 Thread jeff anderson

Hail all wizened jboss vetererans out there
I am trying to call one EJB deployed to a jboss-2.0 server from another EJB
in a different jboss-2.0 server. I seem to be unable to set up the jindi
name of the ejb-ref section in the jboss.xml file. Can anyone give me an
example of what protocol/url I should be using?

Here is my ejb-jar.xml
...

A DJ
DJBean
com.janderso.ejb.dj.DJHome
com.janderso.ejb.dj.DJ
com.janderso.ejb.dj.DJBean
Stateful
Container

ejb/CDCollection
Session
CDCollectionHome
CDCollection


...



Here is my jboss.xml
...

DJBean
dj/DJ

ejb/CDCollection
t3://24.114.27.108:1099/cd/CDCollection


..


Here is the code I am using within DJBean (client ejb) to instantiate the
CDCollection (server ejb)

CDCollectionHome cdCollectionHome;
CDCollection cdCollection;
try{
InitialContext jndiContext = new InitialContext();
  Object ref =jndiContext.lookup("java:comp/env/ejb/CDCollection");
cdCollectionHome = (CDCollectionHome
PortableRemoteObject.narrow(ref,CDCollectionHome.class);
cdCollection =cdCollectionHome.create();
}
catch (Exception e) {
  System.out.println(e);
  throw new EJBException(e);
}



I have tried several different values for the jindi-name in the 
of the  section and get the following errors for each one

t3://24.114.27.108:1099/cd/CDCollection
javax.naming.NameNotFoundException: t3: not bound

rmi://24.114.27.108:1099/cd/CDCollection
javax.naming.CommunicationException [Root exception is
java.rmi.MarshalException: Transport protocol not supported by server]

Note that if I deploy both beans on the same server and just use
cd/CDCollection as the jindi name then everything works, so How do I get
this to work on an external server?
Any help would be greatly appreciated.
Jeff Anderson























___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Oracle 8i

2001-04-06 Thread Simphoukham, Southin

Guy,

I am not using EJB for now, long story... but I will get this team there.
What I am using JBoss for right now is the connection pooling and in the
next release maybe JMS, JavaMail, and Connectors to SAP.

I have spent the last 3 hours looking at the problem and it is like a ghost.
After turning Jboss off and on for sometime I finally see the changes that
were made to the database via SQLPlus.  What puzzles me is that I can query
the db but not update to it with the updates immediately committed to the
db.  The JBoss console tells me that it has a new connection object,
preparedstatement works get the return code of 1 and JBoss releases the
connection to the pool.  The int return code from the preparedstatement (a
java thing) I trust.  

Does JBoss cache the information in memory?  I remember a thread on that but
a long time ago.

Is it possible that future JBoss releases can incorporate a SQL debugger
that will allow developers to check what the db is doing, like if and when
it commits? For now I am pointing my framework to use Struts dataSource
feature.  

Thanks,

Southin

-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Oracle 8i


Sounds like your change is being made but not committed.  What type of EJB
is this?  Are you managing your own transaction?  Are you turning autocommit
off?

- Original Message -
From: "Simphoukham, Southin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 12:32 PM
Subject: [JBoss-user] Oracle 8i


> Hi,
>
> Has anyone run into problems on making an update to an Oracle table?
>
> I have run into such a problem.  I have created a preparedStatement and
> called the preparedStatement.excuteUpdate.  The update returns a value of
1
> (which is good).  I turn around and check to make sure it works in
SQLPlus.
> Wrong.  I turn on the loggingenable option in the Mbean in the jcml.
> Everything looks good though the logging doesn't tell me if it actually
> excuted and committed the changes to Oracle.  I know I can definitely
> retrieve using Jboss's connection pool saving ummm.
> oh yes I also copy the sql and pasted in SQLPlus and excuted it. That
> worked.
>
> Thanks,
>
> Southin Simphoukham
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle 8i

2001-04-06 Thread tim . haley



I am having the same problem...

A BMP entity bean with CMT.
I turn off autocommit when I connect to the Oracle 8i (8.1.5) database.
The Transaction never seems to complete.
If I turn on autocommit, then the data is updated but cannot be rolled back by
the transaction manager in the case of an error.
In either case, I dont think that the Transaction ever commits.

Tim Haley






"Guy Rouillier" <[EMAIL PROTECTED]> on 04/06/2001 03:23:24 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: [JBoss-user] Oracle 8i



Sounds like your change is being made but not committed.  What type of EJB
is this?  Are you managing your own transaction?  Are you turning autocommit
off?

- Original Message -
From: "Simphoukham, Southin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 12:32 PM
Subject: [JBoss-user] Oracle 8i


> Hi,
>
> Has anyone run into problems on making an update to an Oracle table?
>
> I have run into such a problem.  I have created a preparedStatement and
> called the preparedStatement.excuteUpdate.  The update returns a value of
1
> (which is good).  I turn around and check to make sure it works in
SQLPlus.
> Wrong.  I turn on the loggingenable option in the Mbean in the jcml.
> Everything looks good though the logging doesn't tell me if it actually
> excuted and committed the changes to Oracle.  I know I can definitely
> retrieve using Jboss's connection pool saving ummm.
> oh yes I also copy the sql and pasted in SQLPlus and excuted it. That
> worked.
>
> Thanks,
>
> Southin Simphoukham
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user







___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Writing a finder which returns max id used

2001-04-06 Thread danch



[EMAIL PROTECTED] wrote:
> 
> How about using some creative SQL like:
> 
> pStatement = con.prepareStatement(
>  "Insert into Attribute " +
>  "(ID, Value, Display_Format, Attribute_Switches, Name,  Type_ID) " +
>  "Select max(id)+1, ?, ?, ?, ?, ? from Container ");
> 
> pStatement.setString(1, value);
> pStatement.setString(1, displayFormat);
> pStatement.setLong  (2, attributeSwitches);
> pStatement.setString(1, name);
> pStatement.setInt   (2, typeID);
> 
> if (pStatement.executeUpdate() != 1)
> {
>  throw new CreateException(...
> }

  //now return the primary key...
  return new Integer(???);

> 
> Just fill in the parameters with your values and the SQL statement is executed
> all at once.
> Wouldn't most, if not all, databases handle concurrancy issues in this case?
Yep! by locking every row in the table, either individually or by
escalating to a table lock. This approach is fine if you don't expect
too many creates of that bean, and you can get your primary key value
back so that you don't have to lie to the container (another select max
might work)

-danch
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle 8i

2001-04-06 Thread danch



"Simphoukham, Southin" wrote:
> 
> Guy,
> 
> I am not using EJB for now, long story... but I will get this team there.
> What I am using JBoss for right now is the connection pooling and in the
> next release maybe JMS, JavaMail, and Connectors to SAP.
> 
> I have spent the last 3 hours looking at the problem and it is like a ghost.
> After turning Jboss off and on for sometime I finally see the changes that
> were made to the database via SQLPlus.  What puzzles me is that I can query
> the db but not update to it with the updates immediately committed to the
> db.  The JBoss console tells me that it has a new connection object,
> preparedstatement works get the return code of 1 and JBoss releases the
> connection to the pool.  The int return code from the preparedstatement (a
> java thing) I trust.
You're pulling the DataSource out of JNDI from a servlet/JSP? Are you
doing anything with UserTransaction? The minerva pools really expect to
be used from within a transaction, as far as I know.

> 
> Does JBoss cache the information in memory?  I remember a thread on that but
> a long time ago.
For entity beans, it defaults to commit option A (reference the EJB
spec: the container is the only writer to the database and can therefore
skip ejbLoad at the beginning of transactions). This wouldn't apply here
for two reasons: you're not using entity beans, and it causes problems
in the reverse direction (legacy apps/SQLPlus update data but JBoss
won't pick up the updates)
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle 8i

2001-04-06 Thread danch



[EMAIL PROTECTED] wrote:
> 
> I am having the same problem...
> 
> A BMP entity bean with CMT.
> I turn off autocommit when I connect to the Oracle 8i (8.1.5) database.
> The Transaction never seems to complete.
> If I turn on autocommit, then the data is updated but cannot be rolled back by
> the transaction manager in the case of an error.
> In either case, I dont think that the Transaction ever commits.

It's a Bad Thing to turn on autocommit in an EJB. It probably shouldn't
be allowed. Are you using the Oracle XA stuff, or the minerva wrapper?
What version of JBoss?

-danch
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Oracle 8i

2001-04-06 Thread Simphoukham, Southin

Danch,

I am using the minerva wrapper.  Just for kicks I am writing the
JDBCSourceBean as an EJB CMT.  Have you tried the Oracle XA?
I am running JBoss 2.1

Southin

-Original Message-
From: danch [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 4:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Oracle 8i




[EMAIL PROTECTED] wrote:
> 
> I am having the same problem...
> 
> A BMP entity bean with CMT.
> I turn off autocommit when I connect to the Oracle 8i (8.1.5) database.
> The Transaction never seems to complete.
> If I turn on autocommit, then the data is updated but cannot be rolled
back by
> the transaction manager in the case of an error.
> In either case, I dont think that the Transaction ever commits.

It's a Bad Thing to turn on autocommit in an EJB. It probably shouldn't
be allowed. Are you using the Oracle XA stuff, or the minerva wrapper?
What version of JBoss?

-danch
Confidential e-mail for addressee only.  Access to this e-mail by anyone
else is unauthorized.
If you have received this message in error, please notify the sender
immediately by reply e-mail 
and destroy the original communication.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Lazy loading media in EJB

2001-04-06 Thread James Cook
Title: Lazy loading media in EJB



I wouldn't even try to model this part 
of your application using EJB as it is not a fit. I would put the caching into 
the image server that you have written. I would make the image server 
responsible for detecting when the image has been changed in the image 
repository.
 
If you really want to use EJB, then at 
least one pattern comes to mind.
 
1. If you use Entity Beans your images 
will have to have some sort of PK to be somewhat functional.  
2. In your ejbLoad() you would check to 
see if the image was in your local cache. 
3. If it is, then you pass some checksum 
to the image server and it determines whether you need to refresh your local 
cache. 
4. If you do, or if you don't have the 
image yet, you would get the image from the server. 
5. Store the image in your local cache 
and calculate the new checksum.
 
Please note, that this local cache would 
end up storing images for each PK it was tasked with looking up. The first time 
it is used, it holds no images, but may hold image 1382 after the call. The next 
time this bean instance is used, the server may want to get image 1451. The 
cache would have to then store that image as well.
 
I would venture a guess to say that the 
same pattern can be applied to Stateless Session Beans and it would perform even 
better. (Less cache misses).
 
When it comes time for the container to 
passivate the bean, I wouldn't bother. I would simply clear the cache. The cost 
of passivating that cache of image data hardly seems worth it. Your mileage may 
vary.
 
As you can see, EJB isn't bringing 
anything to the table here except another layer and more 
serialization.
 
 
jim

  - Original Message - 
  From: 
  Bolt, Dave 
  
  To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] 
  
  Sent: Friday, April 06, 2001 4:29 
PM
  Subject: [JBoss-user] Lazy loading media 
  in EJB
  
  I have an bean-managed entity bean which reads an image from a 
  custom multimedia repository. The image is stored inside my bean as a byte 
  array and can be served to a web client via a servlet. The bean is read-only 
  in regards to the repository, it is not used as the mechanism for updating the 
  binary data.
  I'd like to lazy load my bean, by only talking to the media 
  repository (via sockets) when absolutely needed. This will keep the load on 
  the server down. The only reliable scheme I have found is to code the read 
  into my ejbLoad() callback so that it happens every time.
  Here is what I'd like. 
  1) Load the media only when the media is requested, once it is 
  requested, it can stay in memory until passivated. 2) 
  If the media has been loaded, I need the bean to dump it and reload it when my 
  bean instance is swapped out. 
  Thus loading the media is defered, until absolutely necessary, 
  but once loaded it is maintained in memory until the bean is swapped 
  out.
  What scheme can I use that combines ejbActivate(), 
  ejbPassivate(), and ejbLoad() to get this behavior. 
  Dave Bolt There is always plenty of 
  bandwidth, just none for you. 


Re: [JBoss-user] jboss 2.0 connection pool AutoCommit default?

2001-04-06 Thread Toby Allsopp

Hi, Toby.

toby cabot wrote:

> More data: AccountEJB.java from the Sun j2ee tutorial grabs a Connection
> in setEntityContext(), holds onto it until unsetEntityContext(), and
> uses it for all database work in the mean time.  This doesn't seem to
> agree with the 1.1 spec (page 168) which shows example code grabbing and
> releasing the Connection in the same method.
> 
> If I hack the code to grab and release in each method then it seems to
> work as expected.  Guess I'll point this out to Sun.
> 
> Am I right in thinking that holding on to the Connection is a bad idea
> and interferes with the container's container-managed demarcation?

According to the spec, no, that should work fine. This currently doesn't
work in JBoss however.

It is on my list of things to do when I get around to it if no one else
has done it already.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle 8i

2001-04-06 Thread Guy Rouillier

I'm a long time database user/programmer/manager (mainframe DB2 DBA for
several years) but fairly new to EJB and JBoss.  It seems to me that if you
are using container managed transactions, you shouldn't be fooling with
autocommit (or transactions) at all.  If you are using CMT, then by
definition you want the container to handle everything.

Regarding your immediate issue, if you turn autocommit off, you won't see
any updates until you issue an explicit commit.  Regarding the rollback, if
you manually turn autocommit on, then every statement you execute against
the database is automatically committed  * by the database*.  As I admitted,
I'm fairly new to EJB and JBoss, but I think by doing this you are bypassing
the container's (JBoss's) ability to manage things.  That would explain why
JBoss is unable to rollback - the database has already done its own commit
without the container knowing about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 4:35 PM
Subject: Re: [JBoss-user] Oracle 8i


>
>
> I am having the same problem...
>
> A BMP entity bean with CMT.
> I turn off autocommit when I connect to the Oracle 8i (8.1.5) database.
> The Transaction never seems to complete.
> If I turn on autocommit, then the data is updated but cannot be rolled
back by
> the transaction manager in the case of an error.
> In either case, I dont think that the Transaction ever commits.
>
> Tim Haley
>
>
>
>
>
>
> "Guy Rouillier" <[EMAIL PROTECTED]> on 04/06/2001 03:23:24 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:
>
> Subject:  Re: [JBoss-user] Oracle 8i
>
>
>
> Sounds like your change is being made but not committed.  What type of EJB
> is this?  Are you managing your own transaction?  Are you turning
autocommit
> off?
>
> - Original Message -
> From: "Simphoukham, Southin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 06, 2001 12:32 PM
> Subject: [JBoss-user] Oracle 8i
>
>
> > Hi,
> >
> > Has anyone run into problems on making an update to an Oracle table?
> >
> > I have run into such a problem.  I have created a preparedStatement and
> > called the preparedStatement.excuteUpdate.  The update returns a value
of
> 1
> > (which is good).  I turn around and check to make sure it works in
> SQLPlus.
> > Wrong.  I turn on the loggingenable option in the Mbean in the jcml.
> > Everything looks good though the logging doesn't tell me if it actually
> > excuted and committed the changes to Oracle.  I know I can definitely
> > retrieve using Jboss's connection pool saving ummm.
> > oh yes I also copy the sql and pasted in SQLPlus and excuted it. That
> > worked.
> >
> > Thanks,
> >
> > Southin Simphoukham
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle Authentication

2001-04-06 Thread Toby Allsopp

Guy Rouillier wrote:

> Toby, I haven't taken the time to dig into the minerva code.  Realistically,
> how far away are we from JCA?  It shouldn't take long to update minerva so
> that it uses the userid to get a connection for that userid (I'm thinking of
> a hash) - I could take a crack at that.  But if JCA is right around the
> corner, then it may not be worth the effort.  Just curious - I see the
> userid and password being passed on to the factory - are you sure the
> pool.getObject()).getConnection() doesn't cause the factory to use the
> userid and password?

Replacing XAPoolDataSource with the JCA stuff is definitely 2.3
material. All it really needs is deployer integration (resource adapters
have to be deployed manually via JMX at present) and I want to wait
until the new deployment stuff is sorted out so that I don't waste time
integrating with the existing mess.

As to when, I don't really know. The new deployment stuff is taking a
long time to come together because nobody working on it seems to have
much time to spare for it.

I have looked into Minerva a little more, and the support for what you
want is present in the pool code, it's just not used by the JDBC pools.
It should be trivial to change XAConnectionFactory to implement
checkValidObject such that a connection will only be returned if it was
created with the same username/password. This would be a change that
could be put into 2.2 as well, I think.

You should get in touch with Aaron if you want to do this.

Toby.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Lazy loading media in EJB

2001-04-06 Thread Bolt, Dave
Title: Lazy loading media in EJB





I have an bean-managed entity bean which reads an image from a custom multimedia repository. The image is stored inside my bean as a byte array and can be served to a web client via a servlet. The bean is read-only in regards to the repository, it is not used as the mechanism for updating the binary data.

I'd like to lazy load my bean, by only talking to the media repository (via sockets) when absolutely needed. This will keep the load on the server down. The only reliable scheme I have found is to code the read into my ejbLoad() callback so that it happens every time.

Here is what I'd like.


1) Load the media only when the media is requested, once it is requested, it can stay in memory until passivated.
2) If the media has been loaded, I need the bean to dump it and reload it when my bean instance is swapped out.


Thus loading the media is defered, until absolutely necessary, but once loaded it is maintained in memory until the bean is swapped out.

What scheme can I use that combines ejbActivate(), ejbPassivate(), and ejbLoad() to get this behavior.


Dave Bolt
There is always plenty of bandwidth, just none for you.





Re: [JBoss-user] Need Help Connection Pools (can't see zip files)

2001-04-06 Thread Toby Allsopp

Chidambara, Vinoth (CTS) wrote:

>   DataSource ds = (DataSource)ctx.lookup("java:/TryDB");

You should be using the "java:comp/env/" namespace. See section 19.4.1.1
of the spec.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: Is there a way to configure Minerva Object Pool through XML

2001-04-06 Thread Toby Allsopp

[EMAIL PROTECTED] wrote:

> Hi All,
> 
>Can some one help me out to know whether it is possible to do the object pool 
>configuration using xml.

You're going to have to explain what you mean. The configuration in
jboss.jcml is already in XML format.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] RE: (JBoss-user) Oracle Authentication

2001-04-06 Thread Toby Allsopp

Greg Parker wrote:

> Thank you for your assistance.
> I want to make sure I understand the implications of this.
> If going I'm to establish my own connection string within the bean, this implies
> that I will be writing my own SQL code to go with it. Does this imply I can not
> implement CMP, only BMP or Session beans?

Well, yes... Writing your own SQL code means that, by defintion, you are
not using CMP.

If you want to have per-user connections with CMP then you will need to
implement a principal mapping for JBossCX as I mentioned before.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] external ejb ref on different servers

2001-04-06 Thread jeff anderson

Ok I looked over the mail archive and the protocol for jboss is jnp:
that seems to work, However everytime I make a remote call from one server
to the next i get the following error

Cannot import transaction: TransactionImpl:XidImpl:[B@7eb11d
Should I be worried?
Everything seems to be working correctly otherwise
Jeff

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of jeff
anderson
Sent: Friday, April 06, 2001 3:55 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] external ejb ref on different servers


Hail all wizened jboss vetererans out there
I am trying to call one EJB deployed to a jboss-2.0 server from another EJB
in a different jboss-2.0 server. I seem to be unable to set up the jindi
name of the ejb-ref section in the jboss.xml file. Can anyone give me an
example of what protocol/url I should be using?

Here is my ejb-jar.xml
...

A DJ
DJBean
com.janderso.ejb.dj.DJHome
com.janderso.ejb.dj.DJ
com.janderso.ejb.dj.DJBean
Stateful
Container

ejb/CDCollection
Session
CDCollectionHome
CDCollection


...



Here is my jboss.xml
...

DJBean
dj/DJ

ejb/CDCollection
t3://24.114.27.108:1099/cd/CDCollection


..


Here is the code I am using within DJBean (client ejb) to instantiate the
CDCollection (server ejb)

CDCollectionHome cdCollectionHome;
CDCollection cdCollection;
try{
InitialContext jndiContext = new InitialContext();
  Object ref =jndiContext.lookup("java:comp/env/ejb/CDCollection");
cdCollectionHome = (CDCollectionHome
PortableRemoteObject.narrow(ref,CDCollectionHome.class);
cdCollection =cdCollectionHome.create();
}
catch (Exception e) {
  System.out.println(e);
  throw new EJBException(e);
}



I have tried several different values for the jindi-name in the 
of the  section and get the following errors for each one

t3://24.114.27.108:1099/cd/CDCollection
javax.naming.NameNotFoundException: t3: not bound

rmi://24.114.27.108:1099/cd/CDCollection
javax.naming.CommunicationException [Root exception is
java.rmi.MarshalException: Transport protocol not supported by server]

Note that if I deploy both beans on the same server and just use
cd/CDCollection as the jindi name then everything works, so How do I get
this to work on an external server?
Any help would be greatly appreciated.
Jeff Anderson























___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Need Help Connection Pools (can't see zip files)

2001-04-06 Thread Daren R. Sefcik

I just got done battling that whole thing.
I am using Jetty/JBoss and even though I can see thru
the Admin/JNDIView page the java:comp env sees my env/MYDB entry
it still will not work in my apps..I have to use the java:/MYDB
namespace.
Prerhaps I still don't have something configured properly,
but I figured  that if thru the JNDIView page I get:

java:comp namespace of the LoginServletBean bean:

  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- jdbc (class: org.jnp.interfaces.NamingContext)
  |   |   +- JBossDB (class: javax.naming.LinkRef)


it should work when referenced like "java:comp/env/jdbc/JBossDB" but it doesn't.

Daren


On Sat, 7 Apr 2001, Toby Allsopp wrote:

> Chidambara, Vinoth (CTS) wrote:
>
> > DataSource ds = (DataSource)ctx.lookup("java:/TryDB");
>
> You should be using the "java:comp/env/" namespace. See section 19.4.1.1
> of the spec.
>
> Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Need Help Connection Pools (can't see zip files)

2001-04-06 Thread Toby Allsopp

Daren R. Sefcik wrote:

> I just got done battling that whole thing.
> I am using Jetty/JBoss and even though I can see thru
> the Admin/JNDIView page the java:comp env sees my env/MYDB entry
> it still will not work in my apps..I have to use the java:/MYDB
> namespace.
> Prerhaps I still don't have something configured properly,
> but I figured  that if thru the JNDIView page I get:
> 
> java:comp namespace of the LoginServletBean bean:
> 
>   +- env (class: org.jnp.interfaces.NamingContext)
>   |   +- jdbc (class: org.jnp.interfaces.NamingContext)
>   |   |   +- JBossDB (class: javax.naming.LinkRef)
> 
> 
> it should work when referenced like "java:comp/env/jdbc/JBossDB" but it doesn't.

I suspect that this means that you have the configuration half right.
You need to set up the mapping from jdbc/JBossDB to java:/MYDB in jboss.xml.

Toby.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Shutdown

2001-04-06 Thread Dewayne McNair

There's a new Shutdown class that I added just for this purpose.  It's
org.jobs.Shutdown and is in run.jar.   See
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/jboss/src/main/org/jboss/Shutd
own.java?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=jboss   for more
information...

-- Dewayne

- Original Message -
From: "Taylor, Richard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 9:03 AM
Subject: [JBoss-user] Shutdown


> Is there any static method exposed to initiate a shutdown of jboss.  I
> realise that System.exit(0) does this but I cannot use it in this case.
>
> I have seen the Shutdown class in CVS that uses a URL to shut the server
> down but this is not of use to me either.
>
> (This is basically trying to get a clean shutdown when run as an NT
> Service).
>
> Thanks,
>
> Richard.
>
>
> **
> Information in this email is confidential and may be privileged.
> It is intended for the addressee only. If you have received it in error,
> please notify the sender immediately and delete it from your system.
> You should not otherwise copy it, retransmit it or use or disclose its
> contents to anyone.
> Thank you for your co-operation.
> **
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Where can I find Hypersonic Database viewer?

2001-04-06 Thread Jonathan Carlson

Check out dbVisualizer.  It's not open-source, but it's free and you can use
it on any database that has a JDBC driver.

http://www.ideit.com/innovations/dbvis/


-Original Message-
From: Pifen Ellwood [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:13 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Where can I find Hypersonic Database viewer?


Hi,
I search the Hypersonic web site for the viewer program but can't find it.
Can anyone tell me if there is any Hypersonic DB viewer exists? Where can I
find it?
Thanks

Pifen Ellwood


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Where can I find Hypersonic Database viewer?

2001-04-06 Thread Jim Archer

Go to the lib/ext directory where you have jBoss installed and you should 
see the hsql.jar file. To run the database manager, do this:

java -cp hsql.jar org.hsql.util.DatabaseManager

And it will launch.

Jim


--On Friday, April 06, 2001 10:13 PM -0400 Pifen Ellwood 
<[EMAIL PROTECTED]> wrote:

> Hi,
> I search the Hypersonic web site for the viewer program but can't find it.
> Can anyone tell me if there is any Hypersonic DB viewer exists? Where can
> I find it?
> Thanks
>
> Pifen Ellwood
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user