Re: [JBoss-user] Filtering JMS Messages

2001-04-26 Thread Peter Antman

On 26 Apr, Michael Hustler wrote:
> I have read in a different thread of 3 ways to create temporary Topics.  2
> of these are non-portable and the 3rd one is limited such that the message
> consumer must be created by the topic creator or something like that.
> 
> I am looking for a way to reduce the total potential message flow in the
> system by filtering the message delivery.  My Message Consumers will
> typically be able to specify information used to reduce the number of
> messages that are delivered to them:
>   - publisher identity
>   - finer granularity of message type (determined at runtime)
>   - attribute values
> 
> I want to be able to determine this filtering at runtime instead of in the
> deployment descriptor.

For MDB:s this is not possible, and will not be possible of the final
EJB2.0 spec is not changed.

You will have to manage that outside the J2EE environmen, in an MBean
for example.

//Peter
> 
> I have been trying to read-up on "MessageSelector", but I can't find any
> documentation on how to apply this in an J2EE environment.
> 
> Can anyone guide me in the right direction?
> Thanks,
> -mike.
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Jobba hos oss: http://www.tim.se/weblab

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



Re: [JBoss-user] MBean access via JNDI - How to?

2001-04-26 Thread David Jencks

Hi,
Out of curiousity, what kind of thing does your mbean do? How is it
appropriate for an ejb to be controlling it?

Waiting for the expansion of my horizons,
david jencks

On 2001.04.26 15:23:21 -0400 "Coates, David" wrote:
> I have a custom MBean that adds a service to my JBoss container.  Now I
> want
> to be able to control that MBean/service from an EJB.  For example send
> it
> start(), stop(), restart(), or getStatus() messages.  My basic goal is to
> be
> able to provide a web interface for my users so that they can monitor the
> service that the MBean provides, as well as shut it down, restart it,
> etc...
> 
> I see that the documentation says that the best way to make an MBean
> available to your EJBs is to make it available via JNDI.  What is the
> best
> way to do this?
> 
> Obviously, I need the EJBs to interact with the original instance of my
> MBean and not a copy of it recreated via serialization.  So is it
> possible
> to use javax.naming.Reference and just bind that to the JNDI tree, or do
> I
> have to set up a RMI registry and bind an entire registry to JBoss's
> existing JNDI directory, or what?
> 
> I'm using jboss-2.0-FINAL bundled with Tomcat, running on a Win NT box.
> 
>  
> David Coates
> The Boeing Company
> Mission Support Data Systems, International Space Station
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] EJB Question

2001-04-26 Thread David Jencks

Hi,

>From a practical standpoint, usually entity beans have 'individual field'
data access methods, and usually when you have a business process step,
more than one field is affected.  To get all the modifications in one
transaction without jumping through external transaction control hoops and
obviating the main reason you got an app server in the first place, put a
method that does all the changes at once in a session bean.  Automatically
( unless you mess with the transaction attributes of the methods)
everything is in one transaction.

>From an architectural standpoint, the entity beans pretty much represent a
data access layer, session beans expose a business process interface, the
flow control outside the ejb container a presentation manager, and what
actually makes the ui such as jsps a presentation layer.  Mixing up any of
these layers, such as exposing the data access interface to the
presentation manager layer, means _much_ more difficulty when it comes time
to extend or replace a layer.

Hope this helps

david jencks

On 2001.04.26 16:17:56 -0400 Michael Hustler wrote:
> I have a general (and likely simple) question about EJB's - session beans
> in
> particular.
> 
> What are the advantages of a stateless session bean over a non EJB helper
> class provided to clients.
> 
> Thanks,
> -mike.
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Are readonly beans/transactions possible?

2001-04-26 Thread David Jencks

Hi,

I have several comments

1.  Firebird and Interbase have default snapshot transaction isolation. 
This is almost serializable.  All reads are indeed within a transaction (as
correct transactional semantics require -- if you think about it for a
minute, read committed is just plain broken as far as logical consistency).
 You leave out a lot of details such as how much work is in one
transaction, it is hard to know just what is going on.  You might try using
the interbase connection methods get/setLockResolution to make sure lock
contention is waiting rather than immediately returning an exception, and
for this presumably "info" request you might try setting the transaction
isolation level lower, again with connection properties.  If you are using
the non JCA minerva pools, I believe you can set these in the properties of
the XADataSourceImpl, in the same section as the user name and password. 
(I'm not 100% sure, its been a while).  I think you can set them in the

 section if you are using the JCA with for example BlackBox adapter.


2. Even if you fix this, you probably have 2 design problems if you are
calling findAll on a bean with any number of instances.  If you are sending
the data out of the container, you don't want to hold anything in a
transaction while a slow human looks at it, so there's no particular reason
to go to all the trouble of loading beans for all those rows that aren't
going to change.  Most authors I have read ( such as Richard Monson-Hefael)
suggest using a query from a stateless session bean, and just making a
collection or some text or xml to get the viewable data out. Then when the
user decides what to do, you load just the beans they actually need.  I
don't find this terribly elegant, but you really don't want to keep
involving entire tables in transactions when nothing is changing in most of
it.  There is also a user interface question, if there are more than say 10
rows in this table, why are you overwhelming the user with data?


So I've made a lot of assumptions here about what you are trying to do, and
made a couple of suggestions.  If you are trying to do something else,
please say so.

Thanks
david jencks
On 2001.04.26 16:32:17 -0400 Sven Van Caekenberghe wrote:
> Hi all you jboss/ejb gurus,
> 
> While stress-testing an application using jboss we encountered some 
> problems. We're not sure whether we did something wrong in the ejb 
> development or in the deployment or what. We think we need at least some 
> help in how to do 'readonly beans/transactions'.
> 
> Problem description:
> 
> System: jboss 2.2.x, interbase 6.x, jdk 1.3, linux mandrake 7.2
> Server code: session bean facades working with multiple entity beans 
> (some with subobjects)
> Deployment: container managed persistence and transactions, requied 
> transactions, default commit option A
> Client code: swing gui clients, junit tests clients
> 
> Problem: Running more than one client we get locking-waiting, lock 
> contention, but sometimes also failed transactions. The thing is that 
> you would expect these problems when trying to modify the same object, 
> but it also seems to happen when reading data from the same object 
> (which of course happens a lot). It seems that even a call like 
> PersonData[] getAllPersons() on a session bean (returning serializable 
> copies of entity beans) needs full exclusive read/write locks on all 
> objects involved in the transaction, even if we are just reading data. 
> As we see it, such behavior will never scale.
> 
> Question: How do you do readonly beans or access beans in readonly 
> transactions, either in ejb or in jboss? This must be a common 
> situation. I hope the answer is not to avoid using entity beans for 
> readonly data access and to access the database/datasource directly (we 
> like cmp too much to let it go).
> 
> All help is greatly appreciated!
> 
> Sven
> 
> ---
> Sven Van Caekenberghe - mailto:[EMAIL PROTECTED]
> Beta Nine - software engineering - http://www.beta9.be
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Getting a database connection using the jBoss connection pool

2001-04-26 Thread David Jencks

Hi,

Driver manager will only get you unpooled connections.

The best solution would probably be JCA resource adapters, but I doubt many
other app servers support them yet.

I think you ought to be able to bind a connection pool such as Minerva into
any jndi system in any app server, and access it as a datasource as does
jboss. The inside the ejb code ought to be app server independent.  How you
would bind it is an app server specific question, and is going to be app
server dependent.

Thanks
david jencks

On 2001.04.26 18:58:37 -0400 Jennifer Labit wrote:
> All,
> 
> I need to be able to connect to my connection pool using something like
> this:
> 
> DriverManager.getConnection("jdbc:xxx:yyy:MyPoolName")
> ...
> 
> What is the jdbc connection url that I would use to do that with jBoss?
> 
> I know the opinions on this list are that this isn't the ideal way to do
> it,
> however, in this situation the database connection code needs to be
> appserver independent and this is the best way to achieve that goal.
> 
> Thank you for your help.
> 
> Jennifer
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Getting a database connection using the jBoss connection pool

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 10:23:11PM -0500, danch wrote:
> Jennifer Labit wrote:
> 
> > All,
> > 
> > I need to be able to connect to my connection pool using something like
> > this:
> > 
> > DriverManager.getConnection("jdbc:xxx:yyy:MyPoolName")
> > ...
> > 
> > What is the jdbc connection url that I would use to do that with jBoss?
> 
> DriverManager won't give you a connection from a pool. It will create a 
> new connection every time you call getConnection.

If my guess is correct, this is another example of "WebLogic poisoning".

Before WLS had DataSources, the way to use the connection pools was to use
a special JDBC driver.  I seem to recall seeing something similar in Minerva.

Toby.

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



Re: [JBoss-user] Get Database connection from Jndi

2001-04-26 Thread Guy Rouillier

The minerva source is in the jbosscx component, which can be downloaded from
the JBoss site.  Look in jboss.jcml for some examples of how to use it.  You
should be able to just instantiate XAPoolDataSource and then start with a
getConnection().  (I haven't done this, so you'll have to work with it a
little bit.  You can also search the tomcat archives for some suggestions on
database connection pools other than jboss.

- Original Message -
From: "Russell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 8:50 PM
Subject: Re: [JBoss-user] Get Database connection from Jndi


> Thank Guy.
>
>   I have download open source DBDatabaseBroker which have connection
> pooling yesterday.
>
>   BTW , you have stated that JBoss have connection pooling called
> minerva.
>   How to setup MINERVA and call it ??
>
>   Thanks .
>
> Guy Rouillier wrote:
> >
> > If you read the javadocs for javax.sql, you'll see that all the
interfaces
> > there (except the event classes for some odd reason) are abstract.  So
> > javax.sql doesn't provide a connection pooling ** implementation ** - it
> > defines only an interface.
> >
> > The pooling implementation shipped with JBoss is called minerva.  You
can
> > use this outside of JBoss (uses the JBoss hierarchy, so you will need
the
> > JBoss classes, but you won't need JBoss running.)  Also, there are
several
> > open source database connection pool libraries available if you can't
get
> > minerva to work for you.
> >
> > - Original Message -
> > From: "Russell" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 26, 2001 2:22 AM
> > Subject: Re: [JBoss-user] Get Database connection from Jndi
> >
> > >
> > > Thanks Guy for your info.
> > >
> > >I know this out of scope  I would like to create connection
pool
> > > in my servlet.
> > >The new jdbc2.0 have new classes javax.sql.* which can create
> > > connection pooling.
> > >
> > >Do you know how to do it ? I am using postgresql7.0.1 database.
> > >
> > >   Thanks
> > >
> > > Guy Rouillier wrote:
> > > >
> > > > Assuming when you say "outside of JBoss" you mean in a different
JVM,
> > no.
> > > >
> > > > - Original Message -
> > > > From: "Russell" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, April 26, 2001 12:30 AM
> > > > Subject: Re: [JBoss-user] Get Database connection from Jndi
> > > >
> > > > > Hi Guy ,
> > > > >
> > > > >   I am trying to access dbconnection from jboss connection pool
> > outside
> > > > > of
> > > > >   JBoss.
> > > > >
> > > > >   Can it be done ??
> > > > >
> > > > >   Thanks
> > > > >
> > > > >
> > > > > Guy Rouillier wrote:
> > > > > >
> > > > > > What do you mean by "Can we accessed jndi that binding in jboss
> > outside
> > > > ejb
> > > > > > bean ??"  There have been numerous discussions on this list over
the
> > > > last
> > > > > > two weeks concerning the use of a DB connection from a JBoss
> > connection
> > > > pool
> > > > > > outside of JBoss (can't be done.)  But your message sounds like
you
> > are
> > > > > > doing something else (in jboss outside ejb).  Explain what you
are
> > > > trying to
> > > > > > do.
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Russell" <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Wednesday, April 25, 2001 10:09 PM
> > > > > > Subject: [JBoss-user] Get Database connection from Jndi
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > >   Hi all ,
> > > > > > >
> > > > > > >I am using RedHat6.1 , jdk1.3 and jboss2.1.
> > > > > > >Recently i have been trying to access database connection
from
> > > > > > > binding datasource in jboss.
> > > > > > >The error is "NamingNotFoundException error"
> > > > > > >
> > > > > > >Can we accessed jndi that binding in jboss outside ejb bean
??
> > > > Thanks
> > > > > > > wt
> > > > > > >
> > > > > > >below is my code :
> > > > > > >
> > > > > > >public static void main(String [] args){
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > >   Properties props = new Properties();
> > > > > > >   props.put(Context.INITIAL_CONTEXT_FACTORY,
> > > > > > > "org.jnp.interfaces.NamingContextFactory");
> > > > > > >   props.put(Context.PROVIDER_URL, "localhost:1099");
> > > > > > >   Context ctx = new InitialContext();
> > > > > > >
> > > > > > >   ds =
> > (DataSource)ctx.lookup("java:comp/env/jdbc/PostgresDS");
> > > > > > >  }
> > > > > > >  catch(Exception e){}
> > > > > > >
> > > > > > > }
> > > > > > >
> > > > > > > ___
> > > > > > > JBoss-user mailing list
> > > > > > > [EMAIL PROTECTED]
> > > > > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > > > > >
> > > > > >
> > > > > > ___
> > > > > > JBoss-user mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > > http://lists.sourceforge.net/lists/listinfo/jboss-us

RE: [JBoss-user] Filtering JMS Messages

2001-04-26 Thread Tim McCune

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yeah, because queues and topics are so non-dynamic, it seems to me
that using a messageSelector is really the only way to get much
practical use out of JMS.  It's very non-OO, but it's working for me.
 Check out
http://java.sun.com/j2ee/j2sdkee/techdocs/api/javax/jms/Message.html
for details on the syntax of the messageSelector.  Let me know if I
can help you out.

> -Original Message-
> From: Michael Hustler [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 3:25 PM
> To: Jboss (E-mail)
> Subject: [JBoss-user] Filtering JMS Messages
> 
> 
> I have read in a different thread of 3 ways to create 
> temporary Topics.  2
> of these are non-portable and the 3rd one is limited such 
> that the message
> consumer must be created by the topic creator or something like
> that.  
> 
> I am looking for a way to reduce the total potential message 
> flow in the
> system by filtering the message delivery.  My Message Consumers
> will typically be able to specify information used to reduce the
> number of messages that are delivered to them:
>   - publisher identity
>   - finer granularity of message type (determined at runtime)
>   - attribute values
> 
> I want to be able to determine this filtering at runtime 
> instead of in the
> deployment descriptor.
> 
> I have been trying to read-up on "MessageSelector", but I 
> can't find any
> documentation on how to apply this in an J2EE environment.
> 
> Can anyone guide me in the right direction?
> Thanks,
> -mike.
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use 

iQA/AwUBOujgadUPOr8a7vy5EQJZ/wCfc41BfYn2AcW8pmyjfF6p3otH1PgAnR0K
ZYiI9SLmsUSftpj9hMM0T8cv
=7unx
-END PGP SIGNATURE-

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



Re: [JBoss-user] Getting a database connection using the jBoss connection pool

2001-04-26 Thread danch

Jennifer Labit wrote:

> All,
> 
> I need to be able to connect to my connection pool using something like
> this:
> 
> DriverManager.getConnection("jdbc:xxx:yyy:MyPoolName")
> ...
> 
> What is the jdbc connection url that I would use to do that with jBoss?

DriverManager won't give you a connection from a pool. It will create a 
new connection every time you call getConnection.


> 
> I know the opinions on this list are that this isn't the ideal way to do it,
> however, in this situation the database connection code needs to be
> appserver independent and this is the best way to achieve that goal.

No it isn't. The _standard_ way to do this in an EJB is to do a JNDI 
lookup for a name that looks like "java:comp/env/jdbc/MyPoolName". This 
is portable across application servers because the spec says that it has 
to work.

-danch


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



[JBoss-user] Still can't find connection pool!

2001-04-26 Thread Roman Brouk

Was anyone able to find their connection  pool (datasource)?

any help will be appreciated.

OK.  i am using the following in java:
try{
InitialContext jndiContext = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)
jndiContext.lookup("java:/mySQLDS");
}catch(Exception ex){
System.out.println("Looking for DataSource: " +
ex.getMessage());
}

This is what i am getting with JBoss starts up:

[mySQLDS] Starting [mySQLDS]
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl created new
Connection (org.gjt.mm.mysql.jdbc2.Connection) with XAResource
org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl and XAConnection
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl. [mySQLDS] Pool
mySQLDS created a new object:
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@11ae6da [mySQLDS] XA
Connection pool mySQLDS bound to java:/mySQLDS [mySQLDS] No transaction
right now. [mySQLDS] Pool mySQLDS [1/1/60] gave out pooled object:
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@11ae6da [mySQLDS]
Pool mySQLDS [0/1/60] returned object
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@11ae6da to the pool.
[mySQLDS] Started


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



[JBoss-user] Filtering JMS Messages

2001-04-26 Thread Michael Hustler

I have read in a different thread of 3 ways to create temporary Topics.  2
of these are non-portable and the 3rd one is limited such that the message
consumer must be created by the topic creator or something like that.

I am looking for a way to reduce the total potential message flow in the
system by filtering the message delivery.  My Message Consumers will
typically be able to specify information used to reduce the number of
messages that are delivered to them:
- publisher identity
- finer granularity of message type (determined at runtime)
- attribute values

I want to be able to determine this filtering at runtime instead of in the
deployment descriptor.

I have been trying to read-up on "MessageSelector", but I can't find any
documentation on how to apply this in an J2EE environment.

Can anyone guide me in the right direction?
Thanks,
-mike.


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



[JBoss-user] Joins - CMP Entity Beans - BUG????

2001-04-26 Thread Vinay Menon

Hi,
   Following the example provided in the online documentation I've tried 
getting the join working across 2 tables.

The table structures are

Table A
Col1,Col2,Col3

Table B
Col1,Col2,Col4

Col1 and Col2 form the primary key for both the tables.

The finder definition is

  
findForXXByYYZZ
,B
   WHERE B.Col1 = A.Col1
   AND B.Col2= A.Col2
   AND A.Col2= {0}
   AND A.Col1 = {1}


The sql that I'd wanted the finder to produce was

SELECT A.Col1, A.Col2
FROM  A,B
WHERE B.Col1 =  A.Col1
AND B.Col2=  A.Col2
AND A.Col2= {0}
AND A.Col1 = {1}

   The sql produced, however, seems to be

SELECT A.Col1, Col2
FROM  A,B
WHERE B.Col1 =  A.Col1
AND B.Col2 =  A.Col2
AND A.Col2= {0}
AND A.Col1 = {1}

Now Col2 is an ambiguous column and the query, obviously would fail.

Has anyone come across this and found a work around? Is anyone on the JBoss 
Developers list working towards fixing this?

Please do let me know

Kind Regards

Vinay Menon


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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



[JBoss-user] Unable to start jboss 2.2 on NT

2001-04-26 Thread Amit Banerji




I am getting the sealing violation error (see below). I have 
tried clearing the classpath by setting it to nothing. And still, JBOSS won't 
start. Any help will be appreciated.
 
Thanks,
 
-Amit Banerji
 
 
 
[Info] Java version: 1.3.0,Sun Microsystems Inc.[Info] 
Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.[Info] 
System: Windows NT 4.0,x86[Shutdown] Shutdown hook added[Service 
Control] Registered with server[Default] java.lang.SecurityException: 
sealing violation[Default]   at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:234)[Default]   
at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56)[Default]   
at 
java.net.URLClassLoader$1.run(URLClassLoader.java:195)[Default]   
at java.security.AccessController.doPrivileged(Native 
Method)[Default]   at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)[Default]   
at 
java.lang.ClassLoader.loadClass(ClassLoader.java:297)[Default]   
at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)[Default]   
at 
java.lang.ClassLoader.loadClass(ClassLoader.java:253)[Default]   
at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)[Default]   
at java.lang.ClassLoader.defineClass0(Native 
Method)[Default]   at 
java.lang.ClassLoader.defineClass(ClassLoader.java:486)[Default]   
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)[Default]   
at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)[Default]   
at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56)[Default]   
at 
java.net.URLClassLoader$1.run(URLClassLoader.java:195)[Default]   
at java.security.AccessController.doPrivileged(Native 
Method)[Default]   at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)[Default]   
at 
java.lang.ClassLoader.loadClass(ClassLoader.java:297)[Default]   
at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)[Default]   
at 
java.lang.ClassLoader.loadClass(ClassLoader.java:253)[Default]   
at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)[Default]   
at 
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:82)[Default]   
at 
org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:258)[Default]   
at java.lang.reflect.Method.invoke(Native 
Method)[Default]   at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Default]   
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Default]   
at 
org.jboss.Main.(Main.java:195)[Default]   
at 
org.jboss.Main$1.run(Main.java:107)[Default]   
at java.security.AccessController.doPrivileged(Native 
Method)[Default]   at 
org.jboss.Main.main(Main.java:103)[Default] JBoss 2.2.1 Started in 
0m:1s[Default] Shutting down[Service Control] Stopping 0 
MBeans[Service Control] Stopped 0 services[Service Control] Destroying 0 
MBeans[Service Control] Destroyed 0 services[Default] Shutdown 
completePress any key to continue . . 
.


Re: [JBoss-user] EJB Question

2001-04-26 Thread danch

Daniel Cardin wrote:

> I am definitely not an expert on that topic, but I'd like to add my
> comments :)
> 
> For one, beans have the advantage of running in the context of the
> server. So you can assume that JBoss will manage security and
> transactions if you so desire. This by itself is already worth
> something, IMHO.

Especially the transaction support.


> 
> You have also access to all internal ressources like DataSources (not
> available outside the context of the server). 
> As well, if your session bean (implementing business code) needs to use
> Entity beans, they could run within the same JVM. This sort of intra-JVM
> type of communication is optimized in JBoss, so that calls that would go
> through RMI are handled as normal method calls. (This is how I
> understand it... hope it's correct :)) 

Nearly as a normal method call. The spec dictates that the method calls 
always behave as though they're remote insofar as passing of references 
go. This can be turned off for performance reasons.


> 
> If you use stateless session beans, code can be pooled and reused by the
> server to serve many clients in succession. 

Comparing this to a non-ejb helper that's used (for example) as a bean 
on a JSP page, you should save a lot of memory and garbage collection 
overhead.


-danch


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



Re: [JBoss-user] RE: Starting Trouble

2001-04-26 Thread Scott M Stark

As the docs state, JBOSS_HOME has to be replaced with the path to your
JBoss installation.

- Original Message - 
From: "Vishal Chawla" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 3:06 PM
Subject: [JBoss-user] RE: Starting Trouble


> Toby,
> Thanks for your earlier answer. I was indeed using java 1.2.2 earlier. But
> now I ensured JBoss started up with jdk1.3, but I have another problem:
> 
> **
> D:\work\dev\ejbtry\interest>java -version
> java version "1.3.0_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
> Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
> 
> D:\work\dev\ejbtry\interest>java -classpath
> JBOSS_HOME\client\jboss-client.jar;JBOSS_HOME\client\jbosssx-client.jar;JBOS
> S_HOME\client\jnp-client.jar;. InterestClient
> 


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



Re: [JBoss-user] RE: Starting Trouble

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 03:06:10PM -0700, Vishal Chawla wrote:
> Toby,
> Thanks for your earlier answer. I was indeed using java 1.2.2 earlier. But
> now I ensured JBoss started up with jdk1.3, but I have another problem:
> 
> **
> D:\work\dev\ejbtry\interest>java -version
> java version "1.3.0_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
> Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
> 
> D:\work\dev\ejbtry\interest>java -classpath
> JBOSS_HOME\client\jboss-client.jar;JBOSS_HOME\client\jbosssx-client.jar;JBOS
> S_HOME\client\jnp-client.jar;. InterestClient

Your classpath looks strange.  I think you mean %JBOSS_HOME% instead of just
JBOSS_HOME.

Toby.

> javax.naming.NoInitialContextException: Cannot instantiate class:
> org.jnp.interf
> aces.NamingContextFactory [Root exception is
> java.lang.ClassNotFoundException: o
> rg.jnp.interfaces.NamingContextFactory]

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



Re: [JBoss-user] Getting a database connection using the jBoss connection pool

2001-04-26 Thread Guy Rouillier

If you are using DriverManager, then you are just getting a straightforward
JDBC connection, and JBoss has nothing to do with it.  So use your standard
url string; here is a sample for Oracle:

"jdbc:oracle:thin:@xyz.mycompany.com:1521:mydb"

- Original Message -
From: "Jennifer Labit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 6:58 PM
Subject: [JBoss-user] Getting a database connection using the jBoss
connection pool


> All,
>
> I need to be able to connect to my connection pool using something like
> this:
>
> DriverManager.getConnection("jdbc:xxx:yyy:MyPoolName")
> ...
>
> What is the jdbc connection url that I would use to do that with jBoss?
>
> I know the opinions on this list are that this isn't the ideal way to do
it,
> however, in this situation the database connection code needs to be
> appserver independent and this is the best way to achieve that goal.
>
> Thank you for your help.
>
> Jennifer
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] Followup - Joins - CMP Entity Beans - BUG????

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 05:16:57PM -0700, Scott M Stark wrote:
> Post your patch to http://sourceforge.net/tracker/?group_id=22866
> under the Patches section.

You might also want to run this by the JBossCMP mailing list.

Toby.

> - Original Message - 
> From: "Vinay Menon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 26, 2001 4:24 PM
> Subject: [JBoss-user] Followup - Joins - CMP Entity Beans - BUG
> 
> 
> > Alright folks,
> > Here is the modified code. It works a treat!

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



Re: [JBoss-user] Get Database connection from Jndi

2001-04-26 Thread Russell

Thank Guy.

  I have download open source DBDatabaseBroker which have connection
pooling yesterday.

  BTW , you have stated that JBoss have connection pooling called
minerva. 
  How to setup MINERVA and call it ?? 

  Thanks . 

Guy Rouillier wrote:
> 
> If you read the javadocs for javax.sql, you'll see that all the interfaces
> there (except the event classes for some odd reason) are abstract.  So
> javax.sql doesn't provide a connection pooling ** implementation ** - it
> defines only an interface.
> 
> The pooling implementation shipped with JBoss is called minerva.  You can
> use this outside of JBoss (uses the JBoss hierarchy, so you will need the
> JBoss classes, but you won't need JBoss running.)  Also, there are several
> open source database connection pool libraries available if you can't get
> minerva to work for you.
> 
> - Original Message -
> From: "Russell" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 26, 2001 2:22 AM
> Subject: Re: [JBoss-user] Get Database connection from Jndi
> 
> >
> > Thanks Guy for your info.
> >
> >I know this out of scope  I would like to create connection pool
> > in my servlet.
> >The new jdbc2.0 have new classes javax.sql.* which can create
> > connection pooling.
> >
> >Do you know how to do it ? I am using postgresql7.0.1 database.
> >
> >   Thanks
> >
> > Guy Rouillier wrote:
> > >
> > > Assuming when you say "outside of JBoss" you mean in a different JVM,
> no.
> > >
> > > - Original Message -
> > > From: "Russell" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, April 26, 2001 12:30 AM
> > > Subject: Re: [JBoss-user] Get Database connection from Jndi
> > >
> > > > Hi Guy ,
> > > >
> > > >   I am trying to access dbconnection from jboss connection pool
> outside
> > > > of
> > > >   JBoss.
> > > >
> > > >   Can it be done ??
> > > >
> > > >   Thanks
> > > >
> > > >
> > > > Guy Rouillier wrote:
> > > > >
> > > > > What do you mean by "Can we accessed jndi that binding in jboss
> outside
> > > ejb
> > > > > bean ??"  There have been numerous discussions on this list over the
> > > last
> > > > > two weeks concerning the use of a DB connection from a JBoss
> connection
> > > pool
> > > > > outside of JBoss (can't be done.)  But your message sounds like you
> are
> > > > > doing something else (in jboss outside ejb).  Explain what you are
> > > trying to
> > > > > do.
> > > > >
> > > > > - Original Message -
> > > > > From: "Russell" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, April 25, 2001 10:09 PM
> > > > > Subject: [JBoss-user] Get Database connection from Jndi
> > > > >
> > > > > >
> > > > > >
> > > > > >   Hi all ,
> > > > > >
> > > > > >I am using RedHat6.1 , jdk1.3 and jboss2.1.
> > > > > >Recently i have been trying to access database connection from
> > > > > > binding datasource in jboss.
> > > > > >The error is "NamingNotFoundException error"
> > > > > >
> > > > > >Can we accessed jndi that binding in jboss outside ejb bean ??
> > > Thanks
> > > > > > wt
> > > > > >
> > > > > >below is my code :
> > > > > >
> > > > > >public static void main(String [] args){
> > > > > >
> > > > > >
> > > > >
> > > > > >   Properties props = new Properties();
> > > > > >   props.put(Context.INITIAL_CONTEXT_FACTORY,
> > > > > > "org.jnp.interfaces.NamingContextFactory");
> > > > > >   props.put(Context.PROVIDER_URL, "localhost:1099");
> > > > > >   Context ctx = new InitialContext();
> > > > > >
> > > > > >   ds =
> (DataSource)ctx.lookup("java:comp/env/jdbc/PostgresDS");
> > > > > >  }
> > > > > >  catch(Exception e){}
> > > > > >
> > > > > > }
> > > > > >
> > > > > > ___
> > > > > > JBoss-user mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > > > >
> > > > >
> > > > > ___
> > > > > JBoss-user mailing list
> > > > > [EMAIL PROTECTED]
> > > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] Followup - Joins - CMP Entity Beans - BUG????

2001-04-26 Thread Scott M Stark

Post your patch to http://sourceforge.net/tracker/?group_id=22866
under the Patches section.

- Original Message - 
From: "Vinay Menon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 4:24 PM
Subject: [JBoss-user] Followup - Joins - CMP Entity Beans - BUG


> Alright folks,
> Here is the modified code. It works a treat!
> 
>   if (query.toLowerCase().startsWith(",")) {
>   //Modified by Vinay Menon
>   StringBuffer sqlBuffer = new StringBuffer();
> 
> sqlBuffer.append("SELECT ");
> 
>   String primaryKeyList = getPkColumnList();
>   String tableName = jawsEntity.getTableName();
>   StringTokenizer stok = new StringTokenizer(primaryKeyList,",");
> 
>   while(stok.hasMoreTokens()){
> sqlBuffer.append(tableName);
> sqlBuffer.append(".");
> sqlBuffer.append(stok.nextElement().toString());
> sqlBuffer.append(",");
>   }
> 
>  sqlBuffer.setLength(sqlBuffer.length()-1);
>  sqlBuffer.append(strippedOrder);
>  sqlBuffer.append(" FROM ");
>  sqlBuffer.append(jawsEntity.getTableName());
>  sqlBuffer.append(" ");
>  sqlBuffer.append(query);
> 
>  sql = sqlBuffer.toString();
>  //sql += strippedOrder +" FROM " + jawsEntity.getTableName() + " " 
> + query;
>   } else
> 
> 
> 
>  Will take the trouble to actually modify the rest later! But if anyone 
> wants to do it  please do. Also, if the code owners at jboss.org happen to 
> see this - can you please ensure that a fix is in place for the next interim 
> release??? - it would really help. I have currently rebuilt the source and 
> am working off it.
> 
> Regards
> 
> Vinay
> 
> Hi Again,
> Believe I have figured where the issue lies. The sql is constructed by 
> org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand in the statement
> 
>  if (query.toLowerCase().startsWith(",")) {
> sql = "SELECT " + jawsEntity.getTableName()+"."+getPkColumnList() + 
> strippedOrder +
> " FROM " + jawsEntity.getTableName() + " " + query;
> 
> 
>   Obviously, if getPkColumnList has multiple items, the table name would 
> not be pre-pended!  Believe this is where the issue lies. Will try fixing 
> this and recompiling the source. Might have to wait unitl tomorrow though 
> cos its midnight!
> 
> Regards,
> 
> Vinay
> 
> 
> 
> Hi,
>Following the example provided in the online documentation I've tried 
> getting the join working across 2 tables.
> 
> The table structures are
> 
> Table A
> Col1,Col2,Col3
> 
> Table B
> Col1,Col2,Col4
> 
> Col1 and Col2 form the primary key for both the tables.
> 
> The finder definition is
> 
>   
> findForXXByYYZZ
> ,B
>WHERE B.Col1 = A.Col1
>AND B.Col2= A.Col2
>AND A.Col2= {0}
>AND A.Col1 = {1}
> 
> 
> The sql that I'd wanted the finder to produce was
> 
> SELECT A.Col1, A.Col2
> FROM  A,B
> WHERE B.Col1 =  A.Col1
> AND B.Col2=  A.Col2
> AND A.Col2= {0}
> AND A.Col1 = {1}
> 
>The sql produced, however, seems to be
> 
> SELECT A.Col1, Col2
> FROM  A,B
> WHERE B.Col1 =  A.Col1
> AND B.Col2 =  A.Col2
> AND A.Col2= {0}
> AND A.Col1 = {1}
> 
> Now Col2 is an ambiguous column and the query, obviously would fail.
> 
> Has anyone come across this and found a work around? Is anyone on the JBoss 
> Developers list working towards fixing this?
> 
> Please do let me know
> 
> Kind Regards
> 
> Vinay Menon
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



[JBoss-user] JDBC Sybase configuration?

2001-04-26 Thread Jason Wells

Hello,

I'm trying to get JBoss to use the Sybase JConnect 5.2 JDBC driver for CMP
entity beans. I've been looking at the "Using MS SQL Server with JBoss"
tutorial on the JBoss site, which is the closest thing I've found in terms
of relevant documentation:

http://www.jboss.org/documentation/HTML/ch11s17.html

And actually, it seems pretty applicable. But there's one area where the
instructions aren't too useful, because they vary considerably from driver
to driver, and that's the connection pool MBean declaration. I'm thinking it
would look something like this...


   com.sybase.jdbcx.SybDataSource
   SybasePool
   ???
   user=dbusername;
password=dbpassword
   4
   10
   false
   120
   12
   false
   false
   true
   false
   false
   180
   1.0


But, I have no idea how to formulate the JDBC URL, or if it's even needed.
Also, I wonder if I need "JDBCUser" and "Password" attributes. All of these
things seem to vary from driver to driver. Has anyone set this up for the
Sybase JDBC driver? Any help is appreciated.

Thanks,
Jason



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



[JBoss-user] Followup - Joins - CMP Entity Beans - BUG????

2001-04-26 Thread Vinay Menon

Alright folks,
Here is the modified code. It works a treat!

  if (query.toLowerCase().startsWith(",")) {
  //Modified by Vinay Menon
  StringBuffer sqlBuffer = new StringBuffer();

  sqlBuffer.append("SELECT ");

  String primaryKeyList = getPkColumnList();
  String tableName = jawsEntity.getTableName();
  StringTokenizer stok = new StringTokenizer(primaryKeyList,",");

  while(stok.hasMoreTokens()){
sqlBuffer.append(tableName);
sqlBuffer.append(".");
sqlBuffer.append(stok.nextElement().toString());
sqlBuffer.append(",");
  }

 sqlBuffer.setLength(sqlBuffer.length()-1);
 sqlBuffer.append(strippedOrder);
 sqlBuffer.append(" FROM ");
 sqlBuffer.append(jawsEntity.getTableName());
 sqlBuffer.append(" ");
 sqlBuffer.append(query);

 sql = sqlBuffer.toString();
 //sql += strippedOrder +" FROM " + jawsEntity.getTableName() + " " 
+ query;
  } else



 Will take the trouble to actually modify the rest later! But if anyone 
wants to do it  please do. Also, if the code owners at jboss.org happen to 
see this - can you please ensure that a fix is in place for the next interim 
release??? - it would really help. I have currently rebuilt the source and 
am working off it.

Regards

Vinay

Hi Again,
Believe I have figured where the issue lies. The sql is constructed by 
org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand in the statement

 if (query.toLowerCase().startsWith(",")) {
  sql = "SELECT " + jawsEntity.getTableName()+"."+getPkColumnList() + 
strippedOrder +
" FROM " + jawsEntity.getTableName() + " " + query;


  Obviously, if getPkColumnList has multiple items, the table name would 
not be pre-pended!  Believe this is where the issue lies. Will try fixing 
this and recompiling the source. Might have to wait unitl tomorrow though 
cos its midnight!

Regards,

Vinay



Hi,
   Following the example provided in the online documentation I've tried 
getting the join working across 2 tables.

The table structures are

Table A
Col1,Col2,Col3

Table B
Col1,Col2,Col4

Col1 and Col2 form the primary key for both the tables.

The finder definition is

  
findForXXByYYZZ
,B
   WHERE B.Col1 = A.Col1
   AND B.Col2= A.Col2
   AND A.Col2= {0}
   AND A.Col1 = {1}


The sql that I'd wanted the finder to produce was

SELECT A.Col1, A.Col2
FROM  A,B
WHERE B.Col1 =  A.Col1
AND B.Col2=  A.Col2
AND A.Col2= {0}
AND A.Col1 = {1}

   The sql produced, however, seems to be

SELECT A.Col1, Col2
FROM  A,B
WHERE B.Col1 =  A.Col1
AND B.Col2 =  A.Col2
AND A.Col2= {0}
AND A.Col1 = {1}

Now Col2 is an ambiguous column and the query, obviously would fail.

Has anyone come across this and found a work around? Is anyone on the JBoss 
Developers list working towards fixing this?

Please do let me know

Kind Regards

Vinay Menon


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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



Re: [JBoss-user] jboss compilation from CVS

2001-04-26 Thread Scott M Stark

You have to do an update -d to pickup new directories
- Original Message - 
From: "Daniel Germain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 2:34 PM
Subject: [JBoss-user] jboss compilation from CVS


> Hi,
> 
> Sorry to bother you, I probably should be using a precompiled
> installation
> 
> After doing:
> cvs update
> cd src/build
> ./build.sh clean
> ./build.sh
> 
> I got
> 
> BUILD FAILED
> 
> /home/src/jboss/src/build/build.xml:235:
> /home/src/jboss/build/classes/org/jboss/jms/ra not found.
> 
> Any clue?
> 
> Daniel



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



Re: [JBoss-user] Guest user

2001-04-26 Thread Raffael Herzog

"Scott M Stark" <[EMAIL PROTECTED]> wrote:

> Even if an application server does support JAAS there will be
> application server specific code to translate from JAAS Subject to
> what the Subject state means in terms of the caller principal and
> the principal roles because there is no standard for how J2EE
> security can be implemented in terms of JAAS classes.

OK, it's not posslible. It's a pitty that EJB actually seems to be
clearly underspecified... but it is, so I'll have to handle that.


> > > No, logins have to be done in the thread that is making the
> > > request. Since your an EJB client that is a multi-threaded
> > > server, you have to establish the client identity on each
> > > request since you have no control over how thread pooling
> > > assigns threads to servlet requests.
> > 
> > As mentioned above, I'm in the happy situation that there are only
> > two servlets that dispatch *everything*. So that's what I'll do
> > now: I login at the beginning of the init() and service() methods
> > and logout in a finally block. Will this work as expected?
> > 
> Yes because you are establishing the user identity every time in
> each request thread.

I'll do that then and hope, that this does't cost too much
performance. But I think it won't.


> [a question on how JAAS works and the answer] 

Thanx very much! I have now several ideas on how to proceed! :-)))


-- 
(o_ Raffael Herzog
//\[EMAIL PROTECTED]
V_/_
May the penguin be with you!

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



Re: SV: [JBoss-user] Guest user

2001-04-26 Thread Raffael Herzog

"Lennart Petersson" <[EMAIL PROTECTED]> wrote:

> As has been said so many times now: DON'T START A NEW THREAD BY
> REPLAYING AN OLD ONE!!!

I just wanted to keep order, basically I just substantiated my
original questions. It was, IMHO, the same thread, that's why I dit
*not* start a new one (or did you mean the other ones who asked
completely unrelated questions in this thread? Your refernces aren't
set correctly, so I don't know where your follow-up belongs to. :-)


-- 
(o_ Raffael Herzog
//\[EMAIL PROTECTED]
V_/_
May the penguin be with you!

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



[JBoss-user] Getting a database connection using the jBoss connection pool

2001-04-26 Thread Jennifer Labit

All,

I need to be able to connect to my connection pool using something like
this:

DriverManager.getConnection("jdbc:xxx:yyy:MyPoolName")
...

What is the jdbc connection url that I would use to do that with jBoss?

I know the opinions on this list are that this isn't the ideal way to do it,
however, in this situation the database connection code needs to be
appserver independent and this is the best way to achieve that goal.

Thank you for your help.

Jennifer


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



[JBoss-user] Followup - Joins - CMP Entity Beans - BUG????

2001-04-26 Thread Vinay Menon

Hi Again,
Believe I have figured where the issue lies. The sql is constructed by 
org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand in the statement

 if (query.toLowerCase().startsWith(",")) {
  sql = "SELECT " + jawsEntity.getTableName()+"."+getPkColumnList() + 
strippedOrder +
" FROM " + jawsEntity.getTableName() + " " + query;


  Obviously, if getPkColumnList has multiple items, the table name would 
not be pre-pended!  Believe this is where the issue lies. Will try fixing 
this and recompiling the source. Might have to wait unitl tomorrow though 
cos its midnight!

Regards,

Vinay



Hi,
   Following the example provided in the online documentation I've tried 
getting the join working across 2 tables.

The table structures are

Table A
Col1,Col2,Col3

Table B
Col1,Col2,Col4

Col1 and Col2 form the primary key for both the tables.

The finder definition is

  
findForXXByYYZZ
,B
   WHERE B.Col1 = A.Col1
   AND B.Col2= A.Col2
   AND A.Col2= {0}
   AND A.Col1 = {1}


The sql that I'd wanted the finder to produce was

SELECT A.Col1, A.Col2
FROM  A,B
WHERE B.Col1 =  A.Col1
AND B.Col2=  A.Col2
AND A.Col2= {0}
AND A.Col1 = {1}

   The sql produced, however, seems to be

SELECT A.Col1, Col2
FROM  A,B
WHERE B.Col1 =  A.Col1
AND B.Col2 =  A.Col2
AND A.Col2= {0}
AND A.Col1 = {1}

Now Col2 is an ambiguous column and the query, obviously would fail.

Has anyone come across this and found a work around? Is anyone on the JBoss 
Developers list working towards fixing this?

Please do let me know

Kind Regards

Vinay Menon


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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



Re: [JBoss-user] MBean access via JNDI - How to?

2001-04-26 Thread Scott M Stark


- Original Message - 
From: "Coates, David" <[EMAIL PROTECTED]>
To: "JBoss User List" <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 12:23 PM
Subject: [JBoss-user] MBean access via JNDI - How to?


> I have a custom MBean that adds a service to my JBoss container.  Now I want
> to be able to control that MBean/service from an EJB.  For example send it
> start(), stop(), restart(), or getStatus() messages.  My basic goal is to be
> able to provide a web interface for my users so that they can monitor the
> service that the MBean provides, as well as shut it down, restart it, etc...
> 
> I see that the documentation says that the best way to make an MBean
> available to your EJBs is to make it available via JNDI.  What is the best
> way to do this?
> 
> Obviously, I need the EJBs to interact with the original instance of my
> MBean and not a copy of it recreated via serialization.  So is it possible
> to use javax.naming.Reference and just bind that to the JNDI tree, or do I
> have to set up a RMI registry and bind an entire registry to JBoss's
> existing JNDI directory, or what?
> 
In JBoss2.2+ there is a simple utility class that allows one to easily bind an
in memory object into JNDI. Look at the org.jboss.naming.NonSerializableFactory
code in the jboss cvs module for its implementation. Basically it just does this:

static HashMap wrapperMap = new HashMap();
Context ctx = whatever context you want, usually the InitialContext
String jndiName = jndi name relative to ctx
Object target = the inmemory object instance you want to bind
wrapperMap.put(jndiName, target);
// Bind a reference to target using NonSerializableFactory as the ObjectFactory
String className = target.getClass().getName();
String factory = NonSerializableFactory.class.getName();
StringRefAddr addr = new StringRefAddr("nns", jndiName);
Reference memoryRef = new Reference(className, addr, factory, null);
ctx.rebind(jndiName, memoryRef);

The NonSerializableFactory ObjectFactory implementation is:
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable 
env)
throws Exception
{ // Get the nns value from the Reference obj and use it as the map key
Reference ref = (Reference) obj;
RefAddr addr = ref.get("nns");
String key = (String) addr.getContent();
Object target = wrapperMap.get(key);
return target;
}



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



[JBoss-user] RE: Starting Trouble

2001-04-26 Thread Vishal Chawla

Toby,
Thanks for your earlier answer. I was indeed using java 1.2.2 earlier. But
now I ensured JBoss started up with jdk1.3, but I have another problem:

**
D:\work\dev\ejbtry\interest>java -version
java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)

D:\work\dev\ejbtry\interest>java -classpath
JBOSS_HOME\client\jboss-client.jar;JBOSS_HOME\client\jbosssx-client.jar;JBOS
S_HOME\client\jnp-client.jar;. InterestClient

javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interf
aces.NamingContextFactory [Root exception is
java.lang.ClassNotFoundException: o
rg.jnp.interfaces.NamingContextFactory]


Thanks for any help,
--vishal


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



RE: [JBoss-user] External Data Modification

2001-04-26 Thread David Jencks

Hi,
I can't tell all  the parameters of your situation.  If you are updating
individual rows of the database one by one, you should use commit option B
or C.  These are adapted for non exclusive access to the db by the ejbs.  I
think Daniel's solution is for when you are doing a batch update and want
to use commit option A for speed and then reload all the beans at once.

Hope this is relevant

david jencks

On 2001.04.26 14:39:18 -0400 [EMAIL PROTECTED] wrote:
> Hi Daniel:
> 
> Thank you for the quick response.  I currently have a jBoss based product
> supporting 50 internal customer service reps.  The beans report on things
> like balances and such, and they need to be up to date.  The cache
> manager
> you are talking about, is it a customer manager you wrote, or one
> integral
> to jBoss?  I need to work something out until I can get my external
> processes to use SOAP :) which I'm off to SOAP land now...
> 
> Wes
> 
> BTW:  We need to write a SOAP RPC compiler which takes a EJB remote
> interface and compiles the client automatically, like rmic.  If anyone
> knows
> of such a compiler, let me know.
> 
> BTWW:  I have written an ant task to which automatically rebuilds
> jboss.xml
> and ejb-jar.xml so the whole project can be built and deployed from ant. 
> If
> anyone is interested, let me know and I will send the source code and a
> sample to the proper place.  It isn't complete, but it is nice rebuilding
> entire JAR/WAR files from scratch with one command.
> 
> -Original Message-
> From: Daniel Cardin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] External Data Modification
> 
> 
> Hi Wes :)
> 
> There is a thread that we started not too long ago on the topic. The way
> we have handled it is by creating our own instance of a cache manager
> for JBoss that is able to mark beans as dirty (thus are reloaded through
> ejbLoad on the next call). We have JMS setup so that our "traditionnal"
> application posts messages to the cache manager when making changes.
> 
> A similar approach could be taken using triggers in the tables concerned
> I think... As long as your database allows you to call on external
> functions in triggers (as MS SQL does).
> 
> Feel free to ask more questions if you aren't sure what the heck I'm
> talking about :)
> 
> HTH,
> 
> Daniel
> 
> 
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoyé : 26 avril, 2001 14:03 
> À : [EMAIL PROTECTED]
> Objet : [JBoss-user] External Data Modification
> 
> 
> I know I've seen some discussion of this in the past, but it never
> affected
> me until today, and I am having no luck searching  the archives.  I
> would
> like to know the best way to handle non-EJB modifications to the
> underlying
> data of an Entity Bean.  The bean is not reloaded until it is over aged.
> I
> would apprecate hearing from anyone else who has encountered this
> problem.
> 
> Wes
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



[JBoss-user] jboss compilation from CVS

2001-04-26 Thread Daniel Germain

Hi,

Sorry to bother you, I probably should be using a precompiled
installation

After doing:
cvs update
cd src/build
./build.sh clean
./build.sh

I got

BUILD FAILED

/home/src/jboss/src/build/build.xml:235:
/home/src/jboss/build/classes/org/jboss/jms/ra not found.

Any clue?

Daniel


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



Re: [JBoss-user] CORBA callbacks into JBoss

2001-04-26 Thread David Jencks

Hi,
I can't say I understand wxactly what you are trying to do, but the
following might be helpful anyway:

1.  Asynchronous messaging in java = jms spec + message driven beans,
implemented ( I think completely in jboss) as jbossmq ( formerly spydermq).
 Sending messages from beans may still be sort of by hand, but I think at
least one person was working on a JCA resource adapter for this.

2. As I understand it, jboss does not currently support rmi/iiop.

So if you can work around corba-jboss communication (avoid 2, or maybe I am
wrong), asynchronous messaging should be no problem.

Hope this helps and is relevant and correct.

David Jencks

On 2001.04.26 12:05:02 -0400 John Camelon wrote:
> hello list:
> 
> one of the reasons that i want to use an application server such as JBoss
> is
> to take advantage of the runtime environment that EJBs provide,
> particularly
> the pooling and scaling aspects of EJB. also, the hot deploy mechanism is
> much valued in the run-time scenarios i am looking at.
> 
> however, one of the pieces that i wish to integrate with has a CORBA
> interface and supports a callback model. some CORBA calls will be
> synchronous, while others will have at least one (if not several)
> asynchronous callbacks into EJB land. this seems like a bit of a misfit,
> unfortunately.
> 
> the only scenario that i can see possibly working is to proxy the
> external
> CORBA interface into some kind of layer that manages the EJB callbacks.
> at
> first glance i do not see, however, how this would allow for easy scaling
> the way that EJBs inherently allow. also, it appears to require a lot of
> knowledge about the EJBs trying to use the CORBA in order to resume the
> callbacks.
> 
> does anyone have any suggestions for me? is this scenario too ill fit for
> EJB?
> 
> johnc
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



RE: [JBoss-user] StreamCorruptedException

2001-04-26 Thread Sean Kessler
Title: RE: [JBoss-user] StreamCorruptedException






   Yep, that's it, thanks.




-Original Message-
From: jK.MkIII [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 3:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] StreamCorruptedException



Hello,


StreamCorruptedException is propably because you have jBoss running on
JRE 1.3 and client on 1.2 ..at least when I had that situation got same
message. Fix is to add line


java.vm.version=1.2


into jboss.properties.


Now not sure, and interested to know, does this mean that now 1.3
clients can't connect.. and if so how to make everyone able to connect
to same server.


--
    jK.MkIII



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





Re: [JBoss-user] Are readonly beans/transactions possible?

2001-04-26 Thread Jeffrey Wescott

We noticed similar things and decided to change the transaction setting 
our read-only EJB methods from "Requires" to "Supports".  It eliminated 
a lot of the contention.  I hope this helps.

++Jeff

P.S. -- this is done in the deployment descriptor for your bean(s) 
(ejb-jar.xml in JBoss).

Sven Van Caekenberghe wrote:

> Hi all you jboss/ejb gurus,
> 
> While stress-testing an application using jboss we encountered some 
> problems. We're not sure whether we did something wrong in the ejb 
> development or in the deployment or what. We think we need at least 
> some help in how to do 'readonly beans/transactions'.
> 
> Problem description:
> 
> System: jboss 2.2.x, interbase 6.x, jdk 1.3, linux mandrake 7.2
> Server code: session bean facades working with multiple entity beans 
> (some with subobjects)
> Deployment: container managed persistence and transactions, requied 
> transactions, default commit option A
> Client code: swing gui clients, junit tests clients
> 
> Problem: Running more than one client we get locking-waiting, lock 
> contention, but sometimes also failed transactions. The thing is that 
> you would expect these problems when trying to modify the same object, 
> but it also seems to happen when reading data from the same object 
> (which of course happens a lot). It seems that even a call like 
> PersonData[] getAllPersons() on a session bean (returning serializable 
> copies of entity beans) needs full exclusive read/write locks on all 
> objects involved in the transaction, even if we are just reading data. 
> As we see it, such behavior will never scale.
> 
> Question: How do you do readonly beans or access beans in readonly 
> transactions, either in ejb or in jboss? This must be a common 
> situation. I hope the answer is not to avoid using entity beans for 
> readonly data access and to access the database/datasource directly 
> (we like cmp too much to let it go).
> 
> All help is greatly appreciated!
> 
> Sven
> 
> ---
> Sven Van Caekenberghe - mailto:[EMAIL PROTECTED]
> Beta Nine - software engineering - http://www.beta9.be
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 



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



RE: [JBoss-user] Need help: Jboss2.2.1 no webcontainner error.

2001-04-26 Thread Qiao, Wei

Danch,
   
I think our oracle connection is fine because I tried the jboss2.1 and
it works just fine.  Actually the first error is "web container not
available".  Then the Tomcat_test.war is failed to run. 

Thanks!

-Original Message-
From: danch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Need help: Jboss2.2.1 no webcontainner error.


There's something wrong with your oracle connection. Can you connect to
your oracle database outside of JBoss?

"Qiao, Wei" wrote:
> 
> I am new to Jboss and tried the Jboss2.2.1.  I downloaded the
> Jboss2.2.1-Tomcat3.2.1.zip and modify the jboss.conf as well as jbos.jcml
in
> both conf/default and conf/Tomcat directories.  When I run it through
run.sh
> or run_with_Tomcat.sh, I got the following error
> --
> [OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
> [OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
> not establish the connection
> --
Confidential e-mail for addressee only.  Access to this e-mail by anyone
else is unauthorized.
If you have received this message in error, please notify the sender
immediately by reply e-mail 
and destroy the original communication.


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

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



RE: [JBoss-user] CORBA callbacks into JBoss

2001-04-26 Thread John Camelon

the ORB that the other project is using does not support RMI/IIOP (JacORB).
i have heard horror stories concerning interworking Sun's ORB and JacORB.

johnc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam
Sent: Thursday, April 26, 2001 3:46 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] CORBA callbacks into JBoss


So why not RMI/IIOP and interoperate Corba objects as RMI objects?  You get
to keep EJB/RMI and you get to speak CORBA.  JNDI, then can be your friend
for publication and rendezvous of service.  This is mho.

Sam

-Original Message-
From: John Camelon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 11:59 AM
To: Jboss-User
Subject: RE: [JBoss-user] CORBA callbacks into JBoss


the unfortunate aspect of my situation is that the CORBA component is a)
being developed concurrently (and thus not being legacy) and b) the more
"definite" technology choice for the moment.  CORBA is a given (in fact, its
a standard for the piece i am integrating with); i need some sort of
application server mechanism to be able to provide a hot-deploy run-time
environment to interact with the CORBA piece.  part of me considers writing
a dumbed-down simple alternative to an EJB container as being the lesser of
two evils compared to trying to implement N x N callback proxying.

thank you for your help though.

johnc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam
Sent: Thursday, April 26, 2001 1:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] CORBA callbacks into JBoss


John,

I believe that we may have similar problems to solve from your brief
description below.  Our original solution was completely CORBA based.  I am
also interested in others comments in the area.  We are now rearchitecting
and taking a serious look as to why CORBA and why RMI.  The "why RMI" is not
hard since EJB RI is based on this model.  The harder question is RMI/JRMP
or RMI/IIOP?  But because CORBA can interoperate cross platform and language
and that some environments (Microsoft Exchange; Lotus Domino) may not be
friendly to a java based extension, we are forced into keeping both
technologies alive and happy.

We chose to divide and conquer.  Corba based services that are not subject
to rearchitecture can be made into MBean services instead of EJB.  Legacy
code that it is, it is still too daunting to rewrite everything to EJB all
at once.  It is not hard to make Corba services use RMI(through session
beans) much the same way servlets do.  The other way around, however, can be
done, but it is not trivial.

We also have leveraged greatly JNDI much the same way JBoss/EJB itself does
in both exposure and rendezvous of services through an open Naming
interface.  Both Corba and RMI can do this at different levels based on what
you actually require.  A simple way of doing this is to use JNDI as a Naming
Service for both RMI and Corba remote object.

This may not get you everything you are looking for, however, you may not
have to be forced into throwing out the baby with the bath water ;-)

Sam

-Original Message-
From: John Camelon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 9:05 AM
To: Jboss-User
Subject: [JBoss-user] CORBA callbacks into JBoss


hello list:

one of the reasons that i want to use an application server such as JBoss is
to take advantage of the runtime environment that EJBs provide, particularly
the pooling and scaling aspects of EJB. also, the hot deploy mechanism is
much valued in the run-time scenarios i am looking at.

however, one of the pieces that i wish to integrate with has a CORBA
interface and supports a callback model. some CORBA calls will be
synchronous, while others will have at least one (if not several)
asynchronous callbacks into EJB land. this seems like a bit of a misfit,
unfortunately.

the only scenario that i can see possibly working is to proxy the external
CORBA interface into some kind of layer that manages the EJB callbacks. at
first glance i do not see, however, how this would allow for easy scaling
the way that EJBs inherently allow. also, it appears to require a lot of
knowledge about the EJBs trying to use the CORBA in order to resume the
callbacks.

does anyone have any suggestions for me? is this scenario too ill fit for
EJB?

johnc



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

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


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

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


___
J

RE: [JBoss-user] Need help: Jboss2.2.1 no webcontainner error.

2001-04-26 Thread Qiao, Wei

Actually I get this at first:
[J2EE Deployer Default] No web container found - only EJB deployment
available..
So I tried to start Tomcat manually and then run the run.sh again.  It still
shows that the web containner is not available. 


-Original Message-
From: Qiao, Wei [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 3:04 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Need help: Jboss2.2.1 no webcontainner error.


I am new to Jboss and tried the Jboss2.2.1.  I downloaded the
Jboss2.2.1-Tomcat3.2.1.zip and modify the jboss.conf as well as jbos.jcml in
both conf/default and conf/Tomcat directories.  When I run it through run.sh
or run_with_Tomcat.sh, I got the following error
--
[OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
[OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
not establish the connection
--

So I tried to start the Tomcat first and run the .sh file but I still
get the error.  What I missed?  PLease help!

-Original Message-
From: Qiao, Wei [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 12:06 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Jboss2.2.1 can't start Tomcat problem


Thanks Lennart and Guy,

I am using Jboss2.2.1

I killed the previous process and run the run.sh again using the following
command:  " sh ./run.sh"  and the output shows that the webcontainer is not
found which is Tomcat.  So I tried to run the other .sh file, which is
run_with_tomcat.sh, but it complains that the JBOSS_CLASSPATH is not
recognized, see following:
What can be the reason?  Should I set JBOSS_CLASSPATH before run the
run_with_tomcat.sh?
output ---
mollie 29 /www/webServers/jboss/bin % set
JBOSS_CLASSPATH="/usr/java/lib/tools.j
ar"
mollie 30 /www/webServers/jboss/bin % sh ./run_with_tomcat.sh &
[1] 5168
mollie 31 /www/webServers/jboss/bin % ./run_with_tomcat.sh:
JBOSS_CLASSPATH=:/us
r/java/lib/tools.jar: is not an identifier   

-Original Message-
From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 3:20 PM
To: [EMAIL PROTECTED]
Subject: SV: [JBoss-user] network adapter can not establish connection
error!


Well your jboss.jcml looks ok as far as Oracle goes. Please check that you
actually can connect to that url with that userid/pwd with a tool like
jbcstest or something. The BindException has to do with the fact that you
have some other appl using same port as jboss (8083?). Or maybe you started
jboss twice?
/Lennart

- Original Message - 
From: Qiao, Wei <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 5:58 PM
Subject: RE: [JBoss-user] network adapter can not establish connection
error!


> actually it's even worse.  There is error before that:
CLIP...
> [Webserver] java.net.BindException: Address already in use
> [Webserver] at java.net.PlainSocketImpl.socketBind(Native Method)
> [Webserver] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:3
> 
> 
> 
> 
> My jboss.jcml is following:
CLIP...
>  name="DefaultDomain:service=XADa
> taSource,name=OracleDB">
> OracleDB
>  name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSo
> urceImpl
> 
> true
> true
> 6
> 6
> true
> true
> 1.0
> 0
> 
>   



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

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

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

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



Re: [JBoss-user] Guest user

2001-04-26 Thread Scott M Stark

> 
> Yes I read it, but what I don't like about that solution is that one
> has to reconfigure Tomcat. Now I have the application almost in the
> stage where you can just throw an EAR into the deploy directory and
> it's done. I'd like to keep this. But there are only two servlets
> which handle all the incoming requests, so I can easily do the same
> without a RequestInterceptor. The other (and more important) point is
> that the application doesn't use any JBoss classes up to now, so it
> should be possible to run it on any EJB server with JAAS security by
> only rewriting the deployment descriptors. That's the other thing I'd
> like to keep.
> 
This is a valid desire, but the current state of security standardization
makes this undoable at this point. Even if an application server does
support JAAS there will be application server specific code to translate
from JAAS Subject to what the Subject state means in terms of the
caller principal and the principal roles because there is no standard for
how J2EE security can be implemented in terms of JAAS classes.

> > No, logins have to be done in the thread that is making the
> > request. Since your an EJB client that is a multi-threaded server,
> > you have to establish the client identity on each request since you
> > have no control over how thread pooling assigns threads to servlet
> > requests.
> 
> As mentioned above, I'm in the happy situation that there are only two
> servlets that dispatch *everything*. So that's what I'll do now: I
> login at the beginning of the init() and service() methods and logout
> in a finally block. Will this work as expected?
> 
Yes because you are establishing the user identity every time in each
request thread.

> But the principles of how JAAS works there are still very indistict to
> me: In my client (admin) application I do the login in a separate
> thread. If logins are bound to threads, my client app should not work,
> because after a successful connection, the thread that logged in
> doesn't exist anymore. That's why I though the scope of a LoginContext
> is the whole JVM. I searched the internet for information about the
> scope of a LoginContext, but I didn't find anything. It would be great
> if you could clear this up a bit...
> 
JAAS does not define the lifetime of logins because it depends on how
JAAS is used. In JBoss the ClientLoginModule operates in two modes,
single-threaded and multi-threaded. In single-threaded mode(the default),
the SecurityAssociation information is a VM singleton and the login information
lifetime is the lifetime of the JAAS login. Inside the JBoss server the
SecurityAssociation information is a thread local property and so a JAAS
login only affects the credentials of the thread in which the login was performed.




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



Re: [JBoss-user] Need help: Jboss2.2.1 no webcontainner error.

2001-04-26 Thread danch

There's something wrong with your oracle connection. Can you connect to
your oracle database outside of JBoss?

"Qiao, Wei" wrote:
> 
> I am new to Jboss and tried the Jboss2.2.1.  I downloaded the
> Jboss2.2.1-Tomcat3.2.1.zip and modify the jboss.conf as well as jbos.jcml in
> both conf/default and conf/Tomcat directories.  When I run it through run.sh
> or run_with_Tomcat.sh, I got the following error
> --
> [OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
> [OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
> not establish the connection
> --
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



[JBoss-user] Are readonly beans/transactions possible?

2001-04-26 Thread Sven Van Caekenberghe

Hi all you jboss/ejb gurus,

While stress-testing an application using jboss we encountered some 
problems. We're not sure whether we did something wrong in the ejb 
development or in the deployment or what. We think we need at least some 
help in how to do 'readonly beans/transactions'.

Problem description:

System: jboss 2.2.x, interbase 6.x, jdk 1.3, linux mandrake 7.2
Server code: session bean facades working with multiple entity beans 
(some with subobjects)
Deployment: container managed persistence and transactions, requied 
transactions, default commit option A
Client code: swing gui clients, junit tests clients

Problem: Running more than one client we get locking-waiting, lock 
contention, but sometimes also failed transactions. The thing is that 
you would expect these problems when trying to modify the same object, 
but it also seems to happen when reading data from the same object 
(which of course happens a lot). It seems that even a call like 
PersonData[] getAllPersons() on a session bean (returning serializable 
copies of entity beans) needs full exclusive read/write locks on all 
objects involved in the transaction, even if we are just reading data. 
As we see it, such behavior will never scale.

Question: How do you do readonly beans or access beans in readonly 
transactions, either in ejb or in jboss? This must be a common 
situation. I hope the answer is not to avoid using entity beans for 
readonly data access and to access the database/datasource directly (we 
like cmp too much to let it go).

All help is greatly appreciated!

Sven

---
Sven Van Caekenberghe - mailto:[EMAIL PROTECTED]
Beta Nine - software engineering - http://www.beta9.be

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



RE: [JBoss-user] EJB Question

2001-04-26 Thread Daniel Cardin

I am definitely not an expert on that topic, but I'd like to add my
comments :)

For one, beans have the advantage of running in the context of the
server. So you can assume that JBoss will manage security and
transactions if you so desire. This by itself is already worth
something, IMHO.

You have also access to all internal ressources like DataSources (not
available outside the context of the server). 
As well, if your session bean (implementing business code) needs to use
Entity beans, they could run within the same JVM. This sort of intra-JVM
type of communication is optimized in JBoss, so that calls that would go
through RMI are handled as normal method calls. (This is how I
understand it... hope it's correct :)) 

If you use stateless session beans, code can be pooled and reused by the
server to serve many clients in succession. 

This is not very complete, but I see those points as good reasons to use
SB vs. non EJB code. But as always, there is a good place for every bit
of code. Session Beans (stateless) are normally used to implement
business code. 

Hope it's a little bit informative :))

Daniel

ps. If I was wrong on any of this, please tell me :) I'm still learning.
Thanks!

-Message d'origine-
De : Michael Hustler [mailto:[EMAIL PROTECTED]]
Envoyé : 26 avril, 2001 16:18 
À : Jboss (E-mail)
Objet : [JBoss-user] EJB Question


I have a general (and likely simple) question about EJB's - session
beans in
particular.

What are the advantages of a stateless session bean over a non EJB
helper
class provided to clients.

Thanks,
-mike.


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

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



Re: [JBoss-user] Starting Trouble

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 12:54:49PM -0700, Vishal Chawla wrote:
> Hello,
> I am following along the Interest ejb example from the documentation. I do
> everything as stated in the documentation, but when I run the InterestClient
> file, I get an error :
> 
> D:\work\dev\ejbtry\interest>java -classpath
> d:\tools\java\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jboss-client.jar;d:\tool
> s\java\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jbosssx-client.jar;d:\tools\jav
> a\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jnp-client.jar;. InterestClient
> 
> Got context
> Got reference
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/rmi/PortableRem
> oteObject
> at InterestClient.main(InterestClient.java:46)

Either use JDK 1.3 or get the RMI/IIOP package from Sun.

Toby.

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



[JBoss-user] EJB Question

2001-04-26 Thread Michael Hustler

I have a general (and likely simple) question about EJB's - session beans in
particular.

What are the advantages of a stateless session bean over a non EJB helper
class provided to clients.

Thanks,
-mike.


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



RE: [JBoss-user] JNDI problems!

2001-04-26 Thread Roman Brouk

THANKS for you responce! 

i will definatly do that.

-roman.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Toby Allsopp
Sent: Thursday, April 26, 2001 11:59 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JNDI problems!


First, WTF does this have to do with JNDI?

On Thu, Apr 26, 2001 at 10:40:08AM -0700, Roman Brouk wrote:
> can somebody explain to me why if i have in my jboss.conf:
> 
>  CODEBASE="../../lib/ext/">
>
> VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> 
> 
> 
> then  each time i start jboss the following lines are deleted from
> jboss.jcml file?

Use a newer version of JBoss.  This behaviour was removed between the 2.0
and 2.1 releases.

Toby.

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


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



RE: [JBoss-user] Starting Trouble

2001-04-26 Thread Steve Zhang

I meet the same problem before. it seems should double check ur beans class
and ejb-jar.xml file again to see if they match correctly...


-Original Message-
From: Vishal Chawla [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 12:55 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Starting Trouble


Hello,
I am following along the Interest ejb example from the documentation. I do
everything as stated in the documentation, but when I run the InterestClient
file, I get an error :

D:\work\dev\ejbtry\interest>java -classpath
d:\tools\java\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jboss-client.jar;d:\tool
s\java\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jbosssx-client.jar;d:\tools\jav
a\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jnp-client.jar;. InterestClient

Got context
Got reference
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/rmi/PortableRem
oteObject
at InterestClient.main(InterestClient.java:46)

Any help is appreciated.

Thanks
--vishal


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

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



SV: [JBoss-user] Guest user

2001-04-26 Thread Lennart Petersson

As has been said so many times now: DON'T START A NEW THREAD BY REPLAYING AN OLD ONE!!!
/Lennart


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



RE: [JBoss-user] Need help: Jboss2.2.1 no webcontainner error.

2001-04-26 Thread Qiao, Wei

I am new to Jboss and tried the Jboss2.2.1.  I downloaded the
Jboss2.2.1-Tomcat3.2.1.zip and modify the jboss.conf as well as jbos.jcml in
both conf/default and conf/Tomcat directories.  When I run it through run.sh
or run_with_Tomcat.sh, I got the following error
--
[OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
[OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
not establish the connection
--

So I tried to start the Tomcat first and run the .sh file but I still
get the error.  What I missed?  PLease help!

-Original Message-
From: Qiao, Wei [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 12:06 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Jboss2.2.1 can't start Tomcat problem


Thanks Lennart and Guy,

I am using Jboss2.2.1

I killed the previous process and run the run.sh again using the following
command:  " sh ./run.sh"  and the output shows that the webcontainer is not
found which is Tomcat.  So I tried to run the other .sh file, which is
run_with_tomcat.sh, but it complains that the JBOSS_CLASSPATH is not
recognized, see following:
What can be the reason?  Should I set JBOSS_CLASSPATH before run the
run_with_tomcat.sh?
output ---
mollie 29 /www/webServers/jboss/bin % set
JBOSS_CLASSPATH="/usr/java/lib/tools.j
ar"
mollie 30 /www/webServers/jboss/bin % sh ./run_with_tomcat.sh &
[1] 5168
mollie 31 /www/webServers/jboss/bin % ./run_with_tomcat.sh:
JBOSS_CLASSPATH=:/us
r/java/lib/tools.jar: is not an identifier   

-Original Message-
From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 3:20 PM
To: [EMAIL PROTECTED]
Subject: SV: [JBoss-user] network adapter can not establish connection
error!


Well your jboss.jcml looks ok as far as Oracle goes. Please check that you
actually can connect to that url with that userid/pwd with a tool like
jbcstest or something. The BindException has to do with the fact that you
have some other appl using same port as jboss (8083?). Or maybe you started
jboss twice?
/Lennart

- Original Message - 
From: Qiao, Wei <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 5:58 PM
Subject: RE: [JBoss-user] network adapter can not establish connection
error!


> actually it's even worse.  There is error before that:
CLIP...
> [Webserver] java.net.BindException: Address already in use
> [Webserver] at java.net.PlainSocketImpl.socketBind(Native Method)
> [Webserver] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:3
> 
> 
> 
> 
> My jboss.jcml is following:
CLIP...
>  name="DefaultDomain:service=XADa
> taSource,name=OracleDB">
> OracleDB
>  name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSo
> urceImpl
> 
> true
> true
> 6
> 6
> true
> true
> 1.0
> 0
> 
>   



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

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

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



[JBoss-user] Starting Trouble

2001-04-26 Thread Vishal Chawla

Hello,
I am following along the Interest ejb example from the documentation. I do
everything as stated in the documentation, but when I run the InterestClient
file, I get an error :

D:\work\dev\ejbtry\interest>java -classpath
d:\tools\java\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jboss-client.jar;d:\tool
s\java\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jbosssx-client.jar;d:\tools\jav
a\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jnp-client.jar;. InterestClient

Got context
Got reference
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/rmi/PortableRem
oteObject
at InterestClient.main(InterestClient.java:46)

Any help is appreciated.

Thanks
--vishal


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



RE: [JBoss-user] CORBA callbacks into JBoss

2001-04-26 Thread Sam

So why not RMI/IIOP and interoperate Corba objects as RMI objects?  You get
to keep EJB/RMI and you get to speak CORBA.  JNDI, then can be your friend
for publication and rendezvous of service.  This is mho.

Sam

-Original Message-
From: John Camelon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 11:59 AM
To: Jboss-User
Subject: RE: [JBoss-user] CORBA callbacks into JBoss


the unfortunate aspect of my situation is that the CORBA component is a)
being developed concurrently (and thus not being legacy) and b) the more
"definite" technology choice for the moment.  CORBA is a given (in fact, its
a standard for the piece i am integrating with); i need some sort of
application server mechanism to be able to provide a hot-deploy run-time
environment to interact with the CORBA piece.  part of me considers writing
a dumbed-down simple alternative to an EJB container as being the lesser of
two evils compared to trying to implement N x N callback proxying.

thank you for your help though.

johnc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam
Sent: Thursday, April 26, 2001 1:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] CORBA callbacks into JBoss


John,

I believe that we may have similar problems to solve from your brief
description below.  Our original solution was completely CORBA based.  I am
also interested in others comments in the area.  We are now rearchitecting
and taking a serious look as to why CORBA and why RMI.  The "why RMI" is not
hard since EJB RI is based on this model.  The harder question is RMI/JRMP
or RMI/IIOP?  But because CORBA can interoperate cross platform and language
and that some environments (Microsoft Exchange; Lotus Domino) may not be
friendly to a java based extension, we are forced into keeping both
technologies alive and happy.

We chose to divide and conquer.  Corba based services that are not subject
to rearchitecture can be made into MBean services instead of EJB.  Legacy
code that it is, it is still too daunting to rewrite everything to EJB all
at once.  It is not hard to make Corba services use RMI(through session
beans) much the same way servlets do.  The other way around, however, can be
done, but it is not trivial.

We also have leveraged greatly JNDI much the same way JBoss/EJB itself does
in both exposure and rendezvous of services through an open Naming
interface.  Both Corba and RMI can do this at different levels based on what
you actually require.  A simple way of doing this is to use JNDI as a Naming
Service for both RMI and Corba remote object.

This may not get you everything you are looking for, however, you may not
have to be forced into throwing out the baby with the bath water ;-)

Sam

-Original Message-
From: John Camelon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 9:05 AM
To: Jboss-User
Subject: [JBoss-user] CORBA callbacks into JBoss


hello list:

one of the reasons that i want to use an application server such as JBoss is
to take advantage of the runtime environment that EJBs provide, particularly
the pooling and scaling aspects of EJB. also, the hot deploy mechanism is
much valued in the run-time scenarios i am looking at.

however, one of the pieces that i wish to integrate with has a CORBA
interface and supports a callback model. some CORBA calls will be
synchronous, while others will have at least one (if not several)
asynchronous callbacks into EJB land. this seems like a bit of a misfit,
unfortunately.

the only scenario that i can see possibly working is to proxy the external
CORBA interface into some kind of layer that manages the EJB callbacks. at
first glance i do not see, however, how this would allow for easy scaling
the way that EJBs inherently allow. also, it appears to require a lot of
knowledge about the EJBs trying to use the CORBA in order to resume the
callbacks.

does anyone have any suggestions for me? is this scenario too ill fit for
EJB?

johnc



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

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


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

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



Re: [JBoss-user] Can't redirect from servlet to a jsp.

2001-04-26 Thread danch

This is probably a better question for a tomcat list.

> Arun Bhat wrote:
> 
> I am using JBoss 2.2.1 with Embedded Tomcat 3.2.1. I tried redirecting
> to another jsp using
> servlet.getServletContext.getRequestDispatcher("path"); and
> requestDispatcher.forward(...).
> I get the following exception when i do the above:
> [EmbeddedTomcat] Servlet context:
> org.apache.tomcat.facade.ServletContextFacade@
> 1318b Path: /jsp/Login.jsp Real path:
> C:\AppServer\JBoss\JBoss-2.2.1_Tomcat-3.2.
> 1\tomcat\webapps\myServletApp\jsp\Login.jsp
> [EmbeddedTomcat] Dispatcher:
> org.apache.tomcat.facade.RequestDispatcherImpl@6903
> d5
> 2001-04-26 01:56:34 - Ctx( /login ): Exception in: R( /login +
> /jsp/Login.jsp +
> null) - javax.servlet.ServletException
> at
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



[JBoss-user] MBean access via JNDI - How to?

2001-04-26 Thread Coates, David

I have a custom MBean that adds a service to my JBoss container.  Now I want
to be able to control that MBean/service from an EJB.  For example send it
start(), stop(), restart(), or getStatus() messages.  My basic goal is to be
able to provide a web interface for my users so that they can monitor the
service that the MBean provides, as well as shut it down, restart it, etc...

I see that the documentation says that the best way to make an MBean
available to your EJBs is to make it available via JNDI.  What is the best
way to do this?

Obviously, I need the EJBs to interact with the original instance of my
MBean and not a copy of it recreated via serialization.  So is it possible
to use javax.naming.Reference and just bind that to the JNDI tree, or do I
have to set up a RMI registry and bind an entire registry to JBoss's
existing JNDI directory, or what?

I'm using jboss-2.0-FINAL bundled with Tomcat, running on a Win NT box.

 
David Coates
The Boeing Company
Mission Support Data Systems, International Space Station


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



[JBoss-user] does the Jboss support composition cmp beans?

2001-04-26 Thread Steve Zhang

Hi,all:
 I am using the Jboss to develop some application. Now I have 2 CMP entity
beans. and One entity bean has an composition relation with another. such as
class cmpBean1...{
 cmpBean2 mycmpBean2 = new cmpBean2();
}

some one told me I should use the entity managend bean instead of CMP or I
should use EJB2.0 since EJB1.1 SPECIFICATION does not support this one. 
I want to make sure if jboss 2.0 support such kind of composition relation. 

Thank u all.

steve zhang

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



RE: [JBoss-user] CORBA callbacks into JBoss

2001-04-26 Thread John Camelon

the unfortunate aspect of my situation is that the CORBA component is a)
being developed concurrently (and thus not being legacy) and b) the more
"definite" technology choice for the moment.  CORBA is a given (in fact, its
a standard for the piece i am integrating with); i need some sort of
application server mechanism to be able to provide a hot-deploy run-time
environment to interact with the CORBA piece.  part of me considers writing
a dumbed-down simple alternative to an EJB container as being the lesser of
two evils compared to trying to implement N x N callback proxying.

thank you for your help though.

johnc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam
Sent: Thursday, April 26, 2001 1:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] CORBA callbacks into JBoss


John,

I believe that we may have similar problems to solve from your brief
description below.  Our original solution was completely CORBA based.  I am
also interested in others comments in the area.  We are now rearchitecting
and taking a serious look as to why CORBA and why RMI.  The "why RMI" is not
hard since EJB RI is based on this model.  The harder question is RMI/JRMP
or RMI/IIOP?  But because CORBA can interoperate cross platform and language
and that some environments (Microsoft Exchange; Lotus Domino) may not be
friendly to a java based extension, we are forced into keeping both
technologies alive and happy.

We chose to divide and conquer.  Corba based services that are not subject
to rearchitecture can be made into MBean services instead of EJB.  Legacy
code that it is, it is still too daunting to rewrite everything to EJB all
at once.  It is not hard to make Corba services use RMI(through session
beans) much the same way servlets do.  The other way around, however, can be
done, but it is not trivial.

We also have leveraged greatly JNDI much the same way JBoss/EJB itself does
in both exposure and rendezvous of services through an open Naming
interface.  Both Corba and RMI can do this at different levels based on what
you actually require.  A simple way of doing this is to use JNDI as a Naming
Service for both RMI and Corba remote object.

This may not get you everything you are looking for, however, you may not
have to be forced into throwing out the baby with the bath water ;-)

Sam

-Original Message-
From: John Camelon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 9:05 AM
To: Jboss-User
Subject: [JBoss-user] CORBA callbacks into JBoss


hello list:

one of the reasons that i want to use an application server such as JBoss is
to take advantage of the runtime environment that EJBs provide, particularly
the pooling and scaling aspects of EJB. also, the hot deploy mechanism is
much valued in the run-time scenarios i am looking at.

however, one of the pieces that i wish to integrate with has a CORBA
interface and supports a callback model. some CORBA calls will be
synchronous, while others will have at least one (if not several)
asynchronous callbacks into EJB land. this seems like a bit of a misfit,
unfortunately.

the only scenario that i can see possibly working is to proxy the external
CORBA interface into some kind of layer that manages the EJB callbacks. at
first glance i do not see, however, how this would allow for easy scaling
the way that EJBs inherently allow. also, it appears to require a lot of
knowledge about the EJBs trying to use the CORBA in order to resume the
callbacks.

does anyone have any suggestions for me? is this scenario too ill fit for
EJB?

johnc



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

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


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



Re: [JBoss-user] JNDI problems!

2001-04-26 Thread Toby Allsopp

First, WTF does this have to do with JNDI?

On Thu, Apr 26, 2001 at 10:40:08AM -0700, Roman Brouk wrote:
> can somebody explain to me why if i have in my jboss.conf:
> 
>  CODEBASE="../../lib/ext/">
>
> VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> 
> 
> 
> then  each time i start jboss the following lines are deleted from
> jboss.jcml file?

Use a newer version of JBoss.  This behaviour was removed between the 2.0
and 2.1 releases.

Toby.

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



Re: [JBoss-user] DB JNDI name

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 09:51:03AM -0300, Miranda Carlos wrote:
> your String stDbName = "java:/inetbankDB"
> 
> in your jaws.xml or standartjaws.xml put 
> 
> java:/inetbankDB
> your mapping
> false //  for cmp
> ...
> 
> 
> in your initial context put prop :
> for example:
>  Properties prop = new Properties();
>  
> prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFa
> ctory");
>  prop.put(Context.PROVIDER_URL,"localhost:1099"); 
>  InitialContext jndiContext = new InitialContext(prop);

No, that's awful advice.

You need an entry in your ejb-jar.xml that declares the resource manager
reference "inetbankDB".  Then you need to link that to your actual datasource
using jboss.xml.

Then you use "java:comp/enb/inetbankDB" in your bean code.

This is in the EJB spec, see section 19.4.  The jboss.xml part is not very
thoroughly documented, but the DTD is simple enough to follow.

Toby.

> -Original Message-
> From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
> Sent: Jueves, 26 de Abril de 2001 08:23 a.m.
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] DB JNDI name
> 
> 
> hello
> 
> Could someone tell me how to connect to a database from BMP bean.
> Help would be greatly appreciated !
> 
> Maris
> 
> 
> I got exception:
> 
> [RegpaymentBean] javax.naming.NameNotFoundException: inetbankDB not bound
> 
> 
> In method:
> 
> 
> private final String stDbName = "java:comp/env/inetbankDB";
> ..
> 
>  private Connection getDbConnection() throws NamingException,SQLException
>  {
>InitialContext jndiContext = new InitialContext();
>DataSource source = (DataSource) jndiContext.lookup(stDbName);
>return source.getConnection();
> 
>  }
> 
> jboss.jcml  contains
> 
>   
> 
>  name="DefaultDomain:service=JdbcProvider">
>  org.gjt.mm.mysql.Driver
> 
> 
>  name="DefaultDomain:service=XADataSource,name=inetbankDB">
>  inetbankDB
>   name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l
>  jdbc:mysql://localhost/ejbeans
>  
>  
> 

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



Re: [JBoss-user] DataSource bound to wrong database with stateless session bean

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 05:38:58PM +0700, Nguyen Thanh Phong wrote:
> Hello,
> 
> I think I have made something totally wrong but don't know what is wrong.
> Please help.
> 
> I have configure DB2 to be bound to java:/DB2DS.
> 
> In my ejb-jar.xml, I have
> 
> 
>   jdbc/IdGeneratorDS
>   javax.sql.DataSource
>   Container
> 
> 
> In my jboss.xml, I have
> 
>   
> jdbc/IdGeneratorDS
> java:/DB2DS
>   

You are missing the other part of jboss.xml that you need.  There is an
extra indirection.  I can't recall the exact details, but this has been
explained *many* times on this list.

> In my standardjaws.xml I have

Not relevent unless you're using CMP.

Toby.

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



[JBoss-user] Can't redirect from servlet to a jsp.

2001-04-26 Thread Arun Bhat



I am using JBoss 2.2.1 with Embedded Tomcat 3.2.1. 
I tried redirecting to another jsp using 
servlet.getServletContext.getRequestDispatcher("path"); and 
requestDispatcher.forward(...).
I get the following exception when i do the 
above:
[EmbeddedTomcat] Servlet context: 
org.apache.tomcat.facade.ServletContextFacade@1318b Path: /jsp/Login.jsp 
Real path: 
C:\AppServer\JBoss\JBoss-2.2.1_Tomcat-3.2.1\tomcat\webapps\myServletApp\jsp\Login.jsp[EmbeddedTomcat] 
Dispatcher: 
org.apache.tomcat.facade.RequestDispatcherImpl@6903d52001-04-26 01:56:34 
- Ctx( /login ): Exception in: R( /login + /jsp/Login.jsp +null) - 
javax.servlet.ServletException    at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:611)    
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)    
at 
org.apache.tomcat.core.Handler.service(Handler.java:286)    
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)    
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)    
at 
myprojects.examples.RequestContext.forward(RequestContext.java:102)    
at 
myprojects.examples.LoginDelegate.service(LoginDelegate.java:39)    
at 
myprojects.examples.LoginServlet.service(LoginServlet.java:91)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:611)    
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)    
at 
org.apache.tomcat.core.Handler.service(Handler.java:286)    
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)    
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)    
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)    
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)    
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)    
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)    
at java.lang.Thread.run(Thread.java:484)Root 
cause:java.lang.NoSuchMethodError    
at 
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209)
 
    at 
jsp._0002fjsp_0002fLogin_0002ejspLogin_jsp_5._jspService(_0002fjsp_0002fLogin_0002ejspLogin_jsp_5.java:70)    
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:611)    
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)    
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)    
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:611)    
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)    
at 
org.apache.tomcat.core.Handler.service(Handler.java:286)    
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)    
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)    
at 
myprojects.examples.RequestContext.forward(RequestContext.java:102)    
at 
myprojects.examples.LoginDelegate.service(LoginDelegate.java:39)    
at 
myprojects.examples.LoginServlet.service(LoginServlet.java:91)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:611)    
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)    
at 
org.apache.tomcat.core.Handler.service(Handler.java:286)    
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)    
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)    
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)    
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)    
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)    
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)    
at java.lang.Thread.run(Thread.java:484)
 
Thanks,
Arun
 
Arun BhatSoftware EngineerDante Consulting, 
Inc.www.dante-consulting.com
 
1550 Wilson Blvd, Suite 705Arlington, VA 
22209(703) 807-0520
 
===The 
information contained in this electronic transmission is intended onlyfor 
the use of the recipient and may be confidential and privileged.Unauthorized 
use, disclosure or reproduction is strictly prohibited, and maybe unlawful. 
If you have received this electronic transmission in error,please notify the 
sender 
immediately.===


Re: [JBoss-user] binding on specific addresses

2001-04-26 Thread Toby Allsopp

On Thu, Apr 26, 2001 at 11:15:26AM +0200, Prevosto, Laurent wrote:
> Hi,
> 
> as mentioned in  the documentation :
> http://www.jboss.org/documentation/HTML/ch10s03.html
> most of the ports are configurable.
> But is there a way to specifiy the IP addresses you want to bind on (*) or
> does jboss automatically bind on all interfaces ?
> 
> Thanx
> 
> Laurent
> 
> (*) we could patch the code but we would like t avoid this...

Why?  That's what free software is all about.  Send us your patch and we'll
share it with everyone.  Everyone's a winner!

Toby.

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



RE: [JBoss-user] External Data Modification

2001-04-26 Thread WMckean

Hi Daniel:

Thank you for the quick response.  I currently have a jBoss based product
supporting 50 internal customer service reps.  The beans report on things
like balances and such, and they need to be up to date.  The cache manager
you are talking about, is it a customer manager you wrote, or one integral
to jBoss?  I need to work something out until I can get my external
processes to use SOAP :) which I'm off to SOAP land now...

Wes

BTW:  We need to write a SOAP RPC compiler which takes a EJB remote
interface and compiles the client automatically, like rmic.  If anyone knows
of such a compiler, let me know.

BTWW:  I have written an ant task to which automatically rebuilds jboss.xml
and ejb-jar.xml so the whole project can be built and deployed from ant.  If
anyone is interested, let me know and I will send the source code and a
sample to the proper place.  It isn't complete, but it is nice rebuilding
entire JAR/WAR files from scratch with one command.

-Original Message-
From: Daniel Cardin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] External Data Modification


Hi Wes :)

There is a thread that we started not too long ago on the topic. The way
we have handled it is by creating our own instance of a cache manager
for JBoss that is able to mark beans as dirty (thus are reloaded through
ejbLoad on the next call). We have JMS setup so that our "traditionnal"
application posts messages to the cache manager when making changes.

A similar approach could be taken using triggers in the tables concerned
I think... As long as your database allows you to call on external
functions in triggers (as MS SQL does).

Feel free to ask more questions if you aren't sure what the heck I'm
talking about :)

HTH,

Daniel


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : 26 avril, 2001 14:03 
À : [EMAIL PROTECTED]
Objet : [JBoss-user] External Data Modification


I know I've seen some discussion of this in the past, but it never
affected
me until today, and I am having no luck searching  the archives.  I
would
like to know the best way to handle non-EJB modifications to the
underlying
data of an Entity Bean.  The bean is not reloaded until it is over aged.
I
would apprecate hearing from anyone else who has encountered this
problem.

Wes


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

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

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



RE: [JBoss-user] External Data Modification

2001-04-26 Thread Daniel Cardin

Hi Wes :)

There is a thread that we started not too long ago on the topic. The way
we have handled it is by creating our own instance of a cache manager
for JBoss that is able to mark beans as dirty (thus are reloaded through
ejbLoad on the next call). We have JMS setup so that our "traditionnal"
application posts messages to the cache manager when making changes.

A similar approach could be taken using triggers in the tables concerned
I think... As long as your database allows you to call on external
functions in triggers (as MS SQL does).

Feel free to ask more questions if you aren't sure what the heck I'm
talking about :)

HTH,

Daniel


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : 26 avril, 2001 14:03 
À : [EMAIL PROTECTED]
Objet : [JBoss-user] External Data Modification


I know I've seen some discussion of this in the past, but it never
affected
me until today, and I am having no luck searching  the archives.  I
would
like to know the best way to handle non-EJB modifications to the
underlying
data of an Entity Bean.  The bean is not reloaded until it is over aged.
I
would apprecate hearing from anyone else who has encountered this
problem.

Wes


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

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



RE: [JBoss-user] CORBA callbacks into JBoss

2001-04-26 Thread Sam

John,

I believe that we may have similar problems to solve from your brief
description below.  Our original solution was completely CORBA based.  I am
also interested in others comments in the area.  We are now rearchitecting
and taking a serious look as to why CORBA and why RMI.  The "why RMI" is not
hard since EJB RI is based on this model.  The harder question is RMI/JRMP
or RMI/IIOP?  But because CORBA can interoperate cross platform and language
and that some environments (Microsoft Exchange; Lotus Domino) may not be
friendly to a java based extension, we are forced into keeping both
technologies alive and happy.

We chose to divide and conquer.  Corba based services that are not subject
to rearchitecture can be made into MBean services instead of EJB.  Legacy
code that it is, it is still too daunting to rewrite everything to EJB all
at once.  It is not hard to make Corba services use RMI(through session
beans) much the same way servlets do.  The other way around, however, can be
done, but it is not trivial.

We also have leveraged greatly JNDI much the same way JBoss/EJB itself does
in both exposure and rendezvous of services through an open Naming
interface.  Both Corba and RMI can do this at different levels based on what
you actually require.  A simple way of doing this is to use JNDI as a Naming
Service for both RMI and Corba remote object.

This may not get you everything you are looking for, however, you may not
have to be forced into throwing out the baby with the bath water ;-)

Sam

-Original Message-
From: John Camelon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 9:05 AM
To: Jboss-User
Subject: [JBoss-user] CORBA callbacks into JBoss


hello list:

one of the reasons that i want to use an application server such as JBoss is
to take advantage of the runtime environment that EJBs provide, particularly
the pooling and scaling aspects of EJB. also, the hot deploy mechanism is
much valued in the run-time scenarios i am looking at.

however, one of the pieces that i wish to integrate with has a CORBA
interface and supports a callback model. some CORBA calls will be
synchronous, while others will have at least one (if not several)
asynchronous callbacks into EJB land. this seems like a bit of a misfit,
unfortunately.

the only scenario that i can see possibly working is to proxy the external
CORBA interface into some kind of layer that manages the EJB callbacks. at
first glance i do not see, however, how this would allow for easy scaling
the way that EJBs inherently allow. also, it appears to require a lot of
knowledge about the EJBs trying to use the CORBA in order to resume the
callbacks.

does anyone have any suggestions for me? is this scenario too ill fit for
EJB?

johnc



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

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



Re: [JBoss-user] Guest user

2001-04-26 Thread Raffael Herzog

"Scott M Stark" <[EMAIL PROTECTED]> wrote:

> Tobias Seeligner mentioned a better solution to having the user
> credentials passed to JBoss EJBs. He created his own Interceptor
> that performs the binding of the guest username and password using
> the SecurityAssociation class I mentioned.  This avoids having to
> have a JAAS login in your servlet request method and also isolates
> the JBoss code to the Interceptor for use by all unsecured servlets.

Yes I read it, but what I don't like about that solution is that one
has to reconfigure Tomcat. Now I have the application almost in the
stage where you can just throw an EAR into the deploy directory and
it's done. I'd like to keep this. But there are only two servlets
which handle all the incoming requests, so I can easily do the same
without a RequestInterceptor. The other (and more important) point is
that the application doesn't use any JBoss classes up to now, so it
should be possible to run it on any EJB server with JAAS security by
only rewriting the deployment descriptors. That's the other thing I'd
like to keep.


> > Or did you mean that I login Tomcat in the init methods of my
> > servlets just as I do in a normal application? Doesn't this mean
> > that the whole JVM is logged in (well, I could live with that, but
> > still...)?
> > 
> No, logins have to be done in the thread that is making the
> request. Since your an EJB client that is a multi-threaded server,
> you have to establish the client identity on each request since you
> have no control over how thread pooling assigns threads to servlet
> requests.

As mentioned above, I'm in the happy situation that there are only two
servlets that dispatch *everything*. So that's what I'll do now: I
login at the beginning of the init() and service() methods and logout
in a finally block. Will this work as expected?

But the principles of how JAAS works there are still very indistict to
me: In my client (admin) application I do the login in a separate
thread. If logins are bound to threads, my client app should not work,
because after a successful connection, the thread that logged in
doesn't exist anymore. That's why I though the scope of a LoginContext
is the whole JVM. I searched the internet for information about the
scope of a LoginContext, but I didn't find anything. It would be great
if you could clear this up a bit...


-- 
(o_ Raffael Herzog
//\[EMAIL PROTECTED]
V_/_
May the penguin be with you!

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



[JBoss-user] JNDI problems!

2001-04-26 Thread Roman Brouk

can somebody explain to me why if i have in my jboss.conf:


   
   



then  each time i start jboss the following lines are deleted from
jboss.jcml file?
I assume this might be the reason i can not find the pool through JNDI
"java:/mySQLDB" although when jboss starts it says that "XA Connection pool
mySQLDB bound to java:/mySQLDB"?

  MySQLDB
  
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl


I am getting very annoyed with this!   please help!


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



[JBoss-user] External Data Modification

2001-04-26 Thread WMckean

I know I've seen some discussion of this in the past, but it never affected
me until today, and I am having no luck searching  the archives.  I would
like to know the best way to handle non-EJB modifications to the underlying
data of an Entity Bean.  The bean is not reloaded until it is over aged.  I
would apprecate hearing from anyone else who has encountered this problem.

Wes


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



[JBoss-user] Server Load Information

2001-04-26 Thread Lucian Bargaoanu

I want to find out programmatically ( through a JNDI exposed object maybe )
information about the server's load.
Basic stuff, like how many beans are running, what types etc.
Also memory, processor ( if JBoss can tell me such things... ).
The more, the better.
Any help would be appreciated.

Thanks



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



Re: [JBoss-user] Get Database connection from Jndi

2001-04-26 Thread Guy Rouillier

If you read the javadocs for javax.sql, you'll see that all the interfaces
there (except the event classes for some odd reason) are abstract.  So
javax.sql doesn't provide a connection pooling ** implementation ** - it
defines only an interface.

The pooling implementation shipped with JBoss is called minerva.  You can
use this outside of JBoss (uses the JBoss hierarchy, so you will need the
JBoss classes, but you won't need JBoss running.)  Also, there are several
open source database connection pool libraries available if you can't get
minerva to work for you.

- Original Message -
From: "Russell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 2:22 AM
Subject: Re: [JBoss-user] Get Database connection from Jndi


>
> Thanks Guy for your info.
>
>I know this out of scope  I would like to create connection pool
> in my servlet.
>The new jdbc2.0 have new classes javax.sql.* which can create
> connection pooling.
>
>Do you know how to do it ? I am using postgresql7.0.1 database.
>
>   Thanks
>
> Guy Rouillier wrote:
> >
> > Assuming when you say "outside of JBoss" you mean in a different JVM,
no.
> >
> > - Original Message -
> > From: "Russell" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 26, 2001 12:30 AM
> > Subject: Re: [JBoss-user] Get Database connection from Jndi
> >
> > > Hi Guy ,
> > >
> > >   I am trying to access dbconnection from jboss connection pool
outside
> > > of
> > >   JBoss.
> > >
> > >   Can it be done ??
> > >
> > >   Thanks
> > >
> > >
> > > Guy Rouillier wrote:
> > > >
> > > > What do you mean by "Can we accessed jndi that binding in jboss
outside
> > ejb
> > > > bean ??"  There have been numerous discussions on this list over the
> > last
> > > > two weeks concerning the use of a DB connection from a JBoss
connection
> > pool
> > > > outside of JBoss (can't be done.)  But your message sounds like you
are
> > > > doing something else (in jboss outside ejb).  Explain what you are
> > trying to
> > > > do.
> > > >
> > > > - Original Message -
> > > > From: "Russell" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, April 25, 2001 10:09 PM
> > > > Subject: [JBoss-user] Get Database connection from Jndi
> > > >
> > > > >
> > > > >
> > > > >   Hi all ,
> > > > >
> > > > >I am using RedHat6.1 , jdk1.3 and jboss2.1.
> > > > >Recently i have been trying to access database connection from
> > > > > binding datasource in jboss.
> > > > >The error is "NamingNotFoundException error"
> > > > >
> > > > >Can we accessed jndi that binding in jboss outside ejb bean ??
> > Thanks
> > > > > wt
> > > > >
> > > > >below is my code :
> > > > >
> > > > >public static void main(String [] args){
> > > > >
> > > > >
> > > >
> > > > >   Properties props = new Properties();
> > > > >   props.put(Context.INITIAL_CONTEXT_FACTORY,
> > > > > "org.jnp.interfaces.NamingContextFactory");
> > > > >   props.put(Context.PROVIDER_URL, "localhost:1099");
> > > > >   Context ctx = new InitialContext();
> > > > >
> > > > >   ds =
(DataSource)ctx.lookup("java:comp/env/jdbc/PostgresDS");
> > > > >  }
> > > > >  catch(Exception e){}
> > > > >
> > > > > }
> > > > >
> > > > > ___
> > > > > JBoss-user mailing list
> > > > > [EMAIL PROTECTED]
> > > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > > >
> > > >
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] jboss.xml

2001-04-26 Thread Guy Rouillier

See the section "What is jboss.xml?" in the jboss documentation (online).

- Original Message - 
From: "Maris Orbidans" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 5:04 AM
Subject: [JBoss-user] jboss.xml


> 
> where can I get a description of subj. file ?
> 
> Maris Orbidans
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



[JBoss-user] Bulk update of entity beans from a session bean

2001-04-26 Thread Sita Raman Singh

Hi,
I've an application where I need to implement item by item and bulk
updating of entity beans ie in some cases only a few entity beans are
getting modified and in other cases a very large no of entity beans are
getting modifed.

I intend to use commit-option A and since JBoss has pessimistic
concurrency control (one-instance-per-pk and Serialized call I learnt) ,
I am thinking of implementing bulk update of entity beans as follow for
performance reasons.

1. use a BMT session bean and start transaction
2. update all records in the database
3. findByPKs() all entity beans
4. call a business method say, populate() on each entity bean and inside
this method update the state of entity bean. Although this method sets
the state of the bean it doesn't mark that bean as modified and hence
IsModified() method return false (hence it will not be stored again)
5. commit the transaction.

Please comment from a developmental prospective if it will work? What
are the flaws ? Is there any other preferred way to do it ?

Regards,
SRP


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



[JBoss-user] Guest user

2001-04-26 Thread Roman Brückner

Hi,
I am trying to install a oracle driver. Sofar I copied the driver file into
the lib/ext
and added the follwing lines in the jboss.jcml:
 
 
 oracle.jdbc.driver.OracleDriver
  

  
 OracleDS
 org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
 jdbc:oracle:thin:@localhost:1521:xxx
 xxx
 xxx
   

and that's where JBoss seems to hang.
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
Anything else, I forgot to do?
Regards Roman

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



RE: [JBoss-user] downloading the docs for local browsing

2001-04-26 Thread Daren R. Sefcik

Also, I used Acrobat to download the web pages to a pdf
file...if you have Acrobat you can do it that way.

Daren


On Thu, 26 Apr 2001, Filip Hanik wrote:

> check out the "manual" cvs module from sourceforge
>
> then just build it and voila, you have the docs
>
> Filip
>
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> [EMAIL PROTECTED]
> www.filip.net
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Maxime
> > Levesque
> > Sent: Thursday, April 26, 2001 8:18 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] downloading the docs for local browsing
> >
> >
> >
> >  The online browsable docs are great,
> > but i'd like to download them, they
> > don't seem to be packaged for downloading...
> >
> > (I live in an area where a dial up connection
> > is the only choice)...
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great prices
> > http://auctions.yahoo.com/
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>

===
Daren Sefcik
Senior Engineer
Partners Data Systems Inc.
3954 Murphy Canyon Rd. St. D104
San Diego CA 92123
858-278-3005 ext-317
www.partnersdata.com
===


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



Re: [JBoss-user] BMP example

2001-04-26 Thread Guy Rouillier

Download jbosstest.

- Original Message - 
From: "Maris Orbidans" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 4:47 AM
Subject: [JBoss-user] BMP example


> hi
> 
> Can I get some example of BMP entity beans for JBoss ?
> 
> You can send to my email if you wish.
> 
> 
> Maris
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



RE: [JBoss-user] downloading the docs for local browsing

2001-04-26 Thread Filip Hanik

check out the "manual" cvs module from sourceforge

then just build it and voila, you have the docs

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Maxime
> Levesque
> Sent: Thursday, April 26, 2001 8:18 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] downloading the docs for local browsing
> 
> 
> 
>  The online browsable docs are great,
> but i'd like to download them, they
> don't seem to be packaged for downloading...
> 
> (I live in an area where a dial up connection
> is the only choice)...
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



Re: [JBoss-user] binding on specific addresses

2001-04-26 Thread Scott M Stark

binding on specific addresses
Yes, these are bound on all addresses. There is currently no configuration support to
bind to a specific address.

- Original Message - 
From: Prevosto, Laurent 
To: '[EMAIL PROTECTED]' 
Sent: Thursday, April 26, 2001 2:15 AM
Subject: [JBoss-user] binding on specific addresses


Hi, 
as mentioned in  the documentation : 
http://www.jboss.org/documentation/HTML/ch10s03.html 
most of the ports are configurable. 
But is there a way to specifiy the IP addresses you want to bind on (*) or does jboss 
automatically bind on all interfaces ?
Thanx 
Laurent 
(*) we could patch the code but we would like t avoid this... 


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



Re: [JBoss-user] Guest user

2001-04-26 Thread Scott M Stark

> 
> If I understand you right, I should override the
> getUsernameAndPassword() method of UsernamePasswordLoginModule and
> return new String[] { "guest", "guest" } if the callbackHandler is
> null instead of throwing an exception.
> 
No, the UsernamePasswordLoginModule is typically used by the security domain
protecting your EJB to validate a username and password that has been
sent by a client. Your servlet(s) are the EJB clients that have to provide an
identity in order to access your secured EJBs.

Tobias Seeligner mentioned a better solution to having the user credentials passed
to JBoss EJBs. He created his own Interceptor that performs the binding of the
guest username and password using the SecurityAssociation class I mentioned.
This avoids having to have a JAAS login in your servlet request method and also
isolates the JBoss code to the Interceptor for use by all unsecured servlets.

> Or did you mean that I login Tomcat in the init methods of my servlets
> just as I do in a normal application? Doesn't this mean that the whole
> JVM is logged in (well, I could live with that, but still...)?
> 
No, logins have to be done in the thread that is making the request. Since your
an EJB client that is a multi-threaded server, you have to establish the client
identity on each request since you have no control over how thread pooling
assigns threads to servlet requests.



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



RE: [JBoss-user] Invalid protocol jndi exception thrown by tomcat 4 Beta 3

2001-04-26 Thread Bordet, Simone

Hey,

> Simon,
> 
> Your suggestion did not work.  I disabled naming, no go.  I also tried
> passing a properties object to new InitialContext for 
> locating ejbs, and
> still no go.
> 
> Any more suggestions?

As pointed out by Vincent Harcq, it can be a problem with beta3. Can you try
the latest nightly build ?
Also, can you post the code of your servlet/jsp where you call EJB1 and EJB2
?

Simon


> 
> Mayank
> 
> -Original Message-
> From: Bordet, Simone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 9:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: R: [JBoss-user] Invalid protocol jndi exception thrown by
> tomcat 4 Beta 3
> 
> 
> Hey,
> 
> > No, I don't use that option, I will try it out latter today.  
> > What does that
> > option do? (disable naming, can you elabrate)
> 
> Catalina comes with its own naming implementation, that is by default
> active.
> So if you have code under web-inf/lib or web-inf/classes that does new
> InitialContext(), even if a jndi.properties is in the web application
> classpath (pointing to a different naming service than the 
> Catalina one),
> Catalina get confused and barfs unknown protocol: jndi
> 
> Since JBoss has its own naming service, you should probably 
> start Catalina
> with the -nonaming option.
> 
> I didn't try Catalina with JBoss, but with another 
> application I wrote (that
> has its own naming service), the -nonaming option did the 
> job. Probably will
> do also for JBoss, but I'm not 100% sure of this.
> 
> Let us know.
> 
> HTH,
> 
> Simon
> 
> > 
> > Thanks,
> > 
> > Mayank
> > 
> > -Original Message-
> > From: Bordet, Simone [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 25, 2001 8:51 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: R: [JBoss-user] Invalid protocol jndi exception thrown by
> > tomcat 4 Beta 3
> > 
> > 
> > Hey,
> > 
> > how do you start Catalina ? Do you use the -nonaming option ?
> > I launch it with (W2K):
> > catalina run -nonaming from the Tomcat bin directory.
> > 
> > HTH,
> > 
> > Simon
> > 
> > > -Messaggio originale-
> > > Da: Shah, Mayank [mailto:[EMAIL PROTECTED]]
> > > Inviato: mercoledì 25 aprile 2001 14:35
> > > A: '[EMAIL PROTECTED]'
> > > Oggetto: [JBoss-user] Invalid protocol jndi exception thrown 
> > > by tomcat 4
> > > Beta 3
> > > 
> > > 
> > > I am using Jboss as my ejb server and tomcat 4 Beta 3.  Both 
> > > are running on
> > > the 
> > > same machine, but different processes (2 jvms).  I have 
> > > tested the ejb on
> > > it's 
> > > own from the command line and works fine for the error I am 
> > > getting in a 
> > > servlet and jsp.  Here is what i have:
> > >EJB1 returns primaryKeyEJB2
> > >on EJB2 I execute a method which returns a string.  
> > > 
> > > EJB1 works fine, but when I execute a method on EJB2 I get 
> > > the following 
> > > exception.  In my jar file I have all the required classes, I 
> > > tried copying
> > > the 
> > > jndi in various lib folders, but no go.  I even tried a copy 
> > > of jndi that i 
> > > downloaded from sun, but still no go.   Can someone look into 
> > > this and help 
> > > suggest some possible sollutions.  Thanks,
> > > 
> > > 
> > > 
> > > 
> > > java.lang.reflect.UndeclaredThrowableException
> > > java.lang.reflect.UndeclaredThrowableException:
> > > java.net.MalformedURLException:
> > > java.lang.NullPointerException: invalid url: jndi:/WEB-
> > > INF/lib/myservlet_with_ejb_client_classes.jar!/
> > > (java.
> > > net.MalformedURLException: unknown protocol: jndi)
> > > at
> > > 
> > 
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> > > RemoteCall.java:245)
> > > at
> > > 
> > 
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> > > 220)
> > > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> > > at
> > > 
> > 
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un
> > > known Source)
> > > at
> > > 
> > 
> org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.
> > > java:182)
> > > at $Proxy4.getArtist(Unknown Source)
> > > at
> > > com.mydomain.servlets.av.AlbumDetailView.processRequest(AlbumD
> > > etailView.j
> > > ava:150)
> > > at
> > > com.mydomain.servlets.util.RequestManagerServlet.processReques
> > > t(RequestMa
> > > nagerServlet.java:458)
> > > at
> > > com.mydomain.servlets.util.RequestManagerServlet.doGet(Request
> > > ManagerServ
> > > let.java:186)
> > > at 
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > at 
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > > 
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> > > icationFilterChain.java:246)
> > > at
> > > 
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> > > ilterChain.java:191)
> > > at
> > > 
> > 

[JBoss-user] CORBA callbacks into JBoss

2001-04-26 Thread John Camelon

hello list:

one of the reasons that i want to use an application server such as JBoss is
to take advantage of the runtime environment that EJBs provide, particularly
the pooling and scaling aspects of EJB. also, the hot deploy mechanism is
much valued in the run-time scenarios i am looking at.

however, one of the pieces that i wish to integrate with has a CORBA
interface and supports a callback model. some CORBA calls will be
synchronous, while others will have at least one (if not several)
asynchronous callbacks into EJB land. this seems like a bit of a misfit,
unfortunately.

the only scenario that i can see possibly working is to proxy the external
CORBA interface into some kind of layer that manages the EJB callbacks. at
first glance i do not see, however, how this would allow for easy scaling
the way that EJBs inherently allow. also, it appears to require a lot of
knowledge about the EJBs trying to use the CORBA in order to resume the
callbacks.

does anyone have any suggestions for me? is this scenario too ill fit for
EJB?

johnc



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



Re: [JBoss-user] Getting BMP JDBC Connection - HELP...

2001-04-26 Thread danch

and then your URL should read 'java:comp/env/jdbc/mySQLDB' - no slash
between 'java:' and 'comp'

-danch

Nguyen Thanh Phong wrote:
> 
> You have to configure the resource reference before you can use it.
> 
> Put this into your ejb-jar.xml
> 
> 
>   jdbc/mySQLDB
>   javax.sql.DataSource
>   Container
> 
> 
> Put this into your jboss.xml
> 
>   
> jdbc/mySQLDB
> java:/mySQLDB
>   
> 
> Nguyen Thanh Phong   Tel: 84-8-837 25 06/837 25 07
> Saigon Software Development Company (SDC)Fax: 84-8-837 25 11
> 10 Co Giang Street, Dist I, HCMC Email:
> [EMAIL PROTECTED]
> Vietnam
> 
> - Original Message -
> From: Jeff Holmes <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 26, 2001 8:07 AM
> Subject: [JBoss-user] Getting BMP JDBC Connection - HELP...
> 
> > I'm using the Enterprise Java Beans book from Oreilly to learn how to use
> > EJB's.  I am stuck right now.  I use mySQL and have succeded in creating a
> > CMP, but I anc not get a DB connection using the BMP.
> > (DataSource)jndiCntx.lookup("java:/comp/env/jdbc/mySQLDB");
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



RE: [JBoss-user] Invalid protocol jndi exception thrown by tomcat 4 Beta 3

2001-04-26 Thread Shah, Mayank

Simon,

Your suggestion did not work.  I disabled naming, no go.  I also tried
passing a properties object to new InitialContext for locating ejbs, and
still no go.

Any more suggestions?

Mayank

-Original Message-
From: Bordet, Simone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:28 AM
To: '[EMAIL PROTECTED]'
Subject: R: [JBoss-user] Invalid protocol jndi exception thrown by
tomcat 4 Beta 3


Hey,

> No, I don't use that option, I will try it out latter today.  
> What does that
> option do? (disable naming, can you elabrate)

Catalina comes with its own naming implementation, that is by default
active.
So if you have code under web-inf/lib or web-inf/classes that does new
InitialContext(), even if a jndi.properties is in the web application
classpath (pointing to a different naming service than the Catalina one),
Catalina get confused and barfs unknown protocol: jndi

Since JBoss has its own naming service, you should probably start Catalina
with the -nonaming option.

I didn't try Catalina with JBoss, but with another application I wrote (that
has its own naming service), the -nonaming option did the job. Probably will
do also for JBoss, but I'm not 100% sure of this.

Let us know.

HTH,

Simon

> 
> Thanks,
> 
> Mayank
> 
> -Original Message-
> From: Bordet, Simone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 8:51 AM
> To: '[EMAIL PROTECTED]'
> Subject: R: [JBoss-user] Invalid protocol jndi exception thrown by
> tomcat 4 Beta 3
> 
> 
> Hey,
> 
> how do you start Catalina ? Do you use the -nonaming option ?
> I launch it with (W2K):
> catalina run -nonaming from the Tomcat bin directory.
> 
> HTH,
> 
> Simon
> 
> > -Messaggio originale-
> > Da: Shah, Mayank [mailto:[EMAIL PROTECTED]]
> > Inviato: mercoledì 25 aprile 2001 14:35
> > A: '[EMAIL PROTECTED]'
> > Oggetto: [JBoss-user] Invalid protocol jndi exception thrown 
> > by tomcat 4
> > Beta 3
> > 
> > 
> > I am using Jboss as my ejb server and tomcat 4 Beta 3.  Both 
> > are running on
> > the 
> > same machine, but different processes (2 jvms).  I have 
> > tested the ejb on
> > it's 
> > own from the command line and works fine for the error I am 
> > getting in a 
> > servlet and jsp.  Here is what i have:
> >EJB1 returns primaryKeyEJB2
> >on EJB2 I execute a method which returns a string.  
> > 
> > EJB1 works fine, but when I execute a method on EJB2 I get 
> > the following 
> > exception.  In my jar file I have all the required classes, I 
> > tried copying
> > the 
> > jndi in various lib folders, but no go.  I even tried a copy 
> > of jndi that i 
> > downloaded from sun, but still no go.   Can someone look into 
> > this and help 
> > suggest some possible sollutions.  Thanks,
> > 
> > 
> > 
> > 
> > java.lang.reflect.UndeclaredThrowableException
> > java.lang.reflect.UndeclaredThrowableException:
> > java.net.MalformedURLException:
> > java.lang.NullPointerException: invalid url: jndi:/WEB-
> > INF/lib/myservlet_with_ejb_client_classes.jar!/
> > (java.
> > net.MalformedURLException: unknown protocol: jndi)
> > at
> > 
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> > RemoteCall.java:245)
> > at
> > 
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> > 220)
> > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> > at
> > 
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un
> > known Source)
> > at
> > 
> org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.
> > java:182)
> > at $Proxy4.getArtist(Unknown Source)
> > at
> > com.mydomain.servlets.av.AlbumDetailView.processRequest(AlbumD
> > etailView.j
> > ava:150)
> > at
> > com.mydomain.servlets.util.RequestManagerServlet.processReques
> > t(RequestMa
> > nagerServlet.java:458)
> > at
> > com.mydomain.servlets.util.RequestManagerServlet.doGet(Request
> > ManagerServ
> > let.java:186)
> > at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> > icationFilterChain.java:246)
> > at
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> > ilterChain.java:191)
> > at
> > 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> > alve.java:255)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> > ..java:566)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> > a:472)
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
> > 
> > at
> > 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> > alve.java:225)
> > at
> > 
> org.apache

[JBoss-user] starting on jbosstest

2001-04-26 Thread aswath satrasala

Hi,
Is there FAQ or document on
how to run jbosstest against jboss

I download a snapshot of jboss and jbosstest.

Next what?

-Aswath
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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



[JBoss-user] Many threads in JBoss java VM

2001-04-26 Thread Richard Conway


Whilst testing our website with approx. 40 users I noticed that the JBoss
java process had about 110 threads. This struck me as quite a lot - my main
concern being how the system will scale with more users.

Are there any practical limits to the number of threads in a java virtual
machine. For example, does the performance of the VM degrade when there are
too many threads.

Is there an alternative JBoss configuration which would help - eg. using
serveral JBoss processes in some sort of load-balanced cluster (as can be
done for Tomcat).

We are using Sun's Java Hotspot Client VM (build 1.3.0-C) on a Solaris 2.6
platform.
The JBoss version is '2.0 FINAL'.

Any help much appreciated ?

Richard.

---
Richard Conway ([EMAIL PROTECTED])
---
This message is confidential; its contents do not constitute a commitment by
The VEGA Group PLC except where provided for in a written agreement between
you and The VEGA Group PLC. Any unauthorised disclosure, use or
dissemination, either whole or partial, is prohibited. If you are not the
intended recipient of the message, please notify the sender immediately. 



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



[JBoss-user] help

2001-04-26 Thread Bob Bartholomay


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 6:39 AM
Subject: JBoss-user digest, Vol 1 #328 - 10 msgs


> Send JBoss-user mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JBoss-user digest..."
>
>
> Today's Topics:
>
>1. SV: [JBoss-user] EJB Debugging in jBoss? (Lennart Petersson)
>2. DataSource bound to wrong database with stateless session bean
(Nguyen Thanh Phong)
>3. Re: EJB Debugging in jBoss? (Wei Jiang)
>4. RE: why i can't debug jboss2.2 in jbuilder? (Ozgur Kilic)
>5. RE: EJB Debugging in jBoss? (Sacha Labourey)
>6. DB JNDI name (Maris Orbidans)
>7. RE: JMQ question (Taylor, Richard)
>8. custom finders with MS SQL Server (Cumps Jef)
>9. Re: mysql exception (Maris Orbidans)
>   10. New user - problem with SQLException (Jakub Godoniuk)
>
> --__--__--
>
> Message: 1
> From: "Lennart Petersson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: SV: [JBoss-user] EJB Debugging in jBoss?
> Date: Thu, 26 Apr 2001 12:08:52 +0200
> Reply-To: [EMAIL PROTECTED]
>
> Look here!
>
> http://www.jboss.org/documentation/HTML/ch11s102.html
>
> /Lennart
>
>
>
> --__--__--
>
> Message: 2
> From: "Nguyen Thanh Phong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Thu, 26 Apr 2001 17:38:58 +0700
> Subject: [JBoss-user] DataSource bound to wrong database with stateless
session bean
> Reply-To: [EMAIL PROTECTED]
>
> Hello,
>
> I think I have made something totally wrong but don't know what is wrong.
> Please help.
>
> I have configure DB2 to be bound to java:/DB2DS.
>
> In my ejb-jar.xml, I have
>
> 
>   jdbc/IdGeneratorDS
>   javax.sql.DataSource
>   Container
> 
>
> In my jboss.xml, I have
>
>   
> jdbc/IdGeneratorDS
> java:/DB2DS
>   
>
> In my standardjaws.xml I have
>
> 
> java:/DB2DS
> DB2
> true
>
> However, when I test my bean bean, I saw that it use a connection to the
> DefaultDS, which is the HypersonicDB as preconfigured with JBoss (see
trace
> below).
>
> Strangely, if I configure my DB2 to be bound to DefaultDS, everything
> works!!!
>
> Any helps are greatly appreciated.
>
> Phong.
>
> [DefaultDS] Resource
> 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@4293f
> 8' enlisted for
> 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@35dac4'.
> [DefaultDS] Pool DefaultDS [1/1/10] gave out pooled object:
> org.opentools.minerv
> a.jdbc.xa.wrapper.XAConnectionImpl@35dac4
> [GeneratorIDBean] java.sql.SQLException: Table not found: IDGENERATOR in
> stateme
> nt [SELECT * FROM IDGENERATOR]
> [GeneratorIDBean]   at org.hsql.Trace.getError(Trace.java:124)
> [GeneratorIDBean]   at org.hsql.Result.(Result.java:70)
> [GeneratorIDBean]   at
> org.hsql.jdbcConnection.executeHSQL(jdbcConnection.ja
> va:644)
> [GeneratorIDBean]   at
> org.hsql.jdbcConnection.execute(jdbcConnection.java:5
> 40)
> [GeneratorIDBean]   at
> org.hsql.jdbcStatement.fetchResult(jdbcStatement.java
> :499)
> [GeneratorIDBean]   at
> org.hsql.jdbcStatement.executeQuery(jdbcStatement.jav
> a:37)
> [GeneratorIDBean]   at
> org.opentools.minerva.jdbc.StatementInPool.executeQue
> ry(StatementInPool.java:141)
> [GeneratorIDBean]   at
> sdc.smart.util.GeneratorIDBean.getNewRange(GeneratorI
> DBean.java:117)
> [GeneratorIDBean]   at
> sdc.smart.util.GeneratorIDBean.getId(GeneratorIDBean.
> java:87)
> [GeneratorIDBean]   at
> sdc.smart.util.GeneratorIDBean.getID(GeneratorIDBean.
> java:68)
> [GeneratorIDBean]   at java.lang.reflect.Method.invoke(Native Method)
> [GeneratorIDBean]   at
> org.jboss.ejb.StatelessSessionContainer$ContainerInte
> rceptor.invoke(StatelessSessionContainer.java:472)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterce
> ptor.invoke(StatelessSessionInstanceInterceptor.java:87)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> nterceptorCMT.java:133)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> tions(TxInterceptorCMT.java:263)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
> ceptorCMT.java:99)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
> rityInterceptor.java:190)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
> eptor.java:195)
> [GeneratorIDBean]   at
> org.jboss.ejb.StatelessSessionContainer.invoke(Statel
> essSessionContainer.java:271)
> [GeneratorIDBean]   at
> org.jboss.ejb.plugins.jrmp.server.

Re: [JBoss-user] Jboss on AS/400

2001-04-26 Thread danch



Ingo Bruell wrote:
> 
> Hi Rusty,
> 
> RW> I noticed that AS/400 is listed on the supported platforms list. Does anyone
> RW> have any direct experience or know of any documentation that I should be
> RW> aware of regarding this platform. I'm using V4R5 with JDK1.2.2 soon to
> RW> upgrade to 1.3.
> 
> It is recommendable to upgrade to 1.3 because of a bug in RMI Support.
> I have installed it on a Customer AS/400 with 1.2.2 JBoss starts well,
> the  first  time  slow because OS/400 generates native code out of the
> jars, but if i try to connect JBoss crashes cause of the bug.
You can 'preoptimize' jars that you install as well. Don't remember the
command offhand, though.

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


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



[JBoss-user] downloading the docs for local browsing

2001-04-26 Thread Maxime Levesque


 The online browsable docs are great,
but i'd like to download them, they
don't seem to be packaged for downloading...

(I live in an area where a dial up connection
is the only choice)...


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



Re: [JBoss-user] why i can't debug jboss2.2 in jbuilder?

2001-04-26 Thread danch

Is the 'tmp' directory (from jboss dist) in you JBuilder project's
classpath?

> jikai51 wrote:
> 
> I exactly follow the every things in the howto article of jboss doc.
> but jbuilder can't startup jboss, it said can't find the jboss tmp dir
> what's wrong?
> 
> [J2EE Deployer Default] Initializing
> [J2EE Deployer Default] Initialization failed
> [J2EE Deployer Default] java.io.IOException: Failed to get /tmp.properties URL; 
>Temporary directory does not exist!
> 
>Name: iWPS260d.WPS
>iWPS260d.WPSType: text/wps
>Encoding: base64
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



[JBoss-user] CreateException frow Servlet only

2001-04-26 Thread Maris Orbidans


hello

When I try to create a BMP Bean from a servlet it throws an exception.
When I create it from an application it works.  The same case with J2RI
server.

Any clue ???

Maris

javax.ejb.CreateException at
sd70092.ejb.regpaymentBean.ejbCreate(regpaymentBean.java:67) at
sd70092.ejb.regpaymentBean.ejbCreate(regpaymentBean.java:50) at
java.lang.reflect.Method.invoke(Native Method) at
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManag
er.java:121) at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441) at
java.lang.reflect.Method.invoke(Native Method) at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:639) at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:160) at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:87) at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263) at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:164) at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316) at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:436) at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
at $Proxy11.create(Unknown Source) at
sd70092.ejb.RegPServlet.doPost(RegPServlet.java:103) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at
org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


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



RE: [JBoss-user] starting on jbosstest

2001-04-26 Thread Kimpton,C (Chris)

Hi,

> -Original Message-
> From: aswath satrasala [mailto:[EMAIL PROTECTED]]

> Is there FAQ or document on
> how to run jbosstest against jboss
> 
> I download a snapshot of jboss and jbosstest.
> 
> Next what?
> 

Start your jboss server.

Build the tests - using the scripts in src/build

Run the tests - using the ant file run_tests.xml

Or using the GUI version of junit in dist/bin - I think...

Feel free to post patches to sourceforge to sort out the few that don't
work.

HTH,
Chris


This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Coöperatieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.



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



Re: [JBoss-user] New user - problem with SQLException

2001-04-26 Thread Andrius Juozapaitis

: Do not use char because the jvm has a bug with it.

IIRC rickard mentioned once that this bug is fixed in the new  j2sdk1.3.1:
http://developer.java.sun.com/developer/earlyAccess/j2sdk131/

regards,
--andrius




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



Re: [JBoss-user] New user - problem with SQLException

2001-04-26 Thread Ingo Bruell

Hi Jakub,


JG> Hello

JG> I'm new user of JBoss and have a problem. I've created an EntityBean. Then
JG> runned it on JBoss. Everything was OK untill restart of JBoss. It started
JG> ok, created tables for my Bean. But when I runned a client for my Bean,
JG> and it tried to get it from database, I received exceptions:


JG> java.rmi.ServerException: RemoteException occurred in server thread;
JG> nested exception is:
JG> javax.transaction.TransactionRolledbackException: Load failed;
JG> nested exception is:
JG> java.sql.SQLException: Unable to load a ResultSet column into a variable
JG> of type 'java.lang.Character': java.io.StreamCorruptedException:
JG> Caught EOFException while reading the stream header;

Do not use char because the jvm has a bug with it.


so long


Ingo Bruell

---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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



RE: [JBoss-user] DB JNDI name

2001-04-26 Thread Miranda Carlos
Title: RE: [JBoss-user] DB JNDI name





your String stDbName = "java:/inetbankDB"


in your jaws.xml or standartjaws.xml put 

    java:/inetbankDB
    your mapping
    false //  for cmp
...



in your initial context put prop :
for example:
 Properties prop = new Properties();
 prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
 prop.put(Context.PROVIDER_URL,"localhost:1099"); 
 InitialContext jndiContext = new InitialContext(prop);


        


bye


-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 26 de Abril de 2001 08:23 a.m.
To: [EMAIL PROTECTED]
Subject: [JBoss-user] DB JNDI name



hello


Could someone tell me how to connect to a database from BMP bean.
Help would be greatly appreciated !


Maris



I got exception:


[RegpaymentBean] javax.naming.NameNotFoundException: inetbankDB not bound



In method:



private final String stDbName = "java:comp/env/inetbankDB";
..


 private Connection getDbConnection() throws NamingException,SQLException
 {
   InitialContext jndiContext = new InitialContext();
   DataSource source = (DataSource) jndiContext.lookup(stDbName);
   return source.getConnection();


 }


jboss.jcml  contains


  



name="DefaultDomain:service=JdbcProvider">
 org.gjt.mm.mysql.Driver




name="DefaultDomain:service=XADataSource,name=inetbankDB">
 inetbankDB
 
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
 jdbc:mysql://localhost/ejbeans
 
 






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





[JBoss-user] New user - problem with SQLException

2001-04-26 Thread Jakub Godoniuk


Hello

I'm new user of JBoss and have a problem. I've created an EntityBean. Then
runned it on JBoss. Everything was OK untill restart of JBoss. It started
ok, created tables for my Bean. But when I runned a client for my Bean,
and it tried to get it from database, I received exceptions:


java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
javax.transaction.TransactionRolledbackException: Load failed;
nested exception is:
java.sql.SQLException: Unable to load a ResultSet column into a variable
of type 'java.lang.Character': java.io.StreamCorruptedException:
Caught EOFException while reading the stream header;

What can be wrong?


Jakub Godoniuk


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



[JBoss-user] Re: mysql exception

2001-04-26 Thread Maris Orbidans



MYSQL throws following exception:
any ideas ?

Maris


[RegpaymentBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
 javax.ejb.EJBException
[RegpaymentBean] java.lang.NullPointerException
[RegpaymentBean]  at
org.gjt.mm.mysql.Buffer.writeStringNoNull(Buffer.java:391)
[RegpaymentBean]  at
org.gjt.mm.mysql.PreparedStatement.executeUpdate(PreparedStatement.java)
[RegpaymentBean]  at
org.opentools.minerva.jdbc.PreparedStatementInPool.executeUpdate(PreparedSta
tementInPool.java:82)
[RegpaymentBean]  at
sd70092.ejb.regpaymentBean.ejbCreate(regpaymentBean.java:122)
[RegpaymentBean]  at
sd70092.ejb.regpaymentBean.ejbCreate(regpaymentBean.java:49)
[RegpaymentBean]  at java.lang.reflect.Method.invoke(Native Method)
[RegpaymentBean]  at
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManag
er.java:121)
[RegpaymentBean]  at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)
[RegpaymentBean]  at java.lang.reflect.Method.invoke(Native Method)
[RegpaymentBean]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:639)
[RegpaymentBean]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:160)
[RegpaymentBean]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:87)
[RegpaymentBean]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[RegpaymentBean]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[RegpaymentBean]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[RegpaymentBean]  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:164)
[RegpaymentBean]  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[RegpaymentBean]  at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
[RegpaymentBean]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:369)
[RegpaymentBean]  at java.lang.reflect.Method.invoke(Native Method)
[RegpaymentBean]  at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[RegpaymentBean]  at sun.rmi.transport.Transport$1.run(Transport.java:142)
[RegpaymentBean]  at java.security.AccessController.doPrivileged(Native
Method)
[RegpaymentBean]  at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[RegpaymentBean]  at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[RegpaymentBean]  at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[RegpaymentBean]  at java.lang.Thread.run(Thread.java:484)



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



[JBoss-user] custom finders with MS SQL Server

2001-04-26 Thread Cumps Jef

Hi, 

I am developping a bean called RoadDataBean and I am writing some custom finders for 
it. The data is stored in an SQL-Server database, dates are stored as long's.

The finder I'm working on, is as follows: 

public interface RoadDataBeanHome extends EJBHome
{
  ...

  public Collection findBetweenDates(String id, long startDate, 
 long endDate) throws RemoteException, FinderException;
}

In the file jaws.xml, I have put the next: 


 

RoadDataBean

findBetweenDates
wc_id = '{0}' and date between {1} and  
  {2}
rd_id asc


true
true 



When i try to call the finder, i get a FinderException, and i can't figure out why !!

I checked the sql-statement, it's ok. I thaught maybe the exception tells me that the 
resultset is empty, but it isn't, i checked !?!?

CAN ANYONE HELP ME ??? Do you have experience with custom finders? An example that 
works for MS SQL Server? Any hints or tips?

Any help would be really appreciated !!!

thanks in advance, Jef



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



RE: [JBoss-user] JMQ question

2001-04-26 Thread Taylor, Richard

I've followed the Sun tutorial on this and it waas very helpful.  Take a
look at http://java.sun.com/jms/tutorial

The only problem I came up against was the JNDI name for the queue or topic.
The tutorial says to connect to QueueName or TopicName but in JBoss you have
to connect to queue/QueueName or topic/TopicName.

Richard.

-Original Message-
From: Jason Dillon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 8:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JMQ question


I do not know if there is any official documentation on this, but if you
look at conf/default/jbossmq.xml, you can define new queues by adding some
xml like this:

  MyNewQueue

--jason


On Wed, 25 Apr 2001, Malia Zaheer wrote:

> I need some help on getting start with using JBossMQ.  I don't know how to
> create destinations using JBoss server.  I want to create a point-to-point
> queue, and I didn't see any documentation on how to do that.  Any help
would
> be appreciated.
>
> Thanks,
> Malia
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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


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

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



RE: [JBoss-user] EJB Debugging in jBoss?

2001-04-26 Thread Sacha Labourey

Just one more things concerning debugging with VAJ...

In my case, debugging wasn't always working in VAJ. I had to modify
build.xml and recompile JBoss. The modification was to set to debug flag to
true.

Cheers,



Sacha



> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Wei Jiang
> Envoye : jeudi, 26 avril 2001 12:37
> A : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] EJB Debugging in jBoss?
>
>
> You can trace instead of debug.
> Trace can be on and off on production, but debug can not.
> SuperLogging allows you do source code level trace.
>
> Try SuperLogging of Super from www.acelet.com.
> It is free for open source (Jonas, jboss and j2ee-ri).
> Evaluation edition is free for other servers.
>
> SuperLogging is a full-featured logging tool:
>
>  * It is a centralized logging, guaranteed tobe chronolotical.
>It supports distributed computing and works well in any
>clustering environment. all log messages are recorded in
>one central place regardless which EJB runs on which
>server.
>
>  * It is platform neutral and EJB vendor neutral.
>
>  * All log statements used in the source code do not need be
>removed for production releases.  Log messages can be
>dynamically filter out and the performance penalty will be
>minimum.
>
>  * An open source wrapper com.acelet.opensource.logging.Alog is
>provided for preventing vendor lock in.  Source code of EJBs
>is not required for any modification if another logging
>packages is chosen. In that case,  the only modification
>needed is this wrapper, which is just a few lines of code.
>
>  * It is fully dynamically configurable by a Swing tool. The
>configurable attributes include the following:
>
>  * Choice of configuration scope: Global Dynamic, Global Static
>and Singleton.
>
>  * Choice of mode: Quiet, Verbose and Conditional.
>
>  * Class registration: log messages will be printed out for
>registered classes only.
>
>  * Log level: lower level log requests will be filtered out.
>
>  * It provides Tracing facilities which show both log messages
>and source code with marked line in question.
>
>  * It provides built-in email alert method and alert interval
>control.
>
>  * It provides email methods which allow sending email by a
>simple method call.
>
>
>
> --- "jK.MkIII" <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have one question.
> >
> > What are possibilities for debugging beans running inside jBoss? I use
> > VisualAge for Java 3.5 EE so I am used to debugger in that and if there
> > is some way to use that debugger I would be really really happy :)  I
> > was even thinking about running jBoss inside VAJ, but that might kill my
> > poor computer :)  Would really need some solution how to keep this
> > running at usable speed (WTE was horribly slow, propably because for
> > some reason it totally reloaded all beans for every method call.. oh boy
> > all those JNDI calls :) but in jBoss I don't know how to debug my
> > beans..
> >
> >
> >
> > --
> > jK.MkIII
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] RE: why i can't debug jboss2.2 in jbuilder?

2001-04-26 Thread Ozgur Kilic

I had the same experince when I follow the instructions. You should add the
path of the tmp diretory to required libraries, too.

Ozgur

From: "jikai51"  <[EMAIL PROTECTED]>
To: "jboss-user"  <[EMAIL PROTECTED]>
Date: Thu, 26 Apr 2001 16:31:06 +0800
Subject: [JBoss-user] why i can't debug jboss2.2 in jbuilder?
Reply-To: [EMAIL PROTECTED]

I exactly follow the every things in the howto article of jboss doc.
but jbuilder can't startup jboss, it said can't find the jboss tmp dir
what's wrong?

[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialization failed
[J2EE Deployer Default] java.io.IOException: Failed to get /tmp.properties
URL; Temporary directory does not exist!


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



[JBoss-user] DataSource bound to wrong database with stateless session bean

2001-04-26 Thread Nguyen Thanh Phong

Hello,

I think I have made something totally wrong but don't know what is wrong.
Please help.

I have configure DB2 to be bound to java:/DB2DS.

In my ejb-jar.xml, I have


  jdbc/IdGeneratorDS
  javax.sql.DataSource
  Container


In my jboss.xml, I have

  
jdbc/IdGeneratorDS
java:/DB2DS
  

In my standardjaws.xml I have


java:/DB2DS
DB2
true

However, when I test my bean bean, I saw that it use a connection to the
DefaultDS, which is the HypersonicDB as preconfigured with JBoss (see trace
below).

Strangely, if I configure my DB2 to be bound to DefaultDS, everything
works!!!

Any helps are greatly appreciated.

Phong.

[DefaultDS] Resource
'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@4293f
8' enlisted for
'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@35dac4'.
[DefaultDS] Pool DefaultDS [1/1/10] gave out pooled object:
org.opentools.minerv
a.jdbc.xa.wrapper.XAConnectionImpl@35dac4
[GeneratorIDBean] java.sql.SQLException: Table not found: IDGENERATOR in
stateme
nt [SELECT * FROM IDGENERATOR]
[GeneratorIDBean]   at org.hsql.Trace.getError(Trace.java:124)
[GeneratorIDBean]   at org.hsql.Result.(Result.java:70)
[GeneratorIDBean]   at
org.hsql.jdbcConnection.executeHSQL(jdbcConnection.ja
va:644)
[GeneratorIDBean]   at
org.hsql.jdbcConnection.execute(jdbcConnection.java:5
40)
[GeneratorIDBean]   at
org.hsql.jdbcStatement.fetchResult(jdbcStatement.java
:499)
[GeneratorIDBean]   at
org.hsql.jdbcStatement.executeQuery(jdbcStatement.jav
a:37)
[GeneratorIDBean]   at
org.opentools.minerva.jdbc.StatementInPool.executeQue
ry(StatementInPool.java:141)
[GeneratorIDBean]   at
sdc.smart.util.GeneratorIDBean.getNewRange(GeneratorI
DBean.java:117)
[GeneratorIDBean]   at
sdc.smart.util.GeneratorIDBean.getId(GeneratorIDBean.
java:87)
[GeneratorIDBean]   at
sdc.smart.util.GeneratorIDBean.getID(GeneratorIDBean.
java:68)
[GeneratorIDBean]   at java.lang.reflect.Method.invoke(Native Method)
[GeneratorIDBean]   at
org.jboss.ejb.StatelessSessionContainer$ContainerInte
rceptor.invoke(StatelessSessionContainer.java:472)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.StatelessSessionInstanceInterce
ptor.invoke(StatelessSessionInstanceInterceptor.java:87)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
nterceptorCMT.java:133)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
tions(TxInterceptorCMT.java:263)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
ceptorCMT.java:99)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
rityInterceptor.java:190)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
eptor.java:195)
[GeneratorIDBean]   at
org.jboss.ejb.StatelessSessionContainer.invoke(Statel
essSessionContainer.java:271)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invoke(JRMPContainerInvoker.java:392)
[GeneratorIDBean]   at java.lang.reflect.Method.invoke(Native Method)
[GeneratorIDBean]   at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServe
rRef.java:241)
[GeneratorIDBean]   at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[GeneratorIDBean]   at
java.security.AccessController.doPrivileged(Native Me
thod)
[GeneratorIDBean]   at
sun.rmi.transport.Transport.serviceCall(Transport.jav
a:139)
java:68)
[GeneratorIDBean]   at java.lang.reflect.Method.invoke(Native Method)
[GeneratorIDBean]   at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[GeneratorIDBean]   at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[GeneratorIDBean]   at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[GeneratorIDBean]   at java.lang.reflect.Method.invoke(Native Method)
[GeneratorIDBean]   at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[GeneratorIDBean]   at
sun.rmi.transport.Transport$1.run(Transport.java:142)[GeneratorIDBean]
at java.security.AccessController.doPrivileged(Native Method)
[GeneratorIDBean]   at
sun.rmi.transport.Transport.serviceCall(Transp

Re: [JBoss-user] EJB Debugging in jBoss?

2001-04-26 Thread Wei Jiang

You can trace instead of debug.
Trace can be on and off on production, but debug can not.
SuperLogging allows you do source code level trace.

Try SuperLogging of Super from www.acelet.com.
It is free for open source (Jonas, jboss and j2ee-ri).
Evaluation edition is free for other servers.

SuperLogging is a full-featured logging tool:

 * It is a centralized logging, guaranteed tobe chronolotical.
   It supports distributed computing and works well in any 
   clustering environment. all log messages are recorded in 
   one central place regardless which EJB runs on which 
   server. 

 * It is platform neutral and EJB vendor neutral. 

 * All log statements used in the source code do not need be 
   removed for production releases.  Log messages can be 
   dynamically filter out and the performance penalty will be 
   minimum. 

 * An open source wrapper com.acelet.opensource.logging.Alog is 
   provided for preventing vendor lock in.  Source code of EJBs 
   is not required for any modification if another logging 
   packages is chosen. In that case,  the only modification 
   needed is this wrapper, which is just a few lines of code. 

 * It is fully dynamically configurable by a Swing tool. The 
   configurable attributes include the following: 

 * Choice of configuration scope: Global Dynamic, Global Static 
   and Singleton. 

 * Choice of mode: Quiet, Verbose and Conditional. 

 * Class registration: log messages will be printed out for 
   registered classes only. 

 * Log level: lower level log requests will be filtered out. 

 * It provides Tracing facilities which show both log messages 
   and source code with marked line in question. 

 * It provides built-in email alert method and alert interval 
   control. 

 * It provides email methods which allow sending email by a 
   simple method call. 



--- "jK.MkIII" <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I have one question.
> 
> What are possibilities for debugging beans running inside jBoss? I use
> VisualAge for Java 3.5 EE so I am used to debugger in that and if there
> is some way to use that debugger I would be really really happy :)  I
> was even thinking about running jBoss inside VAJ, but that might kill my
> poor computer :)  Would really need some solution how to keep this
> running at usable speed (WTE was horribly slow, propably because for
> some reason it totally reloaded all beans for every method call.. oh boy
> all those JNDI calls :) but in jBoss I don't know how to debug my
> beans..
> 
> 
> 
> --
> jK.MkIII
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



[JBoss-user] DB JNDI name

2001-04-26 Thread Maris Orbidans

hello

Could someone tell me how to connect to a database from BMP bean.
Help would be greatly appreciated !

Maris


I got exception:

[RegpaymentBean] javax.naming.NameNotFoundException: inetbankDB not bound


In method:


private final String stDbName = "java:comp/env/inetbankDB";
..

 private Connection getDbConnection() throws NamingException,SQLException
 {
   InitialContext jndiContext = new InitialContext();
   DataSource source = (DataSource) jndiContext.lookup(stDbName);
   return source.getConnection();

 }

jboss.jcml  contains

  


 org.gjt.mm.mysql.Driver



 inetbankDB
 org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
 jdbc:mysql://localhost/ejbeans
 
 





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



SV: [JBoss-user] EJB Debugging in jBoss?

2001-04-26 Thread Lennart Petersson

Look here!

http://www.jboss.org/documentation/HTML/ch11s102.html

/Lennart


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



RE: [JBoss-user] EJB Debugging in jBoss?

2001-04-26 Thread Sacha Labourey

Hello,

Please read the JBoss manual (!)

There is an how to on how to debug beans from VAJ. But I admit it, it is not
easy to find it as it is labeled:

"How to Run and Debug EJBs using jBoss 2.0 inside of Visual Age for Java
version 3.5"... :)


Furthermore, read the JBoss ML archives: another user suggested a simpler
method by importing a pre-built VAJ project including all needed setup.

Cheers,




Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Raffael
> Herzog
> Envoye : jeudi, 26 avril 2001 11:44
> A : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] EJB Debugging in jBoss?
>
>
> "jK.MkIII" <[EMAIL PROTECTED]> wrote:
>
> > What are possibilities for debugging beans running inside jBoss? I
> > use VisualAge for Java 3.5 EE so I am used to debugger in that and
> > if there is some way to use that debugger I would be really really
> > happy :) I was even thinking about running jBoss inside VAJ, but
> > that might kill my poor computer :) Would really need some solution
> > how to keep this running at usable speed (WTE was horribly slow,
> > propably because for some reason it totally reloaded all beans for
> > every method call.. oh boy all those JNDI calls :) but in jBoss I
> > don't know how to debug my beans..
>
> Hmmm... I don't know whether this works with the VAJ debugger, but the
> best way I found up to now was to use JDPA. Just start the VM for
> JBoss in JDPA mode and attach to the JVM with a JDPA capable debugger
> of your choice.
>
>
> --
> (o_ Raffael Herzog
> //\[EMAIL PROTECTED]
> V_/_
> May the penguin be with you!
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



  1   2   >