Re: [JBoss-user] MBean destination-jndi-name

2002-09-05 Thread Dmitri Colebatch

thats really an XDoclet question... but I'll answer it anyway...

try

 * @jboss:destination-jndi-name name="${my.queue.name}"

where my.queue.name is an ant property.  You can then use load your ant
properties from a file if you wish

cheers
dim

- Original Message -
From: "Dushyant Shrivastava" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 2:48 PM
Subject: [JBoss-user] MBean destination-jndi-name


Hi again,
I have a message driven bean with the following configuration
/**
 * Message Driven Bean Template
 *
 * @ejb:bean name  =
"com/yambay/nps/messagehandler/message/MessageConsumer"
 *  display-name   = "Message Driven Bean"
 *  transaction-type   = "Container"
 *  acknowledge-mode   = "Auto-acknowledge"
 *  destination-type   = "javax.jms.Queue"
 *  subscription-durability="NonDurable"
 *
 * @jboss:destination-jndi-name name="queue/ClientWriteQ"
 **/

I was just wondering, if there is any way to actually load the
destination-jndi-name or even just the queue name from a file rather than
actually hard wiring the "queue/ClientWriteQ" like this??

TIA
Dushy


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=urceforge1&refcode1=3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re : Unable to deregister -- David

2002-09-05 Thread David Jencks

I've tried to indicate this in most of my previous messages on this
subject.

Castor needs to close the connection handle in order for jboss to put the
connection back in the pool.  Please look at the Castor code and find out
if this is taking place.  I suggest you find every place connection.close()
is called and put noisy log statements before and after them.  Then run
your app and see whether any of them are getting called. 

 I did not write either the Castor code nor the Castor plugin code and
don't know how it works.

david jencks

On 2002.09.06 00:38:07 -0400 Arijit Ghosh wrote:
> Hi,
> 
> I am doing something similar to the code that you have mentioned. I am
> using Jboss 3.0 along with Castor. I have a simple stateless sesison
> bean.
> 
> I am binding a dataobject using jdo-service.xml.
> 
> In my code, I am doing a lookup for the dataobject, dobj.
> 
> Then I am getting the database using
> db = dobj.getDatabase();
> 
> I assume that if it is Container Managed then I do NOT need to perform
> db.begin() Neither do I have to perforn ut.begin() as the transaction is
> being handled by Jboss.
> 
> After updating and retrieving data from the database, I perform
> db.close() within the FINALLY block. I am sure that db.close() is always
> called at the end of the method.
> 
> But the connections never go back to the connection pool managed by
> JBOSS. As a result, Jboss is hitting the MAX connection limit and is
> throwing "No Managed Connection" problem.
> 
> What am I doing wrong ?
> 
> Castor internally performs, db.commit() and transfers all data to the
> database. I find that the database actually gets updated.
> 
> According to my understanding, database is supposed to get updated after
> the transaction (within which multiple database connections can be
> opened and closed) gets over. Since the database gets updated, so the
> transaction is supposed to be over.
> 
> However, when I check the database connections, I find all the
> connections existing in an INACTIVE status and are NOT sent back to the
> connection pool for reuse.
> 
> How do I tell Jboss to reuse the connection pools ??
> 
> Please help ?
> 
> 
> Regards,
>   Arijit
> 
> 
> 
> -
> You are using the connection outside an explicit jta transaction.  if
> you
> know this, you can ignore the message.  Perhaps I should remove it.
> It's
> designed to help people not do this:
> 
> Connection c = ds.getConnection();
> UserTransaction ut = (look up ut)
> ut.begin();//MUST BE DONE BEFORE CONNECTION IS OBTAINED TO ENROLL CX IN
> TX
> c.do something();
> ut.commit();connection is not enrolled, so has no effect
> c.close();//you get warning
> 
> This statement order is ok in 3.x but not 2.x
> 
> david jencks
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] MBean destination-jndi-name

2002-09-05 Thread Dushyant Shrivastava

Hi again,
I have a message driven bean with the following configuration
/**
 * Message Driven Bean Template
 *
 * @ejb:bean name  = 
"com/yambay/nps/messagehandler/message/MessageConsumer"
 *  display-name   = "Message Driven Bean"
 *  transaction-type   = "Container"
 *  acknowledge-mode   = "Auto-acknowledge"
 *  destination-type   = "javax.jms.Queue"
 *  subscription-durability="NonDurable"
 *
 * @jboss:destination-jndi-name name="queue/ClientWriteQ"
 **/

I was just wondering, if there is any way to actually load the destination-jndi-name 
or even just the queue name from a file rather than actually hard wiring the 
"queue/ClientWriteQ" like this??

TIA
Dushy


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re : Unable to deregister -- David

2002-09-05 Thread Arijit Ghosh

Hi,

I am doing something similar to the code that you have mentioned. I am
using Jboss 3.0 along with Castor. I have a simple stateless sesison
bean.

I am binding a dataobject using jdo-service.xml.

In my code, I am doing a lookup for the dataobject, dobj.

Then I am getting the database using
db = dobj.getDatabase();

I assume that if it is Container Managed then I do NOT need to perform
db.begin() Neither do I have to perforn ut.begin() as the transaction is
being handled by Jboss.

After updating and retrieving data from the database, I perform
db.close() within the FINALLY block. I am sure that db.close() is always
called at the end of the method.

But the connections never go back to the connection pool managed by
JBOSS. As a result, Jboss is hitting the MAX connection limit and is
throwing "No Managed Connection" problem.

What am I doing wrong ?

Castor internally performs, db.commit() and transfers all data to the
database. I find that the database actually gets updated.

According to my understanding, database is supposed to get updated after
the transaction (within which multiple database connections can be
opened and closed) gets over. Since the database gets updated, so the
transaction is supposed to be over.

However, when I check the database connections, I find all the
connections existing in an INACTIVE status and are NOT sent back to the
connection pool for reuse.

How do I tell Jboss to reuse the connection pools ??

Please help ?


Regards,
  Arijit



-
You are using the connection outside an explicit jta transaction.  if
you
know this, you can ignore the message.  Perhaps I should remove it.
It's
designed to help people not do this:

Connection c = ds.getConnection();
UserTransaction ut = (look up ut)
ut.begin();//MUST BE DONE BEFORE CONNECTION IS OBTAINED TO ENROLL CX IN
TX
c.do something();
ut.commit();connection is not enrolled, so has no effect
c.close();//you get warning

This statement order is ok in 3.x but not 2.x

david jencks



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] (Retry) Problem with findByPrimaryKey

2002-09-05 Thread Gavin Hughes
Title: (Retry) Problem with findByPrimaryKey






Hi,

I’m getting the following error when calling the default finder “findByPrimaryKey” for a CMP entity bean.

javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00936: missing expression

Can anyone explain what this means and how I can fix it ?

I’m using JBoss3.0.0, XDoclet 1.1.2 and Oracle 9i on Windows XP.

I haven’t done any explicit definition of this finder or any other finder in my Bean class – other than

XDoclet generating a findByPrimaryKey method in the Home interface.

Thanks,

Gavin.








[JBoss-user] Test

2002-09-05 Thread Gavin Hughes
Title: Test










[JBoss-user] Problem with findByPrimaryKey

2002-09-05 Thread Gavin Hughes
Title: Problem with findByPrimaryKey






Hi,

I’m getting the following error when calling the default finder “findByPrimaryKey” for a CMP entity bean.

javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00936: missing expression

Can anyone explain what this means and how I can fix it ?

I’m using JBoss3.0.0, XDoclet 1.1.2 and Oracle 9i on Windows XP.

I haven’t done any explicit definition of this finder or any other finder in my Bean class – other than

XDoclet generating a findByPrimaryKey method in the Home interface.

Thanks,

Gavin.








Re: [JBoss-user] Apache 1.3 and JBOSS 3.0.2 (w/tomcat or w/jetty)

2002-09-05 Thread Thomas T. Veldhouse

This link points to an area that really applies to Apache2 and mod_jk2 (or
proxy which has disadvantages).  I was under the impression it (Jetty) would
work with mod_jk and Apache 1.3.

Tom Veldhouse

- Original Message -
From: "Jules Gosnell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 6:24 PM
Subject: Re: [JBoss-user] Apache 1.3 and JBOSS 3.0.2 (w/tomcat or w/jetty)


> http://jetty.mortbay.org/jetty/doc/JettyWithApache.html
>
> I believe there is a fix for the AJP13Listener that has just gone into
> Jetty CVS. If you have any problems, let me know and I will mail you a
> build of this.
>
>
> Jules
>
>
> Thomas T. Veldhouse wrote:
> > I have a few things running on Apache already, so I need to host my J2EE
> > sites through apache.  I am looking to find how to configure JBoss 3.0.2
and
> > either Tomcat or Jetty to run with Apache (1.3, not 2.0 -- I have built
> > mod_jk.so for Apache 1.3).  I am quite familiar with Tomcat, but I am
new to
> > JBoss and Jetty.
> >
> > Thanks in advance for any help you can give.
> >
> > Tom Veldhouse
> >
> >
> >
> > ---
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] 3.0.0->3.0.2 exceptions

2002-09-05 Thread Frank Morton

I'm moving from 3.0.0 to 3.0.2 on the MacOS X 10.2,
java 1.3.1_01. I had the exceptions below from a fresh,
unmodified download. I decided to ignore the exceptions
and see if my stuff worked anyway, and it did. But, I
still have these nagging exceptions in the starutp log
I'd like to get rid of:

They just look like good old fashion classpath problems,
but I get these with the clean distribution using the
standard run.sh startup, which I would expect to not
be able to mess up.

There are two sets of messages. Late in the jboss startup,
I get this (I put it first because it is shorter):


22:01:40,829 INFO  [jbossweb] Registered
jboss.web:Jetty=0,JBossWebApplicationContext=3,context=/jmx-console
22:01:42,458 INFO  [jbossweb] Started
WebApplicationContext[/jmx-console,file:/usr/local/jboss-3.0.2/server/defaul
t/deploy/jmx-console.war/]
22:01:42,517 ERROR [URLDeploymentScanner] Failed to deploy:
org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@9d7e79f9{
url=file:/usr/local/jboss-3.0.2/server/default/deploy/jmx-console.war/,
deployedLastModified=0 }
org.jboss.deployment.DeploymentException:
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet; - nested throwable:
(java.lang.ClassNotFoundException:
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet)
at org.jboss.jetty.Jetty.deploy(Jetty.java:427)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:427)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymen
tScanner.java:648)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:499)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abstract
DeploymentScanner.java:261)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:967)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:396)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:491)
 + nested throwable:
java.lang.ClassNotFoundException:
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:227)
at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:200)
at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1192)
at org.mortbay.jetty.servlet.Holder.start(Holder.java:152)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:187)
at
org.mortbay.jetty.servlet.ServletH

Re: [JBoss-user] Deploying Sars and jars

2002-09-05 Thread David Jencks

You can add anonymous depends elements in your jboss.xml ejb configuration
from the ejb to the mbean that represents the queue.  This will make the
ejb wait for the queue to get deployed.

an easier solution is to put all the classes in the .sar file, and the ejb
jar file just contain the ejb-jar.xml, jboss.xml, and jbosscmp-jdbc.xml (or
jaws.xml).  If the .sar doesn't seem to want to deploy first you may need
to name the files like 1xxx.sar, 2xxx.jar etc and you may have to swap
deployment sorters, I don;t remember which does what but there have been
some recent messages about it.

david jencks

On 2002.09.05 21:59:47 -0400 Dushyant Shrivastava wrote:
> Hi guys,
> I am trying to deploy a sar, which relies on some class files deployed by
> the jar. Invertly, an ejb deployed inside my jar, relies on the Queues
> being created first by the mBean deployed in the sar file.
> So jar > sar ---> some class
> files deployed by jar.
> This is like a circular dependency.  Has anyone got any ideas to resolve
> this!! I tried deploying my sar inside the jar file, but then ejbs in the
> jar file get deployed first.As a result the ejb cannot find the queue
> destination and ends up binding to a default topic instead. Is there any
> way to make sure that my class files will be depolyed first, followed by
> the sar and finally the jar. I know i could do this manually, but i wish
> to do this through one build file!
> 
> Any help is much appreciated
> Thanks
> Dushy
> 
> 
> __
> DUSHYANT SHRIVASTAVA
> Software Engineer
> 
> YAMBAY
> 
> tel  +61 (0) 8 9323 6999
> mob  +61 (0) 402 902 652
> fax +61 (0) 8 9325 2688
> web   www.yambay.com
> 
> Yambay Technologies Pty Ltd
> 7th Floor, The Victoria, 14-16 Victoria Ave, Perth. WA, 6000, Australia
> 
>_
> 
> This message and any files transmitted with it are confidential and are
> intended solely for the use of those persons to
> whom the message is addressed. If you have received this message in
> error, please destroy and delete this
> message from your computer. Any unauthorised form of reproduction of this
> message or any files transmitted with
> it is strictly prohibited. yambay does not make any warranty concerning
> the security of any information electronically
> transmitted and disclaims all liability for the proper and complete
> transmission of any information contained or purportedly
> contained in this message, nor for any delay in its receipt. If you
> receive this message in error please notify the sender.
> 
>_
> 
> 
> 
> 
> 
> 
> 
> 
> Deploying Sars and jars
> 
> 
> 
> 
> Hi guys,
> 
> I am trying to deploy a sar, which relies
> on some class files deployed by the jar. Invertly, an ejb deployed inside
> my jar, relies on the Queues being created first by the mBean deployed in
> the sar file.
> 
> So jar > sar
> ---> some class files deployed by jar.
> 
> This is like a circular dependency. 
> Has anyone got any ideas to resolve this!! I tried deploying my sar
> inside the jar file, but then ejbs in the jar file get deployed first.As
> a result the ejb cannot find the queue destination and ends up binding to
> a default topic instead. Is there any way to make sure that my class
> files will be depolyed first, followed by the sar and finally the jar. I
> know i could do this manually, but i wish to do this through one build
> file!
> 
> Any help is much appreciated
> 
> Thanks
> 
> Dushy
> 
> 
> 
> __
> DUSHYANT SHRIVASTAVA
> Software Engineer
> 
> YAMBAY
> 
> tel  +61 (0) 8 9323 6999
> mob  +61 (0) 402 902 652
> fax +61 (0) 8 9325 2688
> web   www.yambay.com
> 
> 
> Yambay Technologies Pty
> Ltd
> 7th Floor, The Victoria, 14-16 Victoria Ave, Perth. WA, 6000,
> Australia
> 
>_
> 
> This message and any files transmitted with it are confidential and are
> intended solely for the use of those persons to
> whom the message is addressed. If you have received this message in
> error, please destroy and delete this
> message from your computer. Any unauthorised form of reproduction of this
> message or any files transmitted with
> it is strictly prohibited. yambay does not make any warranty concerning
> the security of any information electronically
> transmitted and disclaims all liability for the proper and complete
> transmission of any information contained or purportedly
> contained in this message, nor for any delay in its receipt. If you
> receive this message in error please notify the sender.
> 
>_
> 
> 
> 
> 
> 
> 



[JBoss-user] Deploying Sars and jars

2002-09-05 Thread Dushyant Shrivastava
Title: Deploying Sars and jars






Hi guys,

I am trying to deploy a sar, which relies on some class files deployed by the jar. Invertly, an ejb deployed inside my jar, relies on the Queues being created first by the mBean deployed in the sar file.

So jar > sar ---> some class files deployed by jar.

This is like a circular dependency.  Has anyone got any ideas to resolve this!! I tried deploying my sar inside the jar file, but then ejbs in the jar file get deployed first.As a result the ejb cannot find the queue destination and ends up binding to a default topic instead. Is there any way to make sure that my class files will be depolyed first, followed by the sar and finally the jar. I know i could do this manually, but i wish to do this through one build file!

Any help is much appreciated

Thanks

Dushy



__
DUSHYANT SHRIVASTAVA
Software Engineer

YAMBAY

tel  +61 (0) 8 9323 6999
mob  +61 (0) 402 902 652
fax +61 (0) 8 9325 2688
web   www.yambay.com


Yambay Technologies Pty Ltd
7th Floor, The Victoria, 14-16 Victoria Ave, Perth. WA, 6000, Australia
_

This message and any files transmitted with it are confidential and are intended solely for the use of those persons to
whom the message is addressed. If you have received this message in error, please destroy and delete this
message from your computer. Any unauthorised form of reproduction of this message or any files transmitted with
it is strictly prohibited. yambay does not make any warranty concerning the security of any information electronically
transmitted and disclaims all liability for the proper and complete transmission of any information contained or purportedly
contained in this message, nor for any delay in its receipt. If you receive this message in error please notify the sender.
_






Re: AW: [JBoss-user] JBoss-3.0.2 released

2002-09-05 Thread Brian Towles

Howdy

What i mostly did was implement the work that Robert Dingwell did on the
and posted to the dev list.  I based mine against 3.0.1.  I think i did
some minor tweaks as well to get it to fit into 3.0.1.  

I have not seen any security issues come up yet..  But i also have not
worked over the testsuite to make it work either.

>From what Ive seen this should work for the HEAD for the most part as
well.  and I don't think there is that much change for Axis RC1 as
well.  Should be an easy drop in.   

Right now my needs are for 3.0.1 and im going to stick with Axis beta3
for cause its stable and working (for me at least).  We I get some more
time (after the end of the month) I would be more then happy to help out
with this more.

Thanks for the had work btw..


-=Brian





On Mon, 2002-09-02 at 09:21, Jung , Dr. Christoph wrote:
> Me tooo.
> 
> No, really. Frederick Brier has already done the integration, but stuck with
> some security issues
> before being able to commit it. Any additional hints to what changes from
> beta2 to beta3 may affect
> Jboss.net would be helpful to get this highly requested "feature" into head
> (and then the next 3.x, is 
> this enough?)
> 
> CGJ
> 
> -Ursprüngliche Nachricht-
> Von: Matt Munz [mailto:[EMAIL PROTECTED]] 
> Gesendet: Freitag, 30. August 2002 22:09
> An: [EMAIL PROTECTED]
> Betreff: RE: [JBoss-user] JBoss-3.0.2 released
> 
> 
> Brian,
> 
>   I am interested in the patches.  Could you send them?
> 
>   - Matt
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Towles
> Sent: Friday, August 30, 2002 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss-3.0.2 released
> 
> 
> I have done an Axis Beta3 Integration but have not had time to change all
> the test case stuff in jboss.net yet so i have not submitted it back yet.
> 
> If there is interest in the patches  i will make them available.  It has
> been working for me just fine.
> 
> -=Brian
> 
> 
> On Fri, 2002-08-30 at 12:54, David Ward wrote:
> > I also am looking forward to Axis beta 3 integration:
> >
> > http://www.jboss.org/forums/thread.jsp?forum=137&thread=17461
> >
> > --
> >
> > Emily Short wrote:
> > > When will Axis beta 3 be integrated?  I built jboss 4.0.0alpha and 
> > > beta3 is not yet integrated.  I heard this would be done by the end 
> > > of the summer?
> > >
> > > Thanks,
> > > Emily
> > >
> >
> >
> >
> > ---
> > This sf.net email is sponsored by: OSDN - Tired of that same old cell 
> > phone?  Get a new here for FREE! 
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old cell phone?
> Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old cell phone?
> Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> ###
> 
> This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
> For more information, connect to http://www.F-Secure.com/
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


--- Begin Message ---

Hi,

I noticed that the latest version of Axis (beta 3) had not been
integrated into the .net packages as of yet. I took it upon myself to
perform the integration and would like to share with you all what needed
to be changed. Below you will find a log of what I did along the way to
perform the modification.  This was all done using the 3.1 alpha code in
cvs and hence will not work in the 3.0 production server without further
modification.

It builds and deploys without error but I have not had a chance to do
any real testing with though.

I noticed something else while I was routing around in the EJBProvider.
At present it does not support EJBLocalHome only EJBHome so a
ClassCastException is thrown if the the ejb being accessed through it's
local interfaces.


Re: [JBoss-user] JBoss RMI and http tunneling

2002-09-05 Thread marius

On Thu, Sep 05, 2002 at 05:45:34PM -0400, David Ward wrote:
> [EMAIL PROTECTED] wrote:
> > You should instead download jboss 3.0.2, which has it included. I tried it, and 
>got it to work after about 5 minutes :-), it is very easy, just follow the 
>instructions in changenotes.
> 
> 
> Hmmm.  Looked at the change notes, and have a request and a question:
> 
> SNIPPET 1st part:
> 
>
>
>  
>HTTP Stateless SessionBean
>jboss:service=invoker,type=http
>jboss:service=invoker,type=http
>  
>
> ...
> 
> 1) In the next JBoss version, could this be in standardjboss.xml by 
> default?  Seems pretty resusable.  That way people won't have to include 
> it in their jboss.xml's.
I just put it in standardjboss, and that below is then unneccesary.

> 
> SNIPPET 2nd part:
> ...
>
>  
>HelloWorldViaHTTP
>HTTP Stateless SessionBean
>helloworld/HelloHTTP
>  
>
> 
> 
> 2) What if I want to have two different invokers (rmi and http) for the 
> *same* bean?
Is RMI diabled with this setting?

>  At first glance, it looks like I have to define the bean 
> twice in the ejb-jar.xml (with different ejb-name's)?!  That doesn't 
> work well in XDoclet when you get one xml-defined bean for every 
> java-file bean.  I'd rather define it once in ejb-jar.xml, and twice in 
> jboss.xml under different jndi-name's (I would then use xdoclet's 
> mergeDir attribute to pull in the HTTP configuration).
I think the default should be that both rmi and http is enabled.

> 
> Thanks,
> David
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
MVH
Marius Kotsbak
Boost communications AS


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

This is the method that I used...
but I find the JMX call very ugly, then I tryed to use DynamicProxy to 
wrap all my MBeans,
but I had all kind of problems with ClassLoader...
anyway, now I create a Proxy class for each MBean, then all the EJB 
calls are more 'natural'.
So far so good.
JMX is very powerful feature.. its really amazing !

JBoss rocks!

Juha-P Lindfors wrote:

>On Thu, 5 Sep 2002, Herve Tchepannou wrote:
>
>  
>
>>Seems to be a propriatary approach...
>>I don't want my EJB to contains proprietary core, which will make them
>>non portable.
>>Is there any standard way to access JMX from EJB?
>>
>>
>
>Yes, retrieve the MBeanServer ref through
>MBeanServerFactory.findMBeanServer() and invoke your MBean through the
>MBeanServer interface returned from that call.
>
>Notice this only works if your MBean is within the same VM with your EJB.
>For a distributed system you need to wait til JMX 1.2 comes out.
>
>-- Juha
>
>
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Apache 1.3 and JBOSS 3.0.2 (w/tomcat or w/jetty)

2002-09-05 Thread Jules Gosnell

http://jetty.mortbay.org/jetty/doc/JettyWithApache.html

I believe there is a fix for the AJP13Listener that has just gone into 
Jetty CVS. If you have any problems, let me know and I will mail you a 
build of this.


Jules


Thomas T. Veldhouse wrote:
> I have a few things running on Apache already, so I need to host my J2EE
> sites through apache.  I am looking to find how to configure JBoss 3.0.2 and
> either Tomcat or Jetty to run with Apache (1.3, not 2.0 -- I have built
> mod_jk.so for Apache 1.3).  I am quite familiar with Tomcat, but I am new to
> JBoss and Jetty.
> 
> Thanks in advance for any help you can give.
> 
> Tom Veldhouse
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jetty war conf/deployment issue in 3.2.0RC1

2002-09-05 Thread Jules Gosnell

Dustin,

Is the ear too big/confidential to send to me (2mb or so tops)..

Could you reduce the problem to a manageable testcase ?

Jules


Barlow, Dustin wrote:
> I am attempting to move from Tomcat to Jetty and have run into a
> conf/deployment issue that I am unable to solve and was hoping for some
> tips.
> 
> The ear file, which contains the war file, seems to deploy without any
> errors on startup.  The jboss.web section of the jmx-console shows that the
> contextPath is set to /ntarget and the resourceBase is pointing to the
> temporary directory where Jetty exploded the war file into.  However when I
> go to that contextPath in the browser, I get HTTP ERROR: 404 /ntarget not
> found.  I checked the temporary directory, and all the web app files do
> exist and Jetty is pointing to that directory for the contextPath.
> 
> Here is the output from the jmx-console jboss.web section:
> 
> jboss.web
> Jetty=0,JBossWebApplicationContext=2,context=/ntarget 
> Jetty=0,JBossWebApplicationContext=3,context=/ntargetqe 
> Code=0 
> Jetty=0 
> Jetty=0,AJP13Listener=0 
> Jetty=0,JBossWebApplicationContext=0,context=/jmx-console 
> Jetty=0,NCSARequestLog=0 
> Log=0 
> Log=0,sink=0 
> Jetty=0,SocketListener=0 
> Jetty=0,JBossWebApplicationContext=1,context=/builders 
> service=JBossWeb 
> 
> The jmx-console works just fine.  I also compared the settings for the
> /jmx-console and /ntarget context paths in the jmx-console, and they are
> pretty much identical other then the differences like contextPath and
> resourceBase.
> 
> The exact same ear file works fine in both JBoss-2.4.4_Tomcat-3.2.3 and
> jboss-3.0.1RC1_tomcat-4.0.4, but not in jboss-3.2.0RC1 (not sure the Jetty
> version).  Is there a configuration difference for Tomcat and Jetty that I
> could be missing on the JBoss side, or in the web.xml file?  
> 
> My application.xml file (which is bundled in the ear file containing the
> war):
> 
> 
> 
> 
> NTarget
> 
> 
> 
> NTarget.war
> /ntarget
> 
> 
>   
> 
> 
> Any tips?
> 
> Dustin Barlow
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] 2 Quick Question - Xerces 2 & Oracle 9i

2002-09-05 Thread Michael Stanley

> jboss 3.2 and 4 and possibly 3.0.2 all use xerces by default (and probably
> won't work with Crimson).  If 3.0.2 uses Crimson by default you can put the
> Xerces jars in lib (NOT server/[config]/lib) and start with ./build.sh -j
> xerces.

Thanks...

I have it working now.  Here was MY problem...  I'm using the 3.0.0 
build, and I had the Xerces version 2 jar's (aka xercesParserAPIs and 
xercesImpl) in the correct place but was recieving class not found 
exceptions.  Low and behold, a straight forward enough solution existed, 
after stumbling across this ->

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss-system/src/main/org/jboss/Main.java.diff?r1=1.8.2.1&r2=1.8.2.2

I combined my jar's to xerces.jar and everything worked fine :-) 
Another solution would have been to upgrade of course...

>>Has anyone set up Oracle 9i DB as the default data store for CMP beans?

Still looking for assistance with setting up Oracle 9i.  I'm sure if I 
look into it probably isn't that tough to figure out.  I'm on a bit of a 
time crunch project however, and was hoping someone could show me there 
-service file that already has this working.

Thanks again.

Mike

>>
>>Seeking sample configuration ...
>>
>>Thanks in advance.
>>-- 
>>
>>
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] needing a job scheduler

2002-09-05 Thread Gary Grobe

I was actually looking at it the other way around ... that the 
scheduling service wouldn't bring down the mission critical part of my 
app. This was the only real reason I had for decoupling things at this 
time (though not a very strong reason for something a scheduler would 
do). Also, making a service from bmeans just seemed like a big learning 
curve, something that was going to take a few weeks.

> It seems to me that if JBoss goes down, having a standalone scheduling 
> server
> would be of no use. IMHO, I would implement a plugin for Quartz using 
> an
> MBean for management of the Quartz process - start, stop, admin, etc.

I think this is the way I'm going to go. Are there any examples around 
for doing a service similiar to to a scheduling service of this type?

Also, I heard there was maybe a new scheduler implementation w/ 
pluggable providers, some JDBCScheduleProvider. If so, what exactly is 
that, and might it be an option I'd want to look into?



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss RMI and http tunneling

2002-09-05 Thread David Ward

[EMAIL PROTECTED] wrote:
> You should instead download jboss 3.0.2, which has it included. I tried it, and got 
>it to work after about 5 minutes :-), it is very easy, just follow the instructions 
>in changenotes.


Hmmm.  Looked at the change notes, and have a request and a question:

SNIPPET 1st part:

   
   
 
   HTTP Stateless SessionBean
   jboss:service=invoker,type=http
   jboss:service=invoker,type=http
 
   
...

1) In the next JBoss version, could this be in standardjboss.xml by 
default?  Seems pretty resusable.  That way people won't have to include 
it in their jboss.xml's.

SNIPPET 2nd part:
...
   
 
   HelloWorldViaHTTP
   HTTP Stateless SessionBean
   helloworld/HelloHTTP
 
   


2) What if I want to have two different invokers (rmi and http) for the 
*same* bean?  At first glance, it looks like I have to define the bean 
twice in the ejb-jar.xml (with different ejb-name's)?!  That doesn't 
work well in XDoclet when you get one xml-defined bean for every 
java-file bean.  I'd rather define it once in ejb-jar.xml, and twice in 
jboss.xml under different jndi-name's (I would then use xdoclet's 
mergeDir attribute to pull in the HTTP configuration).

Thanks,
David





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections and errors, oh my - more info

2002-09-05 Thread David Jencks

On 2002.09.05 15:51:41 -0400 Bruce Snyder wrote:
> This one time, at band camp, David Jencks said:
> 
> DJ>xa has nothing to do with this.  If your requirement is for long
> lasting
> DJ>interactive transactions, you need to do (2) or (I should have thought
> of
> DJ>this before) use stateful session beans, which should work with your
> DJ>current method calls.
> 
> Actually I was just speaking to a coworker about this. I said that we
> could
> make use of a stateful session bean to hold all changes until a commit
> truly
> needed to be done. The real problem with this is that some changes must
> be
> committed for subsequent operations (within the same tx) can be properly
> performed. This would then disallow rolling back all actions and what
> lead me
> to asking about xa transactions. 

Umm do you mean that some changes need to be written to the db so they can
be visible to later db access within the same transaction?  If you run a
finder or remove operation all changes within the tx will be written to
disk (first).  I'm not sure how you could reread anything affected
otherwise, but if you need to you could probably find a way to call
GlobalTxEntityMap.synchronizeEntitiesWithinTransaction.

Again, xa has nothing to do with this.

david
> 
> DJ>> Option 2 is certainly doable, but I really don't like the idea of a
> DJ>> client
> DJ>> performing JNDI lookups. In my mind that seems to violate boundaries
> DJ>> (but, of
> DJ>> course, I could be wrong). 
> DJ>
> DJ>Don't you do jndi lookups to find the session home?
> 
> Damn you're good, David! I wondered if you'd ask me about that! (That's
> why I like reading your answers.) Yes, but it is compartmentalized into
> a broker object.
> 
> DJ>A stateful session bean is probably a better idea since I think you
> could
> DJ>figure out a way to rollback transactions that have remained open too
> long
> DJ>(like maybe the client crashed, user went to lunch, etc). If you can
> DJ>guarantee that the client will really end the tx, I don't see much
> DJ>difference between a client side ut or a stateful session bean that
> does
> DJ>the same operations.
> 
> Yes, that's what it's coming down to in my mind - six of one, half dozen
> of
> the other. I need to get further clarification on the requirement that is
> causing me all this strife. 
> 
> Thanks very much for your feeback, David. Your knowledge and your ability
> to
> continue to remain active on this list is truly a value. 
> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] axis version in jboss.net

2002-09-05 Thread David Ward

I know work is currently under way of integrating axis-beta3 into jboss, 
but thought you guys might want to know that axis-rc1 has been released. 
  Might be better to shift efforts that way.

http://xml.apache.org/axis/

Thanks for all your hard work,
David



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] (no subject)

2002-09-05 Thread Burkhard Vogel

Hi,
concerning the error, try the 2.4.8 which has several bug-fixes, some of
them related to Tx-Mangement.
As for commit() and rollback(): You may only use them in UserTransaction,
this is to say BMT (Bean Managed Transactions)
hth,
Burkhard
- Original Message -
From: "song chen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 5:43 AM
Subject: [JBoss-user] (no subject)


> Hello,
>   i'm a new user to JBoss and this mail list.
>
>   In my programming, when try to read data from a
> database (oracle 8.1.6), using Jboss 2.4.4, i got such
> error at the server side:
>
> [ERROR,XAConnectionFactory] Unable to deregister with
> TransactionManager
> java.lang.IllegalArgumentException: xaRes not enlisted
> 
> 
>
>   Anyone can tell the reason?
>
>   also, in other circumstances, like Weblogic, the
> code is OK.
>
>   And more, is it true that one can't use commit() and
> rollback() in program?
>
>   thanks in advance
>
> song
>
> __
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] needing a job scheduler

2002-09-05 Thread Bruce Snyder

This one time, at band camp, Gary Grobe said:

GG>I don't know if it's better to fully decouple a scheduler from JBoss or 
GG>somehow implement it as a service which I'm kinda clueless about right 
GG>now. I only know mbeans at their simplest level.
GG>
GG>Currently I'm thinking to make a standalone scheduling server fire 
GG>triggers via JMS. I believe I need an instance of a scheduler in quartz 
GG>(the scheduling api) to hang around the lifespan of the server since 
GG>I'm doing chronological jobs and don't see where it would fit well in 
GG>my servlets or ejb's.
GG>
GG>Are there any benefits of doing one over the other? Any more 
GG>thoughts/suggestions about how to do this?

Gary, 

It seems to me that if JBoss goes down, having a standalone scheduling server
would be of no use. IMHO, I would implement a plugin for Quartz using an
MBean for management of the Quartz process - start, stop, admin, etc. 

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] RE: Unexpected server shutdown on startup with MDBon jboss3.0.0

2002-09-05 Thread Michael Bartmann


   Last month one of our customers called in and complained about
   all his JBoss-clients not working. We dialed in to his JBoss-console
   and saw that his JBoss had unexpectedly shut down.
   The server.log looked exactly the same way as if someone had
   pressed Crtl-C on the console.
   We asked our customer if anybody had physical access to the server
   and pressed Crtl-C.
   He answered "Oops, I myself did, I wanted to copy/paste from the
   DOS-Box".


I know that this will probably not be of direct help for
your problem, but perhaps some humor helps you to endure
such problems...

Keep smiling,
Michael



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections anderrors, oh my - more info

2002-09-05 Thread Bruce Snyder

This one time, at band camp, David Jencks said:

DJ>xa has nothing to do with this.  If your requirement is for long lasting
DJ>interactive transactions, you need to do (2) or (I should have thought of
DJ>this before) use stateful session beans, which should work with your
DJ>current method calls.

Actually I was just speaking to a coworker about this. I said that we could
make use of a stateful session bean to hold all changes until a commit truly
needed to be done. The real problem with this is that some changes must be
committed for subsequent operations (within the same tx) can be properly
performed. This would then disallow rolling back all actions and what lead me
to asking about xa transactions. 

DJ>> Option 2 is certainly doable, but I really don't like the idea of a
DJ>> client
DJ>> performing JNDI lookups. In my mind that seems to violate boundaries
DJ>> (but, of
DJ>> course, I could be wrong). 
DJ>
DJ>Don't you do jndi lookups to find the session home?

Damn you're good, David! I wondered if you'd ask me about that! (That's
why I like reading your answers.) Yes, but it is compartmentalized into
a broker object.

DJ>A stateful session bean is probably a better idea since I think you could
DJ>figure out a way to rollback transactions that have remained open too long
DJ>(like maybe the client crashed, user went to lunch, etc). If you can
DJ>guarantee that the client will really end the tx, I don't see much
DJ>difference between a client side ut or a stateful session bean that does
DJ>the same operations.

Yes, that's what it's coming down to in my mind - six of one, half dozen of
the other. I need to get further clarification on the requirement that is
causing me all this strife. 

Thanks very much for your feeback, David. Your knowledge and your ability to
continue to remain active on this list is truly a value. 

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Juha-P Lindfors

On Thu, 5 Sep 2002, Herve Tchepannou wrote:

> Seems to be a propriatary approach...
> I don't want my EJB to contains proprietary core, which will make them
> non portable.
> Is there any standard way to access JMX from EJB?

Yes, retrieve the MBeanServer ref through
MBeanServerFactory.findMBeanServer() and invoke your MBean through the
MBeanServer interface returned from that call.

Notice this only works if your MBean is within the same VM with your EJB.
For a distributed system you need to wait til JMX 1.2 comes out.

-- Juha




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] oracle proxy authentication

2002-09-05 Thread Sonnek, Ryan

david, thank you so much for your replies.  you've helped me out on more
than one occasion!

i think you hit the nail right on the head with my objectives.  my current
goal is to get the authenticated identity from the middle tier, and use that
identity to make the connection to the back end database.  it sounds a lot
like this is possible with the login modules you talked about, so i'm going
to dig into them and see if they fit our needs.

i would absolutely love to stay working with jboss and not have to move to
oracle's application server, so i will start looking into the modules you
talked about.

thanks again.
Ryan

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803



-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] oracle proxy authentication


This stuff is jboss 3/4 only, but should work fine in 3.0.2.

The CallerIdentityLoginModule is kind of between the ejb (or even jsp) part
of the app and the resource adapter/jdbc datasource.  If you set up jca
(database, here) security using the JAAS framework, you use a login module
to supply the security info to the adapter.  This login module can use
whatever means it wants to come up with a suitable Subject for the
ManagedConnectionFactory.  Basically there are only 3 possible kinds: you
always use the same identity ("configured identity", which corresponds to
what you are using now"), the same identity as the user in the app ("caller
identity", which seems to be what you want) and mapping the app user
identity to something else (your choice how:-).

You should be able to set up the CallerIdentityLoginModule in jboss 3
without too much trouble. (I haven't tested it, but the guy who wrote it
did).  You will need to set the pooling criteria to ByApplication.  One
factor to be aware of with the current pooling implementation is that there
is one pool (using the min, max, etc parameters) for each distinct user. 
You will probably want to set the pool size low and have a short idle
timeout.  There is currently no global maximum on the number of pools.
(this wouldn't be hard to add, but I'm not sure of the most appropriate
logic).

So far this will work with any database.  There is a concept in jca of
reauthentication, which sounds like pretty much what Oracle is supporting
here.  So, I imagine you could write an Oracle specific jca wrapper that
supported reauthentication using this oracle specific feature.  This would
let you use just one pool, avoiding the potential problem I mentioned
above.  If you want to work on this I can try to give you some hints, and I
hope you would consider contributing the result: I think others could use
it as well.

Thanks
david jencks

On 2002.09.05 13:54:51 -0400 "Sonnek, Ryan" wrote:
> thanks for the quick reply!  i'll try and clarify my situation.
> 
> yes, this seems to be an EXTREMELY non standard request, and against a
> lot
> of what i believe to be so great about J2EE, but trying to appease some
> very
> difficult people.  
> 
> our current setup is that an application is deployed with an ldap
> security
> domain, so when a user accesses a web page, they'll be prompted for a
> username/password, and be logged in.  from there, calling a stateless
> session bean to make the database connection and return certain results.
> the SLSB is looking up a datasource with a configured
> url/username/password
> to connect to the database.  since the connection is made through this
> generic account, and records modified will show "generic user" as the
> audit
> user instead of the logged in person.  is there any way to propogate the
> security credentials that the user logged in with to that database
> connection?
> 
> i've been reading about oracles ability to use a "proxy authentication"
> to
> have one database connection but several individual sessions within that
> connection.  when an insert/update/delete occurs, it happens within that
> session, and the audit user will reflect that.
> 
> you lost me with the CallerIdentityLoginModule.  what does that do again
> (how does jboss use it)??
> 
> we're currently using jboss 2.4.6 w/ tomcat 4.0.1 and planning on
> upgrading
> sometime soon, so if this feature exists only in 3.0.x we'll definately
> be
> moving up ASAP.
> 
> Ryan J. Sonnek
> Brown Printing Company
> IT Programmer/Analyst
> (507) 835-0803
> 
> 
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] oracle proxy authentication
> 
> 
> This seems like a rather non standard feature.  As I understand it from
> your description you can use the same database connection under several
> security identities?  What calls do you need to make to establish the
> identity?
> 
> How do you plan to use this in a j2ee enviro

[JBoss-user] Re: JBoss-user digest, Vol 1 #2967

2002-09-05 Thread Rishikesh Tembe

Solved it... For some reason the buildfile didn't include the correct
classpath. Thanks!

> Message: 7
> Date: Thu, 05 Sep 2002 15:10:53 +0530
> From: "rahul ganjoo" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Interest sample error
> Reply-To: [EMAIL PROTECTED]
> 
> jboss-common.jar

-- 
  Rishikesh Tembe
  [EMAIL PROTECTED]
  http://rishikesh-tembe.tripod.com
  "One ring to rule them all, One ring to find them
   One ring to bring them all and in the darkness bind them."

-- 
http://fastmail.fm
Quick as a click


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] needing a job scheduler

2002-09-05 Thread Gary Grobe
Hoping to get some more insight on how to implement a scheduler in JBoss.

I don't know if it's better to fully decouple a scheduler from JBoss or somehow implement it as a service which I'm kinda clueless about right now. I only know mbeans at their simplest level.

Currently I'm thinking to make a standalone scheduling server fire triggers via JMS. I believe I need an instance of a scheduler in quartz (the scheduling api) to hang around the lifespan of the server since I'm doing chronological jobs and don't see where it would fit well in my servlets or ejb's.

Are there any benefits of doing one over the other? Any more thoughts/suggestions about how to do this?

Any help much appreciated.

Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet



I don't know, but JMX is not part of J2EE 
applications, that's what David means.

  - Original Message - 
  From: 
  Greg Turner 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, September 05, 2002 2:57 
  PM
  Subject: Re: [JBoss-user] EJB/MBean 
  communication
  No.  Since not all app servers have JMX. 
  Herve Tchepannou wrote: 
  Seems to be a propriatary approach... I don't 
want my EJB to contains proprietary core, which will make them non 
portable. Is there any standard way to access JMX from EJB? Julien 
Viet wrote: 
>look in the jboss sources : 
>server/src/main/org/jboss/naming/NonSerializableFactory.java 
>it's described how to use it. > > >- 
Original Message - >From: "Herve Tchepannou" 
<[EMAIL PROTECTED]> >To: 
<[EMAIL PROTECTED]> >Sent: Thursday, September 
05, 2002 11:07 AM >Subject: Re: [JBoss-user] EJB/MBean communication 
> > > > >>What's that? is there any 
doc available about NonSerializableFactory? >> >>Julien 
Viet wrote: >> >> >> >>>you could 
use maybe the NonSerializableFactory and bind your mbean into 
>>> >>> >it. > > 
>>>- Original Message - >>>From: "Herve 
Tchepannou" <[EMAIL PROTECTED]> >>>To: "JBoss User 
Group" <[EMAIL PROTECTED]> >>>Sent: 
Thursday, September 05, 2002 10:31 AM >>>Subject: [JBoss-user] 
EJB/MBean communication >>> >>> >>> 
>>> >>> >>> What 
is the best and portable way to access a MBean from an EJB? 
 I was wondering if I can lookup any 
of my custom MBean via JNDI from my EJB ? (it seems to 
be cleanest way). If not, how can I attach a MBean to 
the JNDI tree?   
 
--- 
This sf.net email is sponsored by: OSDN - Tired of that 
same old cell phone?  Get a new here for FREE! 
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 
___ 
JBoss-user mailing list 
[EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
   
 
>>>___ 
>>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en 
français ! >>>Yahoo! Mail : http://fr.mail.yahoo.com 
>>> >>> 
>>>--- 
>>>This sf.net email is sponsored by: OSDN - Tired of that same 
old >>>cell phone?  Get a new here for FREE! 
>>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 
>>>___ 
>>>JBoss-user mailing list 
>>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/jboss-user 
>>> >>> >>> >>> 
>>> >> >> >> 
>>--- 
>>This sf.net email is sponsored by: OSDN - Tired of that same old 
>>cell phone?  Get a new here for FREE! >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 
>>___ 
>>JBoss-user mailing list 
>>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-user 
>> >> > 
>___ 
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! 
>Yahoo! Mail : http://fr.mail.yahoo.com > 
> >--- 
>This sf.net email is sponsored by: OSDN - Tired of that same old 
>cell phone?  Get a new here for FREE! >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 
>___ >JBoss-user 
mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-user 
> > > 
--- This sf.net 
email is sponsored by: OSDN - Tired of that same old cell phone?  
Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 
___ JBoss-user mailing 
list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
  -- Greg Turner, JBoss Authorized Consultant 
  Tiburon Enterprise Systems http://www.tiburon-e-systems.com 
  Box 1171 Tiburon, CA 94920 415-332-3363   



Re: [JBoss-user] Different Commit Options

2002-09-05 Thread Marius Kotsbak

(buy and-) Read the CMP-doc.

On Thu, 2002-09-05 at 20:07, Saroj Kumar wrote:
> Hi All,
> 
> There are 4 commit option A,B,C,D.
> 
> What is the diff. between them and when should one use them?
> 
> Forgive me for asking these basic questions.
> 
> TIA,
> Saroj
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Marius Kotsbak
Boost Communications A/S
Trondheim, Norway



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet

if you bind the MBean not in the EJB (but in another mbean for instance
or the mbean can bind itself in the tree) your EJB will be without
"proprietary" code.

- Original Message -
From: "Herve Tchepannou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 1:18 PM
Subject: Re: [JBoss-user] EJB/MBean communication


> Seems to be a propriatary approach...
> I don't want my EJB to contains proprietary core, which will make them
> non portable.
> Is there any standard way to access JMX from EJB?
> Julien Viet wrote:
>
> >look in the jboss sources :
> >server/src/main/org/jboss/naming/NonSerializableFactory.java
> >it's described how to use it.
> >
> >
> >- Original Message -
> >From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, September 05, 2002 11:07 AM
> >Subject: Re: [JBoss-user] EJB/MBean communication
> >
> >
> >
> >
> >>What's that? is there any doc available about NonSerializableFactory?
> >>
> >>Julien Viet wrote:
> >>
> >>
> >>
> >>>you could use maybe the NonSerializableFactory and bind your mbean into
> >>>
> >>>
> >it.
> >
> >
> >>>- Original Message -
> >>>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >>>To: "JBoss User Group" <[EMAIL PROTECTED]>
> >>>Sent: Thursday, September 05, 2002 10:31 AM
> >>>Subject: [JBoss-user] EJB/MBean communication
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> What is the best and portable way to access a MBean from an EJB?
> 
> I was wondering if I can lookup any of my custom MBean via JNDI from
my
> EJB ? (it seems to be cleanest way).
> If not, how can I attach a MBean to the JNDI tree?
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> >>>___
> >>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> >>>Yahoo! Mail : http://fr.mail.yahoo.com
> >>>
> >>>
> >>>---
> >>>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>>cell phone?  Get a new here for FREE!
> >>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>>___
> >>>JBoss-user mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>---
> >>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>cell phone?  Get a new here for FREE!
> >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> >
> >___
> >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> >Yahoo! Mail : http://fr.mail.yahoo.com
> >
> >
> >---
> >This sf.net email is sponsored by: OSDN - Tired of that same old
> >cell phone?  Get a new here for FREE!
> >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
>
>
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Greg Turner


No.  Since not all app servers have JMX.
Herve Tchepannou wrote:
Seems to be a propriatary approach...
I don't want my EJB to contains proprietary core, which will make them
non portable.
Is there any standard way to access JMX from EJB?
Julien Viet wrote:
>look in the jboss sources :
>server/src/main/org/jboss/naming/NonSerializableFactory.java
>it's described how to use it.
>
>
>- Original Message -
>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 05, 2002 11:07 AM
>Subject: Re: [JBoss-user] EJB/MBean communication
>
>
>
>
>>What's that? is there any doc available about NonSerializableFactory?
>>
>>Julien Viet wrote:
>>
>>
>>
>>>you could use maybe the NonSerializableFactory and bind your mbean
into
>>>
>>>
>it.
>
>
>>>- Original Message -
>>>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>>>To: "JBoss User Group" <[EMAIL PROTECTED]>
>>>Sent: Thursday, September 05, 2002 10:31 AM
>>>Subject: [JBoss-user] EJB/MBean communication
>>>
>>>
>>>
>>>
>>>
>>>
What is the best and portable way to access a MBean from an EJB?

I was wondering if I can lookup any of my custom MBean via JNDI
from my
EJB ? (it seems to be cleanest way).
If not, how can I attach a MBean to the JNDI tree?



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




>>>___
>>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français
!
>>>Yahoo! Mail : http://fr.mail.yahoo.com
>>>
>>>
>>>---
>>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>>cell phone?  Get a new here for FREE!
>>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>>___
>>>JBoss-user mailing list
>>>[EMAIL PROTECTED]
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français
!
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner, JBoss Authorized Consultant
Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-332-3363
 


Re: [JBoss-user] Agent view in 3.0.2

2002-09-05 Thread Michael Bartmann

I once had this effect when not the following setting before calling 
run.bat / run.sh:

set JAVA_HOME=...
set PATH= (with JAVA_HOME/bin in it, before any other JDK)

Enjoy,
Michael



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections and errors, oh my - more info

2002-09-05 Thread David Jencks

On 2002.09.05 14:30:10 -0400 Bruce Snyder wrote:
> This one time, at band camp, David Jencks said:
> 
> DJ>> If this is true, how can I expose UserTransactions out to a client
> so
> DJ>> that developers have the ability to start, stop or rollback
> transactions?
> DJ>
> DJ>1. (by far the best solution) rethink your architecture using an
> DJ>appropriate layering so the client doesn't explicitly control
> transaction
> DJ>boundaries.
> DJ>
> DJ>2. If (1) is impossible due to time constraints, use a client-side
> user
> DJ>transaction. IOW, look up the UserTransaction in the client.
> 
> I like option 1, but I'm not sure if this can be achieved. I have a
> requirement that says a developer needs to have the ability to begin a
> transaction, do a bunch of work and commit the work or roll back all the
> work.
> Maybe this can be achieved using xa transactions? 

xa has nothing to do with this.  If your requirement is for long lasting
interactive transactions, you need to do (2) or (I should have thought of
this before) use stateful session beans, which should work with your
current method calls.
> 
> Option 2 is certainly doable, but I really don't like the idea of a
> client
> performing JNDI lookups. In my mind that seems to violate boundaries
> (but, of
> course, I could be wrong). 

Don't you do jndi lookups to find the session home?

A stateful session bean is probably a better idea since I think you could
figure out a way to rollback transactions that have remained open too long
(like maybe the client crashed, user went to lunch, etc). If you can
guarantee that the client will really end the tx, I don't see much
difference between a client side ut or a stateful session bean that does
the same operations.

david jencks

> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] 2 Quick Question - Xerces 2 & Oracle 9i

2002-09-05 Thread David Jencks

jboss 3.2 and 4 and possibly 3.0.2 all use xerces by default (and probably
won't work with Crimson).  If 3.0.2 uses Crimson by default you can put the
Xerces jars in lib (NOT server/[config]/lib) and start with ./build.sh -j
xerces.

david jencks

On 2002.09.05 11:55:42 -0400 Michael Stanley wrote:
> Has anyone had any luck setting up Jboss to use Xerces v2 as their 
> default XML parser?
> 
> Has anyone set up Oracle 9i DB as the default data store for CMP beans?
> 
> Seeking sample configuration ...
> 
> Thanks in advance.
> -- 
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Different Commit Options

2002-09-05 Thread David Ward

You can learn about options A, B and C in the ejb 2.0 servlet spec, 
section 10.5.9, page 186:


10.5.9 Commit options

The Entity Bean protocol is designed to give the Container the 
flexibility to select the disposition of the instance state at 
transaction commit time. This flexibility allows the Container to 
optimally manage the association of an entity object identity with the 
enterprise bean instances.

The Container can select from the following commit-time options:

- Option A: The Container caches a  ready  instance between 
transactions. The Container ensures that the instance has exclusive 
access to the state of the object in the persistent storage. Therefore, 
the Container does not have to synchronize the instance s state from the 
persistent storage at the beginning of the next transaction.

- Option B: The Container caches a  ready  instance between 
transactions. In contrast to Option A, in this option the Container does 
not ensure that the instance has exclusive access to the state of the 
object in the persistent storage. Therefore, the Container must 
synchronize the instance s state from the persistent storage at the 
beginning of the next transaction.

- Option C: The Container does not cache a  ready  instance between 
transactions. The Container returns the instance to the pool of 
available instances after a transaction has completed.

The following table provides a summary of the commit-time options.

Note that the container synchronizes the instance s state with the 
persistent storage at transaction commit for all three options.

The selection of the commit option is transparent to the entity bean 
implementation the entity bean will work correctly regardless of the 
commit-time option chosen by the Container. The Bean Provider writes the 
entity bean in the same way. The object interaction diagrams in Section 
10.9 illustrate the three alternative commit options in detail.

Table 6
Summary of commit-time options
Write instance state to database | Instance stays ready | Instance state 
remains valid
Option A - Yes | Yes | Yes
Option B - Yes | Yes | No
Option C - Yes | No  | No

Note: The Bean Provider relies on the ejbLoad() method to be invoked 
when commit options B and C are used in order to resynchronize the bean 
s transient state with its persistent state. It is the responsibility of 
the container to call the ejbLoad()method at the beginning of a new 
transaction when commit option B or C is used.


Option D is JBoss-specific, and deals with a refresh rate parameter. 
You can find more information about that in the JBossCMP docs, on the 
website docs, in the forums, in the lists..

David

--

Saroj Kumar wrote:
> Hi All,
> 
> There are 4 commit option A,B,C,D.
> 
> What is the diff. between them and when should one use them?
> 
> Forgive me for asking these basic questions.
> 
> TIA,
> Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] UserTransactions and database connections and errors, oh my - more info

2002-09-05 Thread Demyanovich, Craig - Apogent

Clients can do a JNDI lookup on a UserTransaction suitable for client use.
You can see the UserTransaction listed in the Global JNDI Namespace of the
JNDIView service available from the Agent View management interface.  This
is also documented in the JBoss documentation that can be purchased for $10.
I've never used it on the client, but maybe someone who has can contribute
an example or more information if you need it.

HTH,
Craig

> -Original Message-
> From: Bruce Snyder [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 05, 2002 1:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] UserTransactions and database 
> connections and errors, oh my - more info
> 
> 
> This one time, at band camp, David Jencks said:
> 
> DJ>I really can't tell what you are doing from your 
> description, and you 
> DJ>appear at one point to imply that you have a BMT entity 
> bean which is 
> DJ>impossible.
> DJ>
> DJ>The spec is trying to lead you, in a stateless session 
> bean, to code 
> DJ>ut usage something like this:
> DJ>
> DJ>ut.begin();
> DJ>try {
> DJ>//do something
> DJ>} finally {
> DJ>ut.commit();//or rollback
> DJ>}
> DJ>
> DJ>Is this what you have?
> 
> I'm way too caught up deciphering this damn architecture that 
> I've inherited.  Your example just made it through my thick 
> skull! Must each operation be wrapped in a UT on the bean 
> side?  If so, the client side calls would be similar to this:
> 
> 1) client call doWork() method of bean
> 
> rather than this: 
> 
> 1) call to bean to begin tx
> 2) do some work here
> 3) call to bean to commit tx
> 
> Correct? 
> 
> If this is true, how can I expose UserTransactions out to a 
> client so that developers have the ability to start, stop or 
> rollback transactions?
> 
> Bruce
> -- 
> perl -e 'print 
> unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same 
> old cell phone?  Get a new here for FREE! 
> https://www.inphonic.com/r.asp?r=sourceforge1> &refcode1=vs3390
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/j> boss-user
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread David Jencks

No.  You can get a list of all the jmx servers in the vm from I think
MBeanServerFactory (?) and assume the one you want is the first, then
contact your mbean through the mbean server.  There's a jboss util class
that finds the server for you in this way.  JMX is not part of j2ee, so you
won't find any official ways to communicate.

If you want to use jndi, you can bind the mbean's object into jndi using
referenceable and ObjectFactory yourself: the nonserializableFactory just
does this for you.

david jencks

On 2002.09.05 13:18:06 -0400 Herve Tchepannou wrote:
> Seems to be a propriatary approach...
> I don't want my EJB to contains proprietary core, which will make them 
> non portable.
> Is there any standard way to access JMX from EJB?
> Julien Viet wrote:
> 
> >look in the jboss sources :
> >server/src/main/org/jboss/naming/NonSerializableFactory.java
> >it's described how to use it.
> >
> >
> >- Original Message -
> >From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, September 05, 2002 11:07 AM
> >Subject: Re: [JBoss-user] EJB/MBean communication
> >
> >
> >  
> >
> >>What's that? is there any doc available about NonSerializableFactory?
> >>
> >>Julien Viet wrote:
> >>
> >>
> >>
> >>>you could use maybe the NonSerializableFactory and bind your mbean
> into
> >>>  
> >>>
> >it.
> >  
> >
> >>>- Original Message -
> >>>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >>>To: "JBoss User Group" <[EMAIL PROTECTED]>
> >>>Sent: Thursday, September 05, 2002 10:31 AM
> >>>Subject: [JBoss-user] EJB/MBean communication
> >>>
> >>>
> >>>
> >>>
> >>>  
> >>>
> What is the best and portable way to access a MBean from an EJB?
> 
> I was wondering if I can lookup any of my custom MBean via JNDI from
> my
> EJB ? (it seems to be cleanest way).
> If not, how can I attach a MBean to the JNDI tree?
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> >>>___
> >>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> >>>Yahoo! Mail : http://fr.mail.yahoo.com
> >>>
> >>>
> >>>---
> >>>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>>cell phone?  Get a new here for FREE!
> >>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>>___
> >>>JBoss-user mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>
> >>>
> >>>
> >>>  
> >>>
> >>
> >>
> >>
> >>---
> >>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>cell phone?  Get a new here for FREE!
> >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> >
> >___
> >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> >Yahoo! Mail : http://fr.mail.yahoo.com
> >
> >
> >---
> >This sf.net email is sponsored by: OSDN - Tired of that same old
> >cell phone?  Get a new here for FREE!
> >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >  
> >
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections anderrors, oh my - more info

2002-09-05 Thread Bruce Snyder

This one time, at band camp, David Jencks said:

DJ>> If this is true, how can I expose UserTransactions out to a client so
DJ>> that developers have the ability to start, stop or rollback transactions?
DJ>
DJ>1. (by far the best solution) rethink your architecture using an
DJ>appropriate layering so the client doesn't explicitly control transaction
DJ>boundaries.
DJ>
DJ>2. If (1) is impossible due to time constraints, use a client-side user
DJ>transaction. IOW, look up the UserTransaction in the client.

I like option 1, but I'm not sure if this can be achieved. I have a
requirement that says a developer needs to have the ability to begin a
transaction, do a bunch of work and commit the work or roll back all the work.
Maybe this can be achieved using xa transactions? 

Option 2 is certainly doable, but I really don't like the idea of a client
performing JNDI lookups. In my mind that seems to violate boundaries (but, of
course, I could be wrong). 

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] oracle proxy authentication

2002-09-05 Thread David Jencks

This stuff is jboss 3/4 only, but should work fine in 3.0.2.

The CallerIdentityLoginModule is kind of between the ejb (or even jsp) part
of the app and the resource adapter/jdbc datasource.  If you set up jca
(database, here) security using the JAAS framework, you use a login module
to supply the security info to the adapter.  This login module can use
whatever means it wants to come up with a suitable Subject for the
ManagedConnectionFactory.  Basically there are only 3 possible kinds: you
always use the same identity ("configured identity", which corresponds to
what you are using now"), the same identity as the user in the app ("caller
identity", which seems to be what you want) and mapping the app user
identity to something else (your choice how:-).

You should be able to set up the CallerIdentityLoginModule in jboss 3
without too much trouble. (I haven't tested it, but the guy who wrote it
did).  You will need to set the pooling criteria to ByApplication.  One
factor to be aware of with the current pooling implementation is that there
is one pool (using the min, max, etc parameters) for each distinct user. 
You will probably want to set the pool size low and have a short idle
timeout.  There is currently no global maximum on the number of pools.
(this wouldn't be hard to add, but I'm not sure of the most appropriate
logic).

So far this will work with any database.  There is a concept in jca of
reauthentication, which sounds like pretty much what Oracle is supporting
here.  So, I imagine you could write an Oracle specific jca wrapper that
supported reauthentication using this oracle specific feature.  This would
let you use just one pool, avoiding the potential problem I mentioned
above.  If you want to work on this I can try to give you some hints, and I
hope you would consider contributing the result: I think others could use
it as well.

Thanks
david jencks

On 2002.09.05 13:54:51 -0400 "Sonnek, Ryan" wrote:
> thanks for the quick reply!  i'll try and clarify my situation.
> 
> yes, this seems to be an EXTREMELY non standard request, and against a
> lot
> of what i believe to be so great about J2EE, but trying to appease some
> very
> difficult people.  
> 
> our current setup is that an application is deployed with an ldap
> security
> domain, so when a user accesses a web page, they'll be prompted for a
> username/password, and be logged in.  from there, calling a stateless
> session bean to make the database connection and return certain results.
> the SLSB is looking up a datasource with a configured
> url/username/password
> to connect to the database.  since the connection is made through this
> generic account, and records modified will show "generic user" as the
> audit
> user instead of the logged in person.  is there any way to propogate the
> security credentials that the user logged in with to that database
> connection?
> 
> i've been reading about oracles ability to use a "proxy authentication"
> to
> have one database connection but several individual sessions within that
> connection.  when an insert/update/delete occurs, it happens within that
> session, and the audit user will reflect that.
> 
> you lost me with the CallerIdentityLoginModule.  what does that do again
> (how does jboss use it)??
> 
> we're currently using jboss 2.4.6 w/ tomcat 4.0.1 and planning on
> upgrading
> sometime soon, so if this feature exists only in 3.0.x we'll definately
> be
> moving up ASAP.
> 
> Ryan J. Sonnek
> Brown Printing Company
> IT Programmer/Analyst
> (507) 835-0803
> 
> 
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] oracle proxy authentication
> 
> 
> This seems like a rather non standard feature.  As I understand it from
> your description you can use the same database connection under several
> security identities?  What calls do you need to make to establish the
> identity?
> 
> How do you plan to use this in a j2ee environment?
> 
> In jboss 3, it is already possible with any jdbc driver to get database
> connections using a variety of security identities, by using an
> appropriate
> login module.  We supply a CallerIdentityLoginModule that provides the
> actual user/pw from application login to the database, and a
> ConfiguredIdentityLoginModule that always supplies the same user/pw.  I
> have some parts of a mapping login module that looks up in a db table the
> db user/pw to use for each application user.
> 
> Please explain how you want to use this Oracle feature.
> 
> thanks
> david jencks
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https:

Re[2]: [JBoss-user] PK Generator

2002-09-05 Thread Alex Loubyansky

Hello Saroj,

Recently I announced this feature. Try to search teh mailing list.
For now there is only UUID generator for 32-length keys.

There are two ways:
1. lookup UUIDKeyGenerator factory in JNDI;
   create UUIDKeyGenerator;
   call generateKey() method to get a new key;
2. declare prim-key-class as java.lang.Object and remove primkey-field
from ejb-jar.xml. That's enough for JBoss to handle the primary key
field.
To configure primary key field you'll need to setup unknown-pk element
in jbosscmp-jdbc.xml.
Example:
   
 MyNameIsCmpEntity
   
 
UUIDKeyGeneratorFactory
java.lang.String
IAmUnknownColumn
VARCHAR
VARCHAR(32)
 
 ...
   

   alex
   
Thursday, September 05, 2002, 9:11:40 PM, you wrote:

SK> Hi Alex,

SK> Thanks for the mail.

SK> How do I use the key? Any doc or sample??

SK> TIA,
SK> Saroj

SK> -Original Message-
SK> From: [EMAIL PROTECTED]
SK> [mailto:[EMAIL PROTECTED]] On Behalf Of Alex
SK> Loubyansky
SK> Sent: Thursday, September 05, 2002 11:29 PM
SK> To: Saroj Kumar
SK> Subject: Re: [JBoss-user] PK Generator


SK> Hello Saroj,

SK> yes, in HEAD. In default and all configurations.
SK> HEAD version also supports uknown primary keys.

SK> alex

SK> Thursday, September 05, 2002, 8:41:36 PM, you wrote:

SK>> HI All,

SK>> Does JBOSS have one PK Generator?

SK>> Any pointers??

SK>> TIA,
SK>> Saroj




SK> ---
SK> This sf.net email is sponsored by: OSDN - Tired of that same old
SK> cell phone?  Get a new here for FREE!
SK> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
SK> ___
SK> JBoss-user mailing list
SK> [EMAIL PROTECTED]
SK> https://lists.sourceforge.net/lists/listinfo/jboss-user



SK> ---
SK> This sf.net email is sponsored by: OSDN - Tired of that same old
SK> cell phone?  Get a new here for FREE!
SK> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
SK> ___
SK> JBoss-user mailing list
SK> [EMAIL PROTECTED]
SK> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Best regards,
 Alex Loubyansky




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] PK Generator

2002-09-05 Thread Saroj Kumar

Hi Alex,

Thanks for the mail.

How do I use the key? Any doc or sample??

TIA,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Alex
Loubyansky
Sent: Thursday, September 05, 2002 11:29 PM
To: Saroj Kumar
Subject: Re: [JBoss-user] PK Generator


Hello Saroj,

yes, in HEAD. In default and all configurations.
HEAD version also supports uknown primary keys.

alex

Thursday, September 05, 2002, 8:41:36 PM, you wrote:

SK> HI All,

SK> Does JBOSS have one PK Generator?

SK> Any pointers??

SK> TIA,
SK> Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Different Commit Options

2002-09-05 Thread Saroj Kumar

Hi All,

There are 4 commit option A,B,C,D.

What is the diff. between them and when should one use them?

Forgive me for asking these basic questions.

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

Seems to be a propriatary approach...
I don't want my EJB to contains proprietary core, which will make them 
non portable.
Is there any standard way to access JMX from EJB?
Julien Viet wrote:

>look in the jboss sources :
>server/src/main/org/jboss/naming/NonSerializableFactory.java
>it's described how to use it.
>
>
>- Original Message -
>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 05, 2002 11:07 AM
>Subject: Re: [JBoss-user] EJB/MBean communication
>
>
>  
>
>>What's that? is there any doc available about NonSerializableFactory?
>>
>>Julien Viet wrote:
>>
>>
>>
>>>you could use maybe the NonSerializableFactory and bind your mbean into
>>>  
>>>
>it.
>  
>
>>>- Original Message -
>>>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>>>To: "JBoss User Group" <[EMAIL PROTECTED]>
>>>Sent: Thursday, September 05, 2002 10:31 AM
>>>Subject: [JBoss-user] EJB/MBean communication
>>>
>>>
>>>
>>>
>>>  
>>>
What is the best and portable way to access a MBean from an EJB?

I was wondering if I can lookup any of my custom MBean via JNDI from my
EJB ? (it seems to be cleanest way).
If not, how can I attach a MBean to the JNDI tree?



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




>>>___
>>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>>>Yahoo! Mail : http://fr.mail.yahoo.com
>>>
>>>
>>>---
>>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>>cell phone?  Get a new here for FREE!
>>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>>___
>>>JBoss-user mailing list
>>>[EMAIL PROTECTED]
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>
>>>
>>>
>>>  
>>>
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] PK Generator

2002-09-05 Thread Alex Loubyansky

Hello Saroj,

yes, in HEAD. In default and all configurations.
HEAD version also supports uknown primary keys.

alex

Thursday, September 05, 2002, 8:41:36 PM, you wrote:

SK> HI All,

SK> Does JBOSS have one PK Generator?

SK> Any pointers??

SK> TIA,
SK> Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] 2 Quick Question - Xerces 2 & Oracle 9i

2002-09-05 Thread Michael Stanley

Has anyone had any luck setting up Jboss to use Xerces v2 as their 
default XML parser?

Has anyone set up Oracle 9i DB as the default data store for CMP beans?

Seeking sample configuration ...

Thanks in advance.
-- 





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] oracle proxy authentication

2002-09-05 Thread Sonnek, Ryan

thanks for the quick reply!  i'll try and clarify my situation.

yes, this seems to be an EXTREMELY non standard request, and against a lot
of what i believe to be so great about J2EE, but trying to appease some very
difficult people.  

our current setup is that an application is deployed with an ldap security
domain, so when a user accesses a web page, they'll be prompted for a
username/password, and be logged in.  from there, calling a stateless
session bean to make the database connection and return certain results.
the SLSB is looking up a datasource with a configured url/username/password
to connect to the database.  since the connection is made through this
generic account, and records modified will show "generic user" as the audit
user instead of the logged in person.  is there any way to propogate the
security credentials that the user logged in with to that database
connection?

i've been reading about oracles ability to use a "proxy authentication" to
have one database connection but several individual sessions within that
connection.  when an insert/update/delete occurs, it happens within that
session, and the audit user will reflect that.

you lost me with the CallerIdentityLoginModule.  what does that do again
(how does jboss use it)??

we're currently using jboss 2.4.6 w/ tomcat 4.0.1 and planning on upgrading
sometime soon, so if this feature exists only in 3.0.x we'll definately be
moving up ASAP.

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803



-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] oracle proxy authentication


This seems like a rather non standard feature.  As I understand it from
your description you can use the same database connection under several
security identities?  What calls do you need to make to establish the
identity?

How do you plan to use this in a j2ee environment?

In jboss 3, it is already possible with any jdbc driver to get database
connections using a variety of security identities, by using an appropriate
login module.  We supply a CallerIdentityLoginModule that provides the
actual user/pw from application login to the database, and a
ConfiguredIdentityLoginModule that always supplies the same user/pw.  I
have some parts of a mapping login module that looks up in a db table the
db user/pw to use for each application user.

Please explain how you want to use this Oracle feature.

thanks
david jencks



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] PK Generator

2002-09-05 Thread Saroj Kumar

HI All,

Does JBOSS have one PK Generator?

Any pointers??

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss 4.0.0 alpha Transaction Problems

2002-09-05 Thread rickmacc

Hi,
   I'm using ZBoss 4.0.0 alpha to build some axis services. The problem I'm
having though is related to the EJB container. I have a stateless session bean
that throws an application exception (extending java.lang.Exception) and this
causes my transaction to roll back. I thought that only exceptions extending
RuntimeException would cause the transaction to roll back, no? Incidentally, I
don't see anything in the logs about the transaction being rolled back for
what it's worth.

Rick


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections and errors, oh my - more info

2002-09-05 Thread David Jencks



On 2002.09.05 13:10:59 -0400 Bruce Snyder wrote:
> This one time, at band camp, David Jencks said:
> 
> DJ>I really can't tell what you are doing from your description, and you
> DJ>appear at one point to imply that you have a BMT entity bean which is
> DJ>impossible.
> DJ>
> DJ>The spec is trying to lead you, in a stateless session bean, to code
> ut
> DJ>usage something like this:
> DJ>
> DJ>ut.begin();
> DJ>try {
> DJ>//do something
> DJ>} finally {
> DJ>ut.commit();//or rollback
> DJ>}
> DJ>
> DJ>Is this what you have?
> 
> I'm way too caught up deciphering this damn architecture that I've
> inherited.  Your example just made it through my thick skull! Must each
> operation be wrapped in a UT on the bean side?  If so, the client side
> calls would be similar to this:
> 
> 1) client call doWork() method of bean
> 
> rather than this: 
> 
> 1) call to bean to begin tx
> 2) do some work here
> 3) call to bean to commit tx
> 
> Correct? 

yes

> 
> If this is true, how can I expose UserTransactions out to a client so
> that developers have the ability to start, stop or rollback transactions?

1. (by far the best solution) rethink your architecture using an
appropriate layering so the client doesn't explicitly control transaction
boundaries.

2. If (1) is impossible due to time constraints, use a client-side user
transaction. IOW, look up the UserTransaction in the client.

david jencks
> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Jetty war conf/deployment issue in 3.2.0RC1

2002-09-05 Thread Barlow, Dustin

I am attempting to move from Tomcat to Jetty and have run into a
conf/deployment issue that I am unable to solve and was hoping for some
tips.

The ear file, which contains the war file, seems to deploy without any
errors on startup.  The jboss.web section of the jmx-console shows that the
contextPath is set to /ntarget and the resourceBase is pointing to the
temporary directory where Jetty exploded the war file into.  However when I
go to that contextPath in the browser, I get HTTP ERROR: 404 /ntarget not
found.  I checked the temporary directory, and all the web app files do
exist and Jetty is pointing to that directory for the contextPath.

Here is the output from the jmx-console jboss.web section:

jboss.web
Jetty=0,JBossWebApplicationContext=2,context=/ntarget 
Jetty=0,JBossWebApplicationContext=3,context=/ntargetqe 
Code=0 
Jetty=0 
Jetty=0,AJP13Listener=0 
Jetty=0,JBossWebApplicationContext=0,context=/jmx-console 
Jetty=0,NCSARequestLog=0 
Log=0 
Log=0,sink=0 
Jetty=0,SocketListener=0 
Jetty=0,JBossWebApplicationContext=1,context=/builders 
service=JBossWeb 

The jmx-console works just fine.  I also compared the settings for the
/jmx-console and /ntarget context paths in the jmx-console, and they are
pretty much identical other then the differences like contextPath and
resourceBase.

The exact same ear file works fine in both JBoss-2.4.4_Tomcat-3.2.3 and
jboss-3.0.1RC1_tomcat-4.0.4, but not in jboss-3.2.0RC1 (not sure the Jetty
version).  Is there a configuration difference for Tomcat and Jetty that I
could be missing on the JBoss side, or in the web.xml file?  

My application.xml file (which is bundled in the ear file containing the
war):




NTarget



NTarget.war
/ntarget


  


Any tips?

Dustin Barlow


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] oracle proxy authentication

2002-09-05 Thread David Jencks

This seems like a rather non standard feature.  As I understand it from
your description you can use the same database connection under several
security identities?  What calls do you need to make to establish the
identity?

How do you plan to use this in a j2ee environment?

In jboss 3, it is already possible with any jdbc driver to get database
connections using a variety of security identities, by using an appropriate
login module.  We supply a CallerIdentityLoginModule that provides the
actual user/pw from application login to the database, and a
ConfiguredIdentityLoginModule that always supplies the same user/pw.  I
have some parts of a mapping login module that looks up in a db table the
db user/pw to use for each application user.

Please explain how you want to use this Oracle feature.

thanks
david jencks

On 2002.09.05 12:51:59 -0400 "Sonnek, Ryan" wrote:
> has anyone used oracle proxy authentication from within jboss?  
> 
> it allows for the application server to connect to the database through a
> pooled connection, and multiple user sessions can connect with their
> authenticated identities so oracle can extract correct audit information.
>  
> 
> from what i've read, this is available only with oracle's 'thick' JDBC
> client or their 'OCI' drivers.  do i need to look into oracle's
> application
> server in order to get this functionality? i'd hate to use something
> other
> than jboss!!!  :)
> 
> Ryan J. Sonnek
> Brown Printing Company
> IT Programmer/Analyst
> (507) 835-0803
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Agent view in 3.0.2

2002-09-05 Thread Rama, Raman

I am having problems bringing up agent view in 3.0.2
(http://localhost:8080/jmx-console). The jsp compilation gives class not
found exception for some classes in javax.servlet package. Also, unlike
3.0.0, which had a tomcat-service.xml in deploy directory, 3.0.2 does not
have any jetty-service.xml. Do I need to create and deploy this file in
order to get jmx console working?

Thanks.


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] What is the default Transaction Attribute??

2002-09-05 Thread marius

On Thu, Sep 05, 2002 at 12:13:16PM -0400, Kim, Yong wrote:
> I think it's "Required".
Is someone sure about this?


> 
> Mitchell
> 
> -Original Message-
> From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] What is the default Transaction Attribute??
> 
> 
> Hi All,
> 
> We are reqrd. To declare TRANS-ATTRIBUTE for Beans in ejb-jar.xml like
> following.
> 
> 
>   
> Journal
> *
>   
>   Required
> 
> 
> What if I don't declare the   block for my
> JOURNAL bean. What kind of 
> TRANSACTION will be supported by the container? 
> 
> Is Default Value?? -
> 
> Supported
> 
> Because, I have seen that if bean is invoked under a Transaction even
> then there is no problem.
> 
> Please help me understand this.
> 
> TIA,
> Saroj
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
MVH
Marius Kotsbak
Boost communications AS


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections anderrors, oh my - more info

2002-09-05 Thread Bruce Snyder

This one time, at band camp, David Jencks said:

DJ>I really can't tell what you are doing from your description, and you
DJ>appear at one point to imply that you have a BMT entity bean which is
DJ>impossible.
DJ>
DJ>The spec is trying to lead you, in a stateless session bean, to code ut
DJ>usage something like this:
DJ>
DJ>ut.begin();
DJ>try {
DJ>//do something
DJ>} finally {
DJ>ut.commit();//or rollback
DJ>}
DJ>
DJ>Is this what you have?

I'm way too caught up deciphering this damn architecture that I've
inherited.  Your example just made it through my thick skull! Must each
operation be wrapped in a UT on the bean side?  If so, the client side
calls would be similar to this:

1) client call doWork() method of bean

rather than this: 

1) call to bean to begin tx
2) do some work here
3) call to bean to commit tx

Correct? 

If this is true, how can I expose UserTransactions out to a client so
that developers have the ability to start, stop or rollback transactions?

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Saw rolled back tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=mdpcad110773//4, BranchQual=] waiting for txLock

2002-09-05 Thread Saroj Kumar

Hi All,

I am trying to use "SEQUENCE BLOCK Primary KEY GENERATOR" as described
in Floyd's book. Jboss3.0 + ORACLE9i + win2k

I am getting this kind of weird error: "waiting for txLock"

22:16:53,139 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//6, BranchQual=] timed out. status=STATUS_ACTIVE

22:16:53,339 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//7, BranchQual=] timed out. status=STATUS_ACTIVE


22:26:24,531 ERROR [BeanLock] Thread[RMI TCP
Connection(5)-192.168.146.134,5,RMI Runtime]Saw rolled back
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=mdpcad110773//7,
BranchQual=] waiting for txLock



I am using a Session Bean which makes call to the entity bean to
get a Chunk of Keys from the DB.

Session Bean runs in a Required TX and EB run is RequiresNew
Mode to ensure that it is not a part of any Client
Transaction. Entity Bean is getting called but it is unable to
complete the TX. It just hangs there.








Sequence

getValueAfterIncrementingBy

RequiresNew




  SequenceSession

getNextSequenceNumber

Required






Any pointers???

Did anyone use it successfully??

TIA,
Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections anderrors, oh my - more info

2002-09-05 Thread Bruce Snyder

This one time, at band camp, David Jencks said:

DJ>I really can't tell what you are doing from your description, and you
DJ>appear at one point to imply that you have a BMT entity bean which is
DJ>impossible.
DJ>
DJ>The spec is trying to lead you, in a stateless session bean, to code ut
DJ>usage something like this:
DJ>
DJ>ut.begin();
DJ>try {
DJ>//do something
DJ>} finally {
DJ>ut.commit();//or rollback
DJ>}
DJ>
DJ>Is this what you have?

I'm using a BMT session bean to front classses composing a DAO pattern.
The client is a simple Java application. The BMT session bean exposes the
methods startSession(), cancelSession() and endSession(). These methods
encapsulate the begin, rollback, commit of the UT.  A UT is started by
a call from the client to the BMT session bean's startSession() which
fetches the UT from the SessionContext and called begin() on it. Here
is the relevant code:

client: 

service = ServiceBroker.getPlanLockService();
...
service.startSession();
// do some work
service.endSession();

bean: 

public void ejbCreate() throws CreateException
{
initConnection();
}
...
private void initConnection() 
{
Contextctx;
StringBuffer   sb;
DaoFactory factory;

if ( _dataSource == null && _jndiName != null ) 
{
try 
{
ctx = new InitialContext();
sb = new StringBuffer();
sb.append( "java:" );
sb.append( _jndiName );

_dataSource = ( DataSource ) ctx.lookup( sb.toString() );
factory = LtpDaoFactory.getDaoFactory( LtpDaoFactory.JDBC, 
_dataSource.getConnection() );
_dao = factory.getDao ( PlanLock.class );
}
catch (Exception e ) 
{ 
throw new EJBException( "Failed to initialize PlanLock Service!", e );
}
}
}
...
public void startSession() throws DaoException, RemoteException
{
try 
{
UserTransaction userTx = context.getUserTransaction();
userTx.begin();
} 
catch (Exception ex ) 
{
throw new DaoException("Error starting transaction: ",ex );
}
}

BTW, I inherited this design from someone else. I'm starting to think that it
should be ripped apart and made to be more lightweight. 

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i

2002-09-05 Thread Boris Tamarkin
Title: RE: CMP2 java.lang.Short mapping for Oracle 9i





Anthony,
It was a cast Exception..
Unfortunately I have to support existing code, so move to start support Oracle without changing
code is very painful.
I don't know if they fixed all bugs.
BTW, try debug version of jdbc driver(with suffix 'g').
At least You can see what the problem


Boris


From: "Anthony Geoghegan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: [JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i
Date: Thu, 5 Sep 2002 10:10:09 +0100
Reply-To: [EMAIL PROTECTED]


I had this problem too.  Luckily it's a new app and I didn't have existing
code to support.  I just changed all the fields to java.lang.Integer type.
That ojdbc14.jar has had a lot of bug fixes applied recently so I don't know
if it's the most stable or not.
It's a cast exception of some sort you get isn't it?


Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.
- Original Message -
From: "Boris Tamarkin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 10:53 PM
Subject: [JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i



> Thanks David,
> It as a driver issue.
>
> Boris
>
> From: David Ward <[EMAIL PROTECTED]>
> Organization: Distributed Object Technologies, Inc.
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i
> Reply-To: [EMAIL PROTECTED]
>
> Just curious if you've tried the 9.2.0.1.0 driver, "ojdbc14.jar"
> Oracle has stopped calling it classes12.zip/jar.  Not sure if the latest
> would work better for you or not...
>
> David
>
> --
>
> Boris Tamarkin wrote:
> > So java.lang.Short can't be mapped with CMP2 for Oracle?
> > It is strange.
> > I tried to replace jdbc-type with INTEGER, but it doesn't work as well.
> > I don't wont to change existing code: replace java.lang.Short type with
> > Integer, because it is already works with
> > mySQL and MSSQL databases  fine. We just need to add support to Oracle.
> > BTW, I have the Oracle 9i version of classes12.jar in lib directory
> >
> > Anyone knows how to resolve this issue with supporting java.lang.Short
> > in CMP2?
> > I have tried to search in forum archives without success.
> > Dan, may be You can help?
> > Thanks,
> > Boris
> >
> > From: "Saroj Kumar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Subject: RE: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i
> > Date: Wed, 4 Sep 2002 10:42:02 +0530
> > Organization: wipro
> > Reply-To: [EMAIL PROTECTED]
> >
> > Try INTEGER.
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of Boris
> > Tamarkin
> > Sent: Wednesday, September 04, 2002 3:44 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i
> >
> >
> >
> > What correct mapping for "java.lang.Short" should be for Oracle 9i in
> > standardjbosscmp-jdbc.xml file?
> > I have tried
> > java.lang.Short
> > NUMERIC
> > NUMBER(5)
> > also
> > java.lang.Short
> > SMALLINT
> > SMALLINT
> > also
> > java.lang.Short
> > NUMERIC
> > SMALLINT
> > also
> > java.lang.Short
> > SMALLINT
> > NUMBER(5)
> > and no success.
> > I got java.lang.ClassCastException in ejbCreate(..., java.lang.Short
> > arg, ).
> >
> > It happens when using CMP2 on JBoss3.0.0-tomcat4.0.3.
> > Also I tried both SMALLINT and Number(5) types for column in table in
> > Oracle 9i database that corresponds to Short type.
> >
> > with all combinations above.
> > Will appreciate help.
> > Thanks,
> >   Boris
>





[JBoss-user] oracle proxy authentication

2002-09-05 Thread Sonnek, Ryan

has anyone used oracle proxy authentication from within jboss?  

it allows for the application server to connect to the database through a
pooled connection, and multiple user sessions can connect with their
authenticated identities so oracle can extract correct audit information.  

from what i've read, this is available only with oracle's 'thick' JDBC
client or their 'OCI' drivers.  do i need to look into oracle's application
server in order to get this functionality? i'd hate to use something other
than jboss!!!  :)

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] What is the default Transaction Attribute??

2002-09-05 Thread Kim, Yong

I think it's "Required".

Mitchell

-Original Message-
From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] What is the default Transaction Attribute??


Hi All,

We are reqrd. To declare TRANS-ATTRIBUTE for Beans in ejb-jar.xml like
following.


  
Journal
*
  
  Required


What if I don't declare the   block for my
JOURNAL bean. What kind of 
TRANSACTION will be supported by the container? 

Is Default Value?? -

Supported

Because, I have seen that if bean is invoked under a Transaction even
then there is no problem.

Please help me understand this.

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Unable to deregister with TransactionManager

2002-09-05 Thread David Jencks

You are using the connection outside an explicit jta transaction.  if you
know this, you can ignore the message.  Perhaps I should remove it.  It's
designed to help people not do this:

Connection c = ds.getConnection();
UserTransaction ut = (look up ut)
ut.begin();//MUST BE DONE BEFORE CONNECTION IS OBTAINED TO ENROLL CX IN TX
c.do something();
ut.commit();connection is not enrolled, so has no effect
c.close();//you get warning

This statement order is ok in 3.x but not 2.x

david jencks


On 2002.09.05 04:35:31 -0400 song chen wrote:
> Hello,
>   i'm a new user to JBoss and this mail list. 
> 
>   In my programming, when try to read data from a database (oracle
> 8.1.6), using Jboss 2.4.4, i got such error at the server side:
> 
> [ERROR,XAConnectionFactory] Unable to deregister with TransactionManager
> java.lang.IllegalArgumentException: xaRes not enlisted
> 
> 
> 
>   Anyone can tell the reason?
> 
>   also, in other circumstances, like Weblogic, the code is OK.
> 
>   And more, is it true that one can't use commit() and rollback() in
> program?
> 
>   thanks in advance
> 
> song
> 
> 
> 
> 
> 
> 
> 
> 
> Hello,
>   i'm a new user to JBoss and this mail list. 
> 
>  
>   In my programming, when try to read data from a 
> database (oracle 8.1.6), using Jboss 2.4.4, i got such error at the
> server 
> side:
>  
> [ERROR,XAConnectionFactory] Unable to deregister with 
> TransactionManagerjava.lang.IllegalArgumentException: xaRes not 
> enlisted
> 
> 
>  
>   Anyone can tell the reason?
>  
>   also, in other circumstances, like Weblogic, the
> code 
> is OK.
>  
>   And more, is it true that one can't use commit()
> and 
> rollback() in program?
>  
>   thanks in advance
>  
> song
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] UserTransactions and database connections and errors, oh my - more info

2002-09-05 Thread David Jencks

I really can't tell what you are doing from your description, and you
appear at one point to imply that you have a BMT entity bean which is
impossible.

The spec is trying to lead you, in a stateless session bean, to code ut
usage something like this:

ut.begin();
try {
//do something
} finally {
ut.commit();//or rollback
}

Is this what you have?

thanks
david jencks

On 2002.09.05 10:54:59 -0400 Bruce Snyder wrote:
> Using JBoss 3.0.1 on RedHat 7.3, I have been stuck on the following
> error for a bit and it's driving me crazy:
> 
> Application error: BMT stateless bean PlanLockService should complete
> transactions before returning (ejb1.1 spec, 11.6.1)
> 
> This error occurs in an EJB that is doing BMP via classes that make up
> the DAO pattern with BMT via the UserTransaction interface. 
> 
> Here is the sequence of events I'm performing:  
> 
> 1) start UserTransaction
> 2) get connection
> 3) failure occurs here with above error
> 4) do some work
> 5) close connection
> 6) commit UserTransaction
> 
> I believe I'm following the necessary steps for mixing UserTransactions
> and database connections with JBoss. The fact that the app fails upon
> returning from getting a connection is very perplexing. 
> 
> The EJB 1.1 spec, section 11.6.1 says: 
> 
> "If a stateless session bean instance starts a transaction in a
> business method, it must commit the transaction before the business
> method returns."
> 
> What exactly does this statement imply by stating that a transaction
> must commit before the method returns?
> 
> I'm starting a UserTransaction by calling a method in the EJB.
> Then the following steps take place: 
> 
> a) EJB grabs a connection from the OracleDS via JBoss
> b) connection is passed to a factory
> c) connection is passed to another factory
> d) connection is passed to the DAO object via reflection
> e) DAO object returns to EJB
> f) call to grab connection completes
> g) the following exception occurs: 
> 
> java.rmi.RemoteException: Application error: BMT stateless bean
> PlanLockService should complete transactions before returning
> (ejb1.1 spec, 11.6.1)
> 
> at 
>org.jboss.ejb.plugins.AbstractTxInterceptorBMT.checkStatelessDone(AbstractTxInterceptorBMT.java:199)
> at 
>org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:148)
> at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
> at 
>org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
> at 
>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
> at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
> at 
>org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
> at org.jboss.ejb.Container.invoke(Container.java:711)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
> at java.lang.reflect.Method.invoke(Native Method) 
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
> 
> at sun.rmi.transport.Transport$1.run(Transport.java:152)
> at java.security.AccessController.doPrivileged(Native Method) 
> at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
> at 
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
> at java.lang.Thread.run(Thread.java:484)
> 
> All I've done from the client so far is make a call to the EJB to start
> the UserTransaction, yet the exception is occurring.
> 
> I certainly hope that someone, anyone can provide me some clarification
> on this problem. The last time I posted a question about UserTransactions
> I had to practically beg for assistance.
> 
> Any amount of help is truly appreciated. 
> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] What is the default Transaction Attribute??

2002-09-05 Thread Saroj Kumar

Hi All,

We are reqrd. To declare TRANS-ATTRIBUTE for Beans in ejb-jar.xml like
following.


  
Journal
*
  
  Required


What if I don't declare the   block for my
JOURNAL bean. What kind of 
TRANSACTION will be supported by the container? 

Is Default Value?? -

Supported

Because, I have seen that if bean is invoked under a Transaction even
then there is no problem.

Please help me understand this.

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Strange Problem

2002-09-05 Thread Saroj Kumar

Hi All,

I faced a strange problem just now. Jboss3.0 + win2k + ORACLE9i + SSB +
CMP EB + classes12.zip

I have got a Session Bean which makes a call to an CMP Entity Bean to
Update the record. I pass some java.lang.Double Values 
To the Entity Bean from Session Bean. In Session Bean, We convert
BigDecimal Values in Double. If I  check for null
And set the value like this:

java.math.BigDecimal obj = issue.getAvgDaysInComposition();
  if (obj != null)
 {
 local.setAvgDaysInComposition( new
Double(obj.doubleValue()));
  
 }

Then it works fine and ejbStore completed successfully.

But, if I code like this:

local.setAvgDaysInRapidEdit( new Double(
issue.getAvgDaysInRapidEdit().doubleValue() ) );

Then ejbStore() does not complete and it HANGS!!!
issue.getAvgDaysInRapidEdit() is null and calling 
issue.getAvgDaysInRapidEdit().doubleValue() does not throw any NULL
POINTER but it waits indefinitely.

ANOTHER ISSUE: On Some m/c, even the NULL checked code hangs.

Any idea???

TIA,
Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet

look in the jboss sources :
server/src/main/org/jboss/naming/NonSerializableFactory.java
it's described how to use it.


- Original Message -
From: "Herve Tchepannou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 11:07 AM
Subject: Re: [JBoss-user] EJB/MBean communication


> What's that? is there any doc available about NonSerializableFactory?
>
> Julien Viet wrote:
>
> >you could use maybe the NonSerializableFactory and bind your mbean into
it.
> >
> >- Original Message -
> >From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >To: "JBoss User Group" <[EMAIL PROTECTED]>
> >Sent: Thursday, September 05, 2002 10:31 AM
> >Subject: [JBoss-user] EJB/MBean communication
> >
> >
> >
> >
> >>What is the best and portable way to access a MBean from an EJB?
> >>
> >>I was wondering if I can lookup any of my custom MBean via JNDI from my
> >>EJB ? (it seems to be cleanest way).
> >>If not, how can I attach a MBean to the JNDI tree?
> >>
> >>
> >>
> >>---
> >>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>cell phone?  Get a new here for FREE!
> >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> >
> >___
> >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> >Yahoo! Mail : http://fr.mail.yahoo.com
> >
> >
> >---
> >This sf.net email is sponsored by: OSDN - Tired of that same old
> >cell phone?  Get a new here for FREE!
> >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
>
>
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Apache 1.3 and JBOSS 3.0.2 (w/tomcat or w/jetty)

2002-09-05 Thread Thomas T. Veldhouse

I have a few things running on Apache already, so I need to host my J2EE
sites through apache.  I am looking to find how to configure JBoss 3.0.2 and
either Tomcat or Jetty to run with Apache (1.3, not 2.0 -- I have built
mod_jk.so for Apache 1.3).  I am quite familiar with Tomcat, but I am new to
JBoss and Jetty.

Thanks in advance for any help you can give.

Tom Veldhouse



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

What's that? is there any doc available about NonSerializableFactory?

Julien Viet wrote:

>you could use maybe the NonSerializableFactory and bind your mbean into it.
>
>- Original Message - 
>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
>To: "JBoss User Group" <[EMAIL PROTECTED]>
>Sent: Thursday, September 05, 2002 10:31 AM
>Subject: [JBoss-user] EJB/MBean communication
>
>
>  
>
>>What is the best and portable way to access a MBean from an EJB?
>>
>>I was wondering if I can lookup any of my custom MBean via JNDI from my 
>>EJB ? (it seems to be cleanest way).
>>If not, how can I attach a MBean to the JNDI tree?
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] UserTransactions and database connections and errors, oh my - moreinfo

2002-09-05 Thread Bruce Snyder

Using JBoss 3.0.1 on RedHat 7.3, I have been stuck on the following
error for a bit and it's driving me crazy:

Application error: BMT stateless bean PlanLockService should complete
transactions before returning (ejb1.1 spec, 11.6.1)

This error occurs in an EJB that is doing BMP via classes that make up
the DAO pattern with BMT via the UserTransaction interface. 

Here is the sequence of events I'm performing:  

1) start UserTransaction
2) get connection
3) failure occurs here with above error
4) do some work
5) close connection
6) commit UserTransaction

I believe I'm following the necessary steps for mixing UserTransactions
and database connections with JBoss. The fact that the app fails upon
returning from getting a connection is very perplexing. 

The EJB 1.1 spec, section 11.6.1 says: 

"If a stateless session bean instance starts a transaction in a
business method, it must commit the transaction before the business
method returns."

What exactly does this statement imply by stating that a transaction
must commit before the method returns?

I'm starting a UserTransaction by calling a method in the EJB.
Then the following steps take place: 

a) EJB grabs a connection from the OracleDS via JBoss
b) connection is passed to a factory
c) connection is passed to another factory
d) connection is passed to the DAO object via reflection
e) DAO object returns to EJB
f) call to grab connection completes
g) the following exception occurs: 

java.rmi.RemoteException: Application error: BMT stateless bean
PlanLockService should complete transactions before returning (ejb1.1 spec, 
11.6.1)

at 
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.checkStatelessDone(AbstractTxInterceptorBMT.java:199)
at 
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:148)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
at org.jboss.ejb.Container.invoke(Container.java:711)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
at java.lang.reflect.Method.invoke(Native Method) 
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) 
at sun.rmi.transport.Transport$1.run(Transport.java:152)
at java.security.AccessController.doPrivileged(Native Method) 
at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
at java.lang.Thread.run(Thread.java:484)

All I've done from the client so far is make a call to the EJB to start
the UserTransaction, yet the exception is occurring.

I certainly hope that someone, anyone can provide me some clarification
on this problem. The last time I posted a question about UserTransactions
I had to practically beg for assistance.

Any amount of help is truly appreciated. 

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB/MBean communication

2002-09-05 Thread Julien Viet


you could use maybe the NonSerializableFactory and bind your mbean into it.

- Original Message - 
From: "Herve Tchepannou" <[EMAIL PROTECTED]>
To: "JBoss User Group" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 10:31 AM
Subject: [JBoss-user] EJB/MBean communication


> What is the best and portable way to access a MBean from an EJB?
> 
> I was wondering if I can lookup any of my custom MBean via JNDI from my 
> EJB ? (it seems to be cleanest way).
> If not, how can I attach a MBean to the JNDI tree?
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: Unexpected server shutdown on startup with MDB on jboss3.0.0

2002-09-05 Thread Eric Kaplan

I never resolved this issue.  Does anyone else have any ideas or has anyone
seen this before?

Regards

Eric

-Original Message-
From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 11:36 AM
To: Jboss-User
Subject: Unexpected server shutdown on startup with MDB on jboss3.0.0


Hi

We are having an issue on some (not all) of our machines that may be a
timing problem on startup.  Basically, in the middle of deploying the ear
file on startup, it gets to our one MDB and the server shuts down, with the
following messages:

2002-08-27 11:48:55,156 INFO  [org.jboss.ejb.EjbModule] Deploying
ejb/FeedHandler
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/StrategyGroup
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/PortfolioMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/PortfolioAllocation
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/Branch
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/MetaRule
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/UserPropertiesMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/AccessController
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/TreeMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/ValuationMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/MetaRuleTree
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/Authorization
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/RunTime
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/CurrencyMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/AssetMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/UserMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/User
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/UserTree
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/TradeMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/PortTreeMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/UserProperty
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/PortTree
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/TradeGroupMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/PortTreeTree
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/LookupMaster
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/MetaRuleAssociation
2002-08-27 11:50:14,546 WARN  [org.jboss.system.ServiceController] Ignoring
request to destroy non-existant service:
jboss.j2ee:service=EJB,jndiName=ejb/TradeGroup
2002-08-27 11:50:14,546 WARN  [org.jboss.

[JBoss-user] unsubscreibe

2002-09-05 Thread Meschescha ayalew-Kaasam

unsubscreibe
unsubscreibe
unsubscreibe
unsubscreibe
unsubscreibe
unsubscreibe
unsubscreibeMSN Photos is the easiest way to share and print your photos: Click Here


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJB/MBean communication

2002-09-05 Thread Herve Tchepannou

What is the best and portable way to access a MBean from an EJB?

I was wondering if I can lookup any of my custom MBean via JNDI from my 
EJB ? (it seems to be cleanest way).
If not, how can I attach a MBean to the JNDI tree?



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Isolation level for resource connection oracle

2002-09-05 Thread Anthony Geoghegan

Can anyone suggest the most sensible isolation level to use for jdbc locking
when making JDBC calls to an Oracle 8i database?
Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RES: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j

2002-09-05 Thread Jose Luis Peleteiro - Sistemas e Processos


I recive errors yet. Please, can you send-me?

Thank´s.

> -Mensagem original-
> De: David Jencks [mailto:[EMAIL PROTECTED]]
> Enviada em: terça-feira, 3 de setembro de 2002 12:18
> Para: [EMAIL PROTECTED]
> Assunto: Re: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j
> 
> 
> I would suggest using xdoclet from xdoclet cvs or the version 
> included in
> jboss cvs HEAD.  xdoclet is about to release 1.2 and would appreciate
> reports of problems.
> 
> thanks
> david jencks
> 
> On 2002.09.03 10:11:06 -0400 Jose Luis Peleteiro - Sistemas e 
> Processos
> wrote:
> > 
> > 
> > Can any one sendme this file. (jbosscmp-jdbc_xml.j)
> > Please!
> >  
> >  
> > FROM: Stephen Coy
> > DATE: 06/28/2002 07:17:41
> > SUBJECT: RE:  [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM
> > 
> > 
> >  
> > 
> > Unfortunately, xdoclet 1.1.2 has only limited support for 
> custom jboss 
> > 
> > queries for CMP 2.0.
> > 
> > 
> > 
> > "jboss:finder-query" generates JAWS (CMP 1.1) configuration data.
> > 
> > 
> > 
> > I'm including a modified jbosscmp-jdbc_xml.j file that we 
> are using, 
> > 
> > which has almost full support for "jboss:declared-sql" and 
> "jboss:query" 
> > 
> > tags, which generate  and  sections in your 
> > 
> > jbosscmp-jdbc.xml file.
> > 
> > 
> > 
> > You need to replace this file in your xdoclet.jar.
> > 
> > 
> > 
> > Here's a sample:
> > 
> > 
> > 
> >   @jboss:declared-sql
> > 
> > signature="Collection findInSequence()"
> > 
> > order="precedence"
> > 
> >   @jboss:query
> > 
> > signature="java.util.Collection 
> > 
> > 
> ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.U
> serLocal 
> > 
> > user)"
> > 
> > query="SELECT DISTINCT r.worklist FROM User AS u, IN
> > (u.userRoles) 
> > 
> > AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY 
> > 
> > r.worklist.precedence ASC"
> > 
> > strategy="on-find"
> > 
> > page-size="16"
> > 
> > 
> > 
> >   @jboss:query
> > 
> > signature="java.util.Set ejbSelectGeneric( java.lang.String
> > query, 
> > 
> > java.lang.Object[] args)"
> > 
> > dynamic="true"
> > 
> > 
> > 
> > For more detailed information on these JBoss constructs, 
> the USD10 CMP 
> > 
> > documentation is well worth it.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >> class=870230914-03092002>Can any one
> > sendme this file. 
> (jbosscmp-jdbc_xml.j) > face=Arial size=2> class=870230914-03092002>Please! > > face=Arial size=2>  > size=2> FROM: Stephen
> > CoyDATE: 06/28/2002 07:17:41SUBJECT: RE:  
> [JBoss-user] CMP
> > 2.0 / FINDER CREATION PROBLEM > size=2>  size=2>Unfortunately,
> > xdoclet 1.1.2 has only limited support for custom jboss 
> > queries for CMP 2.0.
> > 
> > "jboss:finder-query" generates JAWS (CMP 1.1) configuration data.
> > 
> > I'm including a modified jbosscmp-jdbc_xml.j 
> file that
> > we are using, 
> > which has almost full support for "jboss:declared-sql" and 
> "jboss:query" 
> > tags, which generate  and  
> sections in
> > your 
> > jbosscmp-jdbc.xml file.
> > 
> > You need to replace this file in your xdoclet.jar.
> > 
> > Here's a sample:
> > 
> >   @jboss:declared-sql
> > signature="Collection findInSequence()"
> > order="precedence"
> >   @jboss:query
> > signature="java.util.Collection 
> > 
> ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.U
> serLocal 
> > user)"
> > query="SELECT DISTINCT r.worklist FROM User AS u, IN
> > (u.userRoles) 
> > AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY 
> > r.worklist.precedence ASC"
> > strategy="on-find"
> > page-size="16"
> > 
> >   @jboss:query
> > signature="java.util.Set ejbSelectGeneric( java.lang.String
> > query, 
> > java.lang.Object[] args)"
> > dynamic="true"
> > 
> > For more detailed information on these JBoss constructs, 
> the USD10 CMP 
> > documentation is well worth 
> it.
> > 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss RMI and http tunneling

2002-09-05 Thread David Ward

Maybe you could try JProxy: http://www.jproxy.com/

David

--

Nicolai Bieber wrote:

> Thanks for the hint.
> 
> Unfortunaly this is not a option for a standard software company like us.
> With about 12 customer server installtions running throughout germany
> on 5 different OS / Database combinations I estimate a JBoss 2.2.2 to
> Jboss 3.0.x migration project would take about 20-30 developer days.
> 
> So the time for your suggestion would be 20-30 days + 5 min ;-)
> 
> Has anybody a solution to this problem for Jboss 2.2.2.
> 
> I can't imagine that nobody else has this problem:
> Does nobody uses java application clients ?
> 
> IMHO that way gives you a much better usability than web frontend
> (hotkeys, resizeing of table columns, sorting of table clients etc.),
> especially if you have to work all the day with the application.
> 
> 
> 
> Nicolai
> 
> 
>>FROM: boostcom.noDATE: 09/04/2002 07:00:07SUBJECT: RE:  [JBoss-user] JBoss
>>
> RMI and http tunneling You should instead download  > jboss 3.0.2, which has
> it included. I tried
> 
>>it, and got it to work after about 5 minutes :-), it is very easy, just
>>follow the instructions in changenotes.
>>
>> On Wed, Sep 04, 2002 at 03:20:31PM +0200, Nicolai Bieber wrote:
>>
>>>Hi there !
>>>
>>>Has anybody worked out how to use SUN's rmivervlethandler servlet
>>>to tunnel JBoss RMI invokations via http on port 80.
>>>
>>>The servlet is designed to transform http calls into RMI calls and
>>>the documentation says that the RMI mechanism provided by sun
>>>
> automatically
> 
>>>uses
>>>the http tunneling if a direct RMI connect is not posssible.
>>>It tries to access the adress /cgi-bin/java-rmi.cgi on the server via
>>>
> http.
> 
>>>This adress has to be connected to the servlet or the slower cgi version
>>>
> of
> 
>>>that servlet.
>>>
>>>I tried a lot,
>>>but the Jboss Client classes didn't try the http access to the servlet
>>>(to get the servlet itself up and running is not problem at all)
>>>
>>>There's a lot of stuff on the mailing list about the RMI ports JBoss
>>>
> uses
> 
>>>(1099,  and a optional one) but we can't tell every
>>>customerside-administrator
>>>to open these ports. Exspecially if you don't know the people that use
>>>
> your
> 
>>>software.
>>>
>>>Does anybody know about a solution ?
>>>
>>>Nicolai Bieber
>>>
>>>
>>>
>>>---
>>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>>cell phone?  Get a new here for FREE!
>>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>>___
>>>JBoss-user mailing list
>>>
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>
>>--
>>MVH
>>Marius Kotsbak
>>Boost communications AS
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: RE: [JBoss-user] JBoss RMI and http tunneling

2002-09-05 Thread marius

On Thu, Sep 05, 2002 at 12:03:21PM +0200, Nicolai Bieber wrote:
> Thanks for the hint.
> 
> Unfortunaly this is not a option for a standard software company like us.
> With about 12 customer server installtions running throughout germany
> on 5 different OS / Database combinations I estimate a JBoss 2.2.2 to
> Jboss 3.0.x migration project would take about 20-30 developer days.
Are you sure? We used jboss 2.x before, and the same jars that deployed on jboss 3.0, 
without any change! The only change was the DB-definition, which is trivial. I think 
the jboss.xml and jaws.xml can be used. Jboss detects that this is for 2.x, and 
intepretates it correctly :-)

> 
> So the time for your suggestion would be 20-30 days + 5 min ;-)
OK. Before it was included in jboss, I investigated a separate project, 
http://smartcc.sourceforge.net/, which I think is what is now integrated. I think you 
should be able to include this one by yourself. It requires just configuring of client 
and server, no recompiling of jboss. Alternatively backport what is in jboss now, or 
wait for some other to do that. Also the author of smartcc will probably give you some 
hints on installing it on 2.x.

> 
> Has anybody a solution to this problem for Jboss 2.2.2.
> 
> I can't imagine that nobody else has this problem:
> Does nobody uses java application clients ?
> 
> IMHO that way gives you a much better usability than web frontend
> (hotkeys, resizeing of table columns, sorting of table clients etc.),
> especially if you have to work all the day with the application.
Fully agree. We are therefore using a swing frontend successfully. Have had litte 
problems with firewalls, but we are soon changing to 3.0.2 with tunneling.

> 
> 
> 
> Nicolai
> 
> > FROM: boostcom.noDATE: 09/04/2002 07:00:07SUBJECT: RE:  [JBoss-user] JBoss
> RMI and http tunneling You should instead download  > jboss 3.0.2, which has
> it included. I tried
> > it, and got it to work after about 5 minutes :-), it is very easy, just
> > follow the instructions in changenotes.
> >
> >  On Wed, Sep 04, 2002 at 03:20:31PM +0200, Nicolai Bieber wrote:
> > > Hi there !
> > >
> > > Has anybody worked out how to use SUN's rmivervlethandler servlet
> > > to tunnel JBoss RMI invokations via http on port 80.
> > >>
> > > The servlet is designed to transform http calls into RMI calls and
> > > the documentation says that the RMI mechanism provided by sun
> automatically
> > > uses
> > > the http tunneling if a direct RMI connect is not posssible.
> > > It tries to access the adress /cgi-bin/java-rmi.cgi on the server via
> http.
> > > This adress has to be connected to the servlet or the slower cgi version
> of
> > > that servlet.
> > >
> > > I tried a lot,
> > > but the Jboss Client classes didn't try the http access to the servlet
> > > (to get the servlet itself up and running is not problem at all)
> > >
> > > There's a lot of stuff on the mailing list about the RMI ports JBoss
> uses
> > > (1099,  and a optional one) but we can't tell every
> > > customerside-administrator
> > > to open these ports. Exspecially if you don't know the people that use
> your
> > > software.
> > >
> > > Does anybody know about a solution ?
> > >
> > > Nicolai Bieber
> > >
> > >
> > >
> > > ---
> > > This sf.net email is sponsored by: OSDN - Tired of that same old
> > > cell phone?  Get a new here for FREE!
> > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > > ___
> > > JBoss-user mailing list
> > > 
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > --
> > MVH
> > Marius Kotsbak
> > Boost communications AS
> >
> >
> > ---
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > ___
> > JBoss-user mailing list
> > 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
MVH
Marius Kotsbak
Boost communications AS


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



SOLVED - Re: [JBoss-user] cocoon2 with jboss-tomcat errors

2002-09-05 Thread Bruce Scharlau

At 11:03 03/09/2002 +0100, you wrote:
>Hi all,
>
>thanks for the help with eclipse! Now, on to the next problem: cocoon2 
>with tomcat/catalina.
>
>Per some of the posts in the forum, jetty works with cocoon2, but doesn't 
>with the embedded tomcat configuration.
>
>I found a posting on the xml-cocoon-users list at 
>http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102257393428531&w=2 
>which goes through adding some hacks to the cvs for jboss-all/catalina 
>eliminate the jndi error, which otherwise catches you out.
>
>However, this doesn't seem to solve the problem, as now I get other 
>errors, which seem to indicate that the cocoon-2.0.3.jar is not being 
>found within the cocoon.war file. Here's part of the error I get when I 
>load cocoon:
>
>org.apache.cocoon.ProcessingException: Language Exception: 
>org.apache.cocoon.components.language.LanguageException: Error compiling 
>sitemap_xmap: Line 22, column 49: cannot access class Component; file 
>org\apache\avalon\framework\component\Component.class not found Line 23, 
>column 53: cannot access class Configurable; file 
>org\apache\avalon\framework\configuration\Configurable.class not found 
>Line 24, column 53: cannot access class Configuration; file 
>org\apache\avalon\framework\configuration\Configuration.class not found 
>Line 25, column 53: cannot access class ConfigurationException; file 
>org\apache\avalon\framework\configuration\ConfigurationException.class not 
>found Line 26, column 53: cannot access class DefaultConfiguration; file 
>org\apache\avalon\framework\configuration\DefaultConfiguration.class not 
>found Line 27, column 50: cannot access class Parameters; file 
>org\apache\avalon\framework\parameters\Parameters.class not found Line 29, 
>column 29: cannot access class Constants; file 
>org\apache\cocoon\Constants.class not found
>
>Any help appreciated.
>
>cheers,
>
>Bruce
>

I sorted out the problem and am posting this in case anyone else comes 
across the problem, and needs a solution.

1. Use the notes at 
http://www.jboss.org/forums/thread.jsp?nav=false&forum=61&thread=17813&start=0&msRange=15
 
to make the changes to the cvs for jboss-catalina. These will also lead you 
to the actual code patch (already submitted as a patch on sourceforge) at 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102257393428531&w=2  You 
don't need to reorganise the jar files, add items to your run.bat 
classpath, etc. Just make the cvs file changes and movde on to step two.

2. Download the source (you'll need the build.xml file later) for cocoon 
from http://xml.apache.org/cocoon/.

3. Create a new directory called META-INF under cocoon-2.0.3\src\webapp, 
and place this application.xml file in there.




cocoon2



cocoon.war
/cocoon





This file will be picked up and added to the build directory.

4. Follow the instructions to build cocoon. Note the changes to your jre 
lib directory. Make sure you build a copy with the webapp libs using the 
command:

build -Dinclude.webapp.libs=yes webapp

5. Now add this new target to the end of your cocoon/build.xml file (ie 
just before the  tag. It will copy the cocoon.war file to useful 
place and then add in the application.xml file when it builds the ear file.










6. Now build the ear with the command: build ear

7. Copy the ear file across to the /server/default/deploy directory, 
start jboss, watch for any problems in the console window, and then 
navigate to http://localhost:8080/cocoon where you should see the welcome 
screen.

Just for the record, I tried this on a jboss-tomcat distro without doing 
the patch to the cvs, and it throws up the jndi error mentioned in the forum.


cheers,

Bruce

Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] (no subject)

2002-09-05 Thread song chen

Hello,
  i'm a new user to JBoss and this mail list. 
 
  In my programming, when try to read data from a
database (oracle 8.1.6), using Jboss 2.4.4, i got such
error at the server side:
 
[ERROR,XAConnectionFactory] Unable to deregister with
TransactionManager
java.lang.IllegalArgumentException: xaRes not enlisted


 
  Anyone can tell the reason?
 
  also, in other circumstances, like Weblogic, the
code is OK.
 
  And more, is it true that one can't use commit() and
rollback() in program?
 
  thanks in advance
 
song

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: RE: [JBoss-user] JBoss RMI and http tunneling

2002-09-05 Thread Nicolai Bieber

Thanks for the hint.

Unfortunaly this is not a option for a standard software company like us.
With about 12 customer server installtions running throughout germany
on 5 different OS / Database combinations I estimate a JBoss 2.2.2 to
Jboss 3.0.x migration project would take about 20-30 developer days.

So the time for your suggestion would be 20-30 days + 5 min ;-)

Has anybody a solution to this problem for Jboss 2.2.2.

I can't imagine that nobody else has this problem:
Does nobody uses java application clients ?

IMHO that way gives you a much better usability than web frontend
(hotkeys, resizeing of table columns, sorting of table clients etc.),
especially if you have to work all the day with the application.



Nicolai

> FROM: boostcom.noDATE: 09/04/2002 07:00:07SUBJECT: RE:  [JBoss-user] JBoss
RMI and http tunneling You should instead download  > jboss 3.0.2, which has
it included. I tried
> it, and got it to work after about 5 minutes :-), it is very easy, just
> follow the instructions in changenotes.
>
>  On Wed, Sep 04, 2002 at 03:20:31PM +0200, Nicolai Bieber wrote:
> > Hi there !
> >
> > Has anybody worked out how to use SUN's rmivervlethandler servlet
> > to tunnel JBoss RMI invokations via http on port 80.
> >>
> > The servlet is designed to transform http calls into RMI calls and
> > the documentation says that the RMI mechanism provided by sun
automatically
> > uses
> > the http tunneling if a direct RMI connect is not posssible.
> > It tries to access the adress /cgi-bin/java-rmi.cgi on the server via
http.
> > This adress has to be connected to the servlet or the slower cgi version
of
> > that servlet.
> >
> > I tried a lot,
> > but the Jboss Client classes didn't try the http access to the servlet
> > (to get the servlet itself up and running is not problem at all)
> >
> > There's a lot of stuff on the mailing list about the RMI ports JBoss
uses
> > (1099,  and a optional one) but we can't tell every
> > customerside-administrator
> > to open these ports. Exspecially if you don't know the people that use
your
> > software.
> >
> > Does anybody know about a solution ?
> >
> > Nicolai Bieber
> >
> >
> >
> > ---
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > ___
> > JBoss-user mailing list
> > 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
> --
> MVH
> Marius Kotsbak
> Boost communications AS
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> 
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Interest sample error

2002-09-05 Thread rahul ganjoo


jboss-common.jar
Rishikesh Tembe wrote:
Hello,
this is the error I get when I try to run the Interest sample
application. Where can  I find the missing class? And what exactly
is
it's function?
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/logging/Logger
 [java] at
 org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:25)
 [java] at java.lang.Class.forName0(Native
Method)
 [java] at java.lang.Class.forName(Class.java:130)
 [java] at
 org.jboss.invocation.MarshalledValueOutputStream.class$(MarshalledValueOutputStream.java:26)
 [java] at
 org.jboss.invocation.MarshalledValueOutputStream.(MarshalledValueOutputStream.java:28)
 [java] at
 org.jboss.invocation.MarshalledValue.(MarshalledValue.java:47)
 [java] at
 org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:317)
 [java] at
 java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1262)
 [java] at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1243)
 [java] at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
 [java] at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
 [java] at
 sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:265)
 [java] at
 sun.rmi.server.UnicastRef.invoke(UnicastRef.java:124)
 [java] at
 org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
 Source)
 [java] at
 org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
 [java] at
 org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
 [java] at
 org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
 [java] at
 org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
 [java] at
 org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
 [java] at
 org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
 [java] at $Proxy0.create(Unknown
Source)
 [java] at
 org.jboss.docs.interest.InterestClient.main(InterestClient.java:39)
thanks in advance,
Rishi.
--
http://fastmail.fm - 100% lightning
---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] J2EE Manual

2002-09-05 Thread Geer, Benjamin

Sobkowiak Krzysztof wrote:
> Can I find anywhere JSP (Servlet, EJB) manual?

http://java.sun.com/j2ee/docs.html

Benjamin


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Interest sample error

2002-09-05 Thread Rishikesh Tembe

Hello,

this is the error I get when I try to run the Interest sample
application. Where can  I find the missing class? And what exactly is
it's function?

Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/logging/Logger 
 [java] at
 
org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:25)
 [java] at java.lang.Class.forName0(Native Method)
 [java] at java.lang.Class.forName(Class.java:130)
 [java] at
 
org.jboss.invocation.MarshalledValueOutputStream.class$(MarshalledValueOutputStream.java:26)
 [java] at
 
org.jboss.invocation.MarshalledValueOutputStream.(MarshalledValueOutputStream.java:28)
 [java] at
 org.jboss.invocation.MarshalledValue.(MarshalledValue.java:47)
 [java] at
 
org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:317)
 [java] at
 java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1262)
 [java] at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1243)
 [java] at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
 [java] at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
 [java] at
 sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:265)
 [java] at
 sun.rmi.server.UnicastRef.invoke(UnicastRef.java:124)
 [java] at
 org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
 Source)
 [java] at
 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
 [java] at
 org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
 [java] at
 org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
 [java] at
 org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
 [java] at
 org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
 [java] at
 org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
 [java] at $Proxy0.create(Unknown Source)
 [java] at
 org.jboss.docs.interest.InterestClient.main(InterestClient.java:39)

thanks in advance,
Rishi.

-- 
http://fastmail.fm - 100% lightning


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] bean not bound in JNDI

2002-09-05 Thread Rishikesh Tembe

Hello,

I am trying to run a "Hello World" application.
The bean gets deployed successfully on the server, but when I try to
run the client I get the foll. error. (I have included the jboss.xml
file to indicate the JNDI mapping.)
Any ideas about what might be the problem?

output
---
Got Initial Context
javax.naming.NameNotFoundException: Hello not bound
at
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
at

sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.acme.HelloWorld.main(HelloWorld.java:18)
---

thanks,
Rishi.
-- 
http://fastmail.fm - the way email *should* be


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i

2002-09-05 Thread Anthony Geoghegan

I had this problem too.  Luckily it's a new app and I didn't have existing
code to support.  I just changed all the fields to java.lang.Integer type.
That ojdbc14.jar has had a lot of bug fixes applied recently so I don't know
if it's the most stable or not.
It's a cast exception of some sort you get isn't it?

Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.
- Original Message -
From: "Boris Tamarkin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 10:53 PM
Subject: [JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i


> Thanks David,
> It as a driver issue.
>
> Boris
>
> From: David Ward <[EMAIL PROTECTED]>
> Organization: Distributed Object Technologies, Inc.
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] RE: CMP2 java.lang.Short mapping for Oracle 9i
> Reply-To: [EMAIL PROTECTED]
>
> Just curious if you've tried the 9.2.0.1.0 driver, "ojdbc14.jar"
> Oracle has stopped calling it classes12.zip/jar.  Not sure if the latest
> would work better for you or not...
>
> David
>
> --
>
> Boris Tamarkin wrote:
> > So java.lang.Short can't be mapped with CMP2 for Oracle?
> > It is strange.
> > I tried to replace jdbc-type with INTEGER, but it doesn't work as well.
> > I don't wont to change existing code: replace java.lang.Short type with
> > Integer, because it is already works with
> > mySQL and MSSQL databases  fine. We just need to add support to Oracle.
> > BTW, I have the Oracle 9i version of classes12.jar in lib directory
> >
> > Anyone knows how to resolve this issue with supporting java.lang.Short
> > in CMP2?
> > I have tried to search in forum archives without success.
> > Dan, may be You can help?
> > Thanks,
> > Boris
> >
> > From: "Saroj Kumar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Subject: RE: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i
> > Date: Wed, 4 Sep 2002 10:42:02 +0530
> > Organization: wipro
> > Reply-To: [EMAIL PROTECTED]
> >
> > Try INTEGER.
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of Boris
> > Tamarkin
> > Sent: Wednesday, September 04, 2002 3:44 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i
> >
> >
> >
> > What correct mapping for "java.lang.Short" should be for Oracle 9i in
> > standardjbosscmp-jdbc.xml file?
> > I have tried
> > java.lang.Short
> > NUMERIC
> > NUMBER(5)
> > also
> > java.lang.Short
> > SMALLINT
> > SMALLINT
> > also
> > java.lang.Short
> > NUMERIC
> > SMALLINT
> > also
> > java.lang.Short
> > SMALLINT
> > NUMBER(5)
> > and no success.
> > I got java.lang.ClassCastException in ejbCreate(..., java.lang.Short
> > arg, ).
> >
> > It happens when using CMP2 on JBoss3.0.0-tomcat4.0.3.
> > Also I tried both SMALLINT and Number(5) types for column in table in
> > Oracle 9i database that corresponds to Short type.
> >
> > with all combinations above.
> > Will appreciate help.
> > Thanks,
> >   Boris
>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] J2EE Manual

2002-09-05 Thread Sobkowiak Krzysztof

Hallo

Can I find anywhere JSP (Servlet, EJB) manual?

K. Sobkowiak



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Unable to deregister with TransactionManager

2002-09-05 Thread song chen



Hello,
  i'm a new user to JBoss and this mail list. 

 
  In my programming, when try to read data from a 
database (oracle 8.1.6), using Jboss 2.4.4, i got such error at the server 
side:
 
[ERROR,XAConnectionFactory] Unable to deregister with 
TransactionManagerjava.lang.IllegalArgumentException: xaRes not 
enlisted


 
  Anyone can tell the reason?
 
  also, in other circumstances, like Weblogic, the code 
is OK.
 
  And more, is it true that one can't use commit() and 
rollback() in program?
 
  thanks in advance
 
song