Re: [JBoss-user] Transaction Serialization issue

2002-08-26 Thread David Jencks

Well, if you are trying to propagate transactions between jboss instances
you should be using tyrex.  The jboss tx manager won't do that, although I
am working on it via the jca 1.5 transaction import contracts.  (tx import
is working, but I haven't thought about how to export an xid with the
invocation)

david jencks

On 2002.08.27 01:00:00 -0400 Brian Towles wrote:
> Howdy all
> 
> I have been trying to implement some cross server EJB calling between
> two Jboss instances (3.0.1) and hit some MarshalExceptions caused by 
> Not Serializable TransactionImpl, TxCapsule and
> TimeoutFactory$TimeoutImpl so far.   
> 
> I thought at first it was just missing a Serializable interface   but as
> I fix one, another thing thats not Serializable pops up. So its more
> likely that I'm doing something wrong.
> 
> This is using JNP to talk from one JBoss instance to another and the
> beans from one call the beans from another.  Ive tried this using
> LinkRef and direct JNDI lookup based on properties passed  and I get the
> same results.
> (Cant seem to get ExternalContext working in 3.0.1 for some reason so I
> have not tried that)
> 
> These are Stateless Session Beans and the exception is being thrown when
> the create is being called to get the RemoteInterface.
> 
> Am i just missing something?   I know I cant be the only person trying
> this.  So its likely im pulling a bonehead.
> 
> 
> Any help would be appreciated.
> 
> Thanks
> -=Brian
> 
> 
> 
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is: 
> java.io.NotSerializableException: org.jboss.tm.TransactionImpl
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> Source)
> at
> 
>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> at
> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy48.create(Unknown Source)
> 
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is: 
> java.io.NotSerializableException: org.jboss.tm.TxCapsule
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> Source)
> at
> 
>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> at
> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy48.create(Unknown Source)
> 
> 
> 
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is: 
> java.io.NotSerializableException:
> org.jboss.util.timeout.TimeoutFactory$TimeoutImpl
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> Source)
> at
> 
>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> at
> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy48.create(Unknown Source)
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


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



Re: [JBoss-user] Transaction Serialization issue

2002-08-26 Thread Brian Towles

Nevermind   I forgot about Tyrex

Knew I was doing something stupid.

-=Brian


On Tue, 2002-08-27 at 00:00, Brian Towles wrote:
> Howdy all
> 
> I have been trying to implement some cross server EJB calling between
> two Jboss instances (3.0.1) and hit some MarshalExceptions caused by 
> Not Serializable TransactionImpl, TxCapsule and
> TimeoutFactory$TimeoutImpl so far.   
> 
> I thought at first it was just missing a Serializable interface   but as
> I fix one, another thing thats not Serializable pops up. So its more
> likely that I'm doing something wrong.
> 
> This is using JNP to talk from one JBoss instance to another and the
> beans from one call the beans from another.  Ive tried this using
> LinkRef and direct JNDI lookup based on properties passed  and I get the
> same results.
> (Cant seem to get ExternalContext working in 3.0.1 for some reason so I
> have not tried that)
> 
> These are Stateless Session Beans and the exception is being thrown when
> the create is being called to get the RemoteInterface.
> 
> Am i just missing something?   I know I cant be the only person trying
> this.  So its likely im pulling a bonehead.
> 
> 
> Any help would be appreciated.
> 
> Thanks
> -=Brian
> 
> 
> 
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is: 
> java.io.NotSerializableException: org.jboss.tm.TransactionImpl
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> Source)
> at
> 
>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> at
> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy48.create(Unknown Source)
> 
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is: 
> java.io.NotSerializableException: org.jboss.tm.TxCapsule
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> Source)
> at
> 
>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> at
> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy48.create(Unknown Source)
> 
> 
> 
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is: 
> java.io.NotSerializableException:
> org.jboss.util.timeout.TimeoutFactory$TimeoutImpl
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
> at
> org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> Source)
> at
> 
>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
> at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
> at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> at
> org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
> at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> at $Proxy48.create(Unknown Source)
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




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



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread David Jencks

On 2002.08.26 22:44:02 -0400 Curt Johnson wrote:
> David Jencks wrote:
> 
> >I don't know where it is but someone mentioned that there is an sql/jdbc
> >way of accessing ldap. If this really exists, you can wrap that driver
> in
> >one of the jca-jdbc wrappers (probably the local tx one) and use it like
> >any other datasource with cmp.
> >
> Haven't ever heard of using SQL or JDBC to access an LDAP directory via 
> LDAP. Seems impractical since there is quite a bit of difference in 
> syntax. If you have any pointers let me know and I'll take a look. 
> Castor's DAX works as an SPI (Service Provider Interface) to their 
> DataBinding service. You can have an LDAP server backended by an RDBMS 
> acting as sort of a gateway, but this is considered sub-optimal and only 
> to be used for legacy databases.
> 

a couple of minutes searching the forums and googling turned up
http://developer.novell.com/ndk/ldapjdbc.htm

cmp is not magic.  jboss currently supports only cmp through jdbc.  You
could write your own ldap cmp PersistenceManager, if you have minimal
requirements it might not take forever.

david jencks

> >
> >If you do this I'd appreciate your contributing details of how,
> especially
> >the datasource configuration (ldap-service.xml or ldap-ds.xml for
> 3.2/4).
> >
> >If ldap does not support transactions you may need to be careful if you
> >write or update information that your writes always succeed;-)
> >
> You bring up a good point about transactions. I'll have to check on 
> that. I don't think I've ever heard of LDAP servers doing rollbacks, it 
> seems outside the scope of what most LDAP servers do. Of course it will 
> be in scope if I'm using it instead of an RDBMS.
> 
> Can't promise I'll find anything... I'm not really looking to have SQL 
> translated to LDAP to hit the server... It seems to kind of defeat the 
> purpose. Escpecially since CMP Entity Beans should be agnostic as far as 
> their datasource is concerned.
> 
> If you're looking for a way to have an LDAP server federated into the 
> JNDI tree, I believe the JBoss docs have that info. I'm quite sure I've 
> seen it in there.
> 
> Curt Johnson
> 
> >
> >david jencks
> >
> >On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
> >  
> >
> >>Holger Baxmann wrote:
> >>
> >>
> >>
> >>>AFAIK, matrix2 should provide valueable :) improvements for the
> >>>  
> >>>
> >>persistence
> >>
> >>
> >>>manager, including interceptors, detyped invokers on mbean level. so,
> >>>  
> >>>
> >>then
> >>
> >>
> >>>you may have serveral impl's for the persistance layer independend
> from
> >>>  
> >>>
> >>the
> >>
> >>
> >>>ejb container 8-). there should then ejbql working with hierarchical
> >>>  
> >>>
> >>data, a
> >>
> >>
> >>>parser for i.e. ldap dn syntax presumed.
> >>>
> >>>but, what is your objective? you want to have transactions, security
> ...
> >>>  
> >>>
> >>?
> >>
> >>
> >>I want to store app data in LDAP like users and such. In the same way 
> >>that you would use an RDBMS. For instance I can have my users conform
> to 
> >>the inetOrgPerson schema in LDAP then have a my entity beans do 
> >>operations to the LDAP server rather than the database. It's
> essentially 
> >>a way to have application potability in the data layer.
> >>
> >>For instance, one application I'm working on has a list of vendors for 
> >>our company, we also want a CRM application. LDAP is perfect for this
> so 
> >>I would like to have basic vendor information stored in the LDAP 
> >>directory where it can also be used for Address Books and CRM.
> >>
> >>
> >>
> >>>what is different from using the federated namespace in jndi for this
> >>>  
> >>>
> >>job ?
> >>
> >>
> >>Nothing really. In fact, that's what I would assume it would do. I
> could 
> >>write them as BMPs right now, but I figure as long as I'm looking for 
> >>ways to reduce the amount of code I have to write and maintain, like 
> >>using XDoclet, it would be nice if I could do CMP with an LDAP server 
> >>(or any JNDI provider) as the data store.
> >>
> >>BTW, it would be nice if there was a roadmap with feature lists like 
> >>this somewhere on the JBoss website... I pick up on some stuff from the
> 
> >>developers list but it would be cool to have an idea of what features 
> >>are coming down the pipe. This project never ceases to amaze me.
> >>
> >>Curt
> >>
> >>
> >>
> >>>thanks
> >>>bax
> >>>
> >>>but, whats your
> >>>- Original Message -
> >>>From: "Curt Johnson" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Monday, August 26, 2002 11:50 PM
> >>>Subject: [JBoss-user] LDAP as CMP backend?
> >>>
> >>>
> >>> 
> >>>
> >>>  
> >>>
> Hi guys, I was wondering if anyone had used LDAP for the backend for
> 
> 
> >>CMP
> >>
> >>
> entity beans.
> Does the CMP engine in Jboss support this? I'm looking for something
> like Castor's DAX but for CMP.
> 
> Is this a planned feature? 

[JBoss-user] JMX and database admin?

2002-08-26 Thread Michail Bikoulis

Hello,

We are developing an application using JBoss 2.4.4 and an Oracle
database on Windows 2000, and need an administration console for the
whole application. We are planning on releasing our system with other
databases as well, like mysql. The JMX console seems the natural tool to
use for this purpose so we are planning on extending it to cover simple
database admin, i.e. start/stop database.

Does developing an MBean to start/stop a database sound like the right
thing to do? Does anyone have any experience with this? Or are there
other tools out there that do simple database admin?

Thanks,

Mike




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



[JBoss-user] Transaction Serialization issue

2002-08-26 Thread Brian Towles

Howdy all

I have been trying to implement some cross server EJB calling between
two Jboss instances (3.0.1) and hit some MarshalExceptions caused by 
Not Serializable TransactionImpl, TxCapsule and
TimeoutFactory$TimeoutImpl so far.   

I thought at first it was just missing a Serializable interface   but as
I fix one, another thing thats not Serializable pops up. So its more
likely that I'm doing something wrong.

This is using JNP to talk from one JBoss instance to another and the
beans from one call the beans from another.  Ive tried this using
LinkRef and direct JNDI lookup based on properties passed  and I get the
same results.
(Cant seem to get ExternalContext working in 3.0.1 for some reason so I
have not tried that)

These are Stateless Session Beans and the exception is being thrown when
the create is being called to get the RemoteInterface.

Am i just missing something?   I know I cant be the only person trying
this.  So its likely im pulling a bonehead.


Any help would be appreciated.

Thanks
-=Brian



java.rmi.MarshalException: error marshalling arguments; nested exception
is: 
java.io.NotSerializableException: org.jboss.tm.TransactionImpl
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy48.create(Unknown Source)

java.rmi.MarshalException: error marshalling arguments; nested exception
is: 
java.io.NotSerializableException: org.jboss.tm.TxCapsule
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy48.create(Unknown Source)



java.rmi.MarshalException: error marshalling arguments; nested exception
is: 
java.io.NotSerializableException:
org.jboss.util.timeout.TimeoutFactory$TimeoutImpl
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy48.create(Unknown Source)





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



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Dain Sundstrom

This is planed for the new JBossCMP architecture planed for JBoss 4.0.

-dain

Curt Johnson wrote:
> Hi guys, I was wondering if anyone had used LDAP for the backend for CMP 
> entity beans.
> Does the CMP engine in Jboss support this? I'm looking for something 
> like Castor's DAX but for CMP.
> 
> Is this a planned feature? Should I put in a feature request? Any 
> pointers to information would be greatly appreciated.
> 
> Curt Johnson



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



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Holger Baxmann

> If you're looking for a way to have an LDAP server federated into the
> JNDI tree, I believe the JBoss docs have that info. I'm quite sure I've
> seen it in there.

jboss-service.xml:



external/ldap/nds
nds.ldap
javax.naming.ldap.InitialLdapContext
true


nds.ldap:

java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url=ldap://SONYBERT:636/dc=bitwind,dc=de
java.naming.security.principal=cn=Holger,ou=Technology,o=bitwind,c=DE,dc=bit
wind,dc=de
java.naming.security.authentication=simple
java.naming.security.credentials=manager

it runs over a ssl connection with mutual auth too.

bax
>
> Curt Johnson




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



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Holger Baxmann

> I don't know where it is but someone mentioned that there is an sql/jdbc
> way of accessing ldap. If this really exists, you can wrap that driver in
> one of the jca-jdbc wrappers (probably the local tx one) and use it like
> any other datasource with cmp.
>
yeap, there is one - in the novell ldap sdk. forget it ...
it has really rudimentary, you may call it functionality :)
they could not agree how they should treat the mapping between the dir
contexts and the database metadata databases, catalogs and schemas. they
stumbled and fall asleep.

1st rule: do not tweak ldap to relational use. so it is not recommendable to
try mapping the user/passwd/roles tables into ldap. instead use the source -
in this case the ldap source :)
inetOrgPerson schema object is a good starting point.
but if one dive deeper there are serveral incompatibilities which let you
alone in a complex porting world with a least the lowest common denominator
of functionalities - same procedure as last year, miss sophie. a good
example is the implementation of x509 certs in the ldap tree and the
proprietary extensions/modifications. openldap, novell edirectory and the
planet server from 'who will not be named', which is the netscape ldap.

a good example for this is how to get the metadata of the ldap, sometimes it
goes  ldap://my.ldap.host.jboss.org/cn=Schema, sometimes.

if we get the possibility to abstract from the varieties of the serveral
relational databases, we should use this mechs for other then table based
data [ldap, xml, xsd, mof ]

very interesting is the ability of ldap to store java classes _and_ objects,
JNDIReferences serialzied and marshalled objects by default - if the vendor
has the java schema loaded.

> If you do this I'd appreciate your contributing details of how, especially
> the datasource configuration (ldap-service.xml or ldap-ds.xml for 3.2/4).
>
i am always too late  just in the CA/RA/signing darkness to make it
usable

> If ldap does not support transactions you may need to be careful if you
> write or update information that your writes always succeed;-)
>
ldap is per se transactional, because all orperations are atomic =|-)
one should generally avoid read/write [update] operations - this is not the
world oof ldap: it is a more write once memory. a delete/create strategy
would be appreciated regarding the performance [whatever this is].

bax

> david jencks
>
> On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
> > Holger Baxmann wrote:
> >
> > >AFAIK, matrix2 should provide valueable :) improvements for the
> > persistence
> > >manager, including interceptors, detyped invokers on mbean level. so,
> > then
> > >you may have serveral impl's for the persistance layer independend from
> > the
> > >ejb container 8-). there should then ejbql working with hierarchical
> > data, a
> > >parser for i.e. ldap dn syntax presumed.
> > >
> > >but, what is your objective? you want to have transactions, security
...
> > ?
> > >
> > I want to store app data in LDAP like users and such. In the same way
> > that you would use an RDBMS. For instance I can have my users conform to
> > the inetOrgPerson schema in LDAP then have a my entity beans do
> > operations to the LDAP server rather than the database. It's essentially
> > a way to have application potability in the data layer.
> >
> > For instance, one application I'm working on has a list of vendors for
> > our company, we also want a CRM application. LDAP is perfect for this so
> > I would like to have basic vendor information stored in the LDAP
> > directory where it can also be used for Address Books and CRM.
> >
> > >
> > >what is different from using the federated namespace in jndi for this
> > job ?
> > >
> > Nothing really. In fact, that's what I would assume it would do. I could
> > write them as BMPs right now, but I figure as long as I'm looking for
> > ways to reduce the amount of code I have to write and maintain, like
> > using XDoclet, it would be nice if I could do CMP with an LDAP server
> > (or any JNDI provider) as the data store.
> >
> > BTW, it would be nice if there was a roadmap with feature lists like
> > this somewhere on the JBoss website... I pick up on some stuff from the
> > developers list but it would be cool to have an idea of what features
> > are coming down the pipe. This project never ceases to amaze me.
> >
> > Curt
> >
> > >
> > >thanks
> > >bax
> > >
> > >but, whats your
> > >- Original Message -
> > >From: "Curt Johnson" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Monday, August 26, 2002 11:50 PM
> > >Subject: [JBoss-user] LDAP as CMP backend?
> > >
> > >
> > >
> > >
> > >>Hi guys, I was wondering if anyone had used LDAP for the backend for
> > CMP
> > >>entity beans.
> > >>Does the CMP engine in Jboss support this? I'm looking for something
> > >>like Castor's DAX but for CMP.
> > >>
> > >>Is this a planned feature? Should I put in a feature request? Any
> > >>pointers to information would be greatly

Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Curt Johnson

David Jencks wrote:

>I don't know where it is but someone mentioned that there is an sql/jdbc
>way of accessing ldap. If this really exists, you can wrap that driver in
>one of the jca-jdbc wrappers (probably the local tx one) and use it like
>any other datasource with cmp.
>
Haven't ever heard of using SQL or JDBC to access an LDAP directory via 
LDAP. Seems impractical since there is quite a bit of difference in 
syntax. If you have any pointers let me know and I'll take a look. 
Castor's DAX works as an SPI (Service Provider Interface) to their 
DataBinding service. You can have an LDAP server backended by an RDBMS 
acting as sort of a gateway, but this is considered sub-optimal and only 
to be used for legacy databases.

>
>If you do this I'd appreciate your contributing details of how, especially
>the datasource configuration (ldap-service.xml or ldap-ds.xml for 3.2/4).
>
>If ldap does not support transactions you may need to be careful if you
>write or update information that your writes always succeed;-)
>
You bring up a good point about transactions. I'll have to check on 
that. I don't think I've ever heard of LDAP servers doing rollbacks, it 
seems outside the scope of what most LDAP servers do. Of course it will 
be in scope if I'm using it instead of an RDBMS.

Can't promise I'll find anything... I'm not really looking to have SQL 
translated to LDAP to hit the server... It seems to kind of defeat the 
purpose. Escpecially since CMP Entity Beans should be agnostic as far as 
their datasource is concerned.

If you're looking for a way to have an LDAP server federated into the 
JNDI tree, I believe the JBoss docs have that info. I'm quite sure I've 
seen it in there.

Curt Johnson

>
>david jencks
>
>On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
>  
>
>>Holger Baxmann wrote:
>>
>>
>>
>>>AFAIK, matrix2 should provide valueable :) improvements for the
>>>  
>>>
>>persistence
>>
>>
>>>manager, including interceptors, detyped invokers on mbean level. so,
>>>  
>>>
>>then
>>
>>
>>>you may have serveral impl's for the persistance layer independend from
>>>  
>>>
>>the
>>
>>
>>>ejb container 8-). there should then ejbql working with hierarchical
>>>  
>>>
>>data, a
>>
>>
>>>parser for i.e. ldap dn syntax presumed.
>>>
>>>but, what is your objective? you want to have transactions, security ...
>>>  
>>>
>>?
>>
>>
>>I want to store app data in LDAP like users and such. In the same way 
>>that you would use an RDBMS. For instance I can have my users conform to 
>>the inetOrgPerson schema in LDAP then have a my entity beans do 
>>operations to the LDAP server rather than the database. It's essentially 
>>a way to have application potability in the data layer.
>>
>>For instance, one application I'm working on has a list of vendors for 
>>our company, we also want a CRM application. LDAP is perfect for this so 
>>I would like to have basic vendor information stored in the LDAP 
>>directory where it can also be used for Address Books and CRM.
>>
>>
>>
>>>what is different from using the federated namespace in jndi for this
>>>  
>>>
>>job ?
>>
>>
>>Nothing really. In fact, that's what I would assume it would do. I could 
>>write them as BMPs right now, but I figure as long as I'm looking for 
>>ways to reduce the amount of code I have to write and maintain, like 
>>using XDoclet, it would be nice if I could do CMP with an LDAP server 
>>(or any JNDI provider) as the data store.
>>
>>BTW, it would be nice if there was a roadmap with feature lists like 
>>this somewhere on the JBoss website... I pick up on some stuff from the 
>>developers list but it would be cool to have an idea of what features 
>>are coming down the pipe. This project never ceases to amaze me.
>>
>>Curt
>>
>>
>>
>>>thanks
>>>bax
>>>
>>>but, whats your
>>>- Original Message -
>>>From: "Curt Johnson" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Monday, August 26, 2002 11:50 PM
>>>Subject: [JBoss-user] LDAP as CMP backend?
>>>
>>>
>>> 
>>>
>>>  
>>>
Hi guys, I was wondering if anyone had used LDAP for the backend for


>>CMP
>>
>>
entity beans.
Does the CMP engine in Jboss support this? I'm looking for something
like Castor's DAX but for CMP.

Is this a planned feature? Should I put in a feature request? Any
pointers to information would be greatly appreciated.

Curt Johnson



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



>>>
>>>---
>>>This sf.net email is sponso

Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread David Jencks

I don't know where it is but someone mentioned that there is an sql/jdbc
way of accessing ldap. If this really exists, you can wrap that driver in
one of the jca-jdbc wrappers (probably the local tx one) and use it like
any other datasource with cmp.

If you do this I'd appreciate your contributing details of how, especially
the datasource configuration (ldap-service.xml or ldap-ds.xml for 3.2/4).

If ldap does not support transactions you may need to be careful if you
write or update information that your writes always succeed;-)

david jencks

On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
> Holger Baxmann wrote:
> 
> >AFAIK, matrix2 should provide valueable :) improvements for the
> persistence
> >manager, including interceptors, detyped invokers on mbean level. so,
> then
> >you may have serveral impl's for the persistance layer independend from
> the
> >ejb container 8-). there should then ejbql working with hierarchical
> data, a
> >parser for i.e. ldap dn syntax presumed.
> >
> >but, what is your objective? you want to have transactions, security ...
> ?
> >
> I want to store app data in LDAP like users and such. In the same way 
> that you would use an RDBMS. For instance I can have my users conform to 
> the inetOrgPerson schema in LDAP then have a my entity beans do 
> operations to the LDAP server rather than the database. It's essentially 
> a way to have application potability in the data layer.
> 
> For instance, one application I'm working on has a list of vendors for 
> our company, we also want a CRM application. LDAP is perfect for this so 
> I would like to have basic vendor information stored in the LDAP 
> directory where it can also be used for Address Books and CRM.
> 
> >
> >what is different from using the federated namespace in jndi for this
> job ?
> >
> Nothing really. In fact, that's what I would assume it would do. I could 
> write them as BMPs right now, but I figure as long as I'm looking for 
> ways to reduce the amount of code I have to write and maintain, like 
> using XDoclet, it would be nice if I could do CMP with an LDAP server 
> (or any JNDI provider) as the data store.
> 
> BTW, it would be nice if there was a roadmap with feature lists like 
> this somewhere on the JBoss website... I pick up on some stuff from the 
> developers list but it would be cool to have an idea of what features 
> are coming down the pipe. This project never ceases to amaze me.
> 
> Curt
> 
> >
> >thanks
> >bax
> >
> >but, whats your
> >- Original Message -
> >From: "Curt Johnson" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, August 26, 2002 11:50 PM
> >Subject: [JBoss-user] LDAP as CMP backend?
> >
> >
> >  
> >
> >>Hi guys, I was wondering if anyone had used LDAP for the backend for
> CMP
> >>entity beans.
> >>Does the CMP engine in Jboss support this? I'm looking for something
> >>like Castor's DAX but for CMP.
> >>
> >>Is this a planned feature? Should I put in a feature request? Any
> >>pointers to information would be greatly appreciated.
> >>
> >>Curt Johnson
> >>
> >>
> >>
> >>---
> >>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>cell phone?  Get a new here for FREE!
> >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> >
> >
> >
> >---
> >This sf.net email is sponsored by: OSDN - Tired of that same old
> >cell phone?  Get a new here for FREE!
> >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >  
> >
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


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



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Curt Johnson

Holger Baxmann wrote:

>AFAIK, matrix2 should provide valueable :) improvements for the persistence
>manager, including interceptors, detyped invokers on mbean level. so, then
>you may have serveral impl's for the persistance layer independend from the
>ejb container 8-). there should then ejbql working with hierarchical data, a
>parser for i.e. ldap dn syntax presumed.
>
>but, what is your objective? you want to have transactions, security ... ?
>
I want to store app data in LDAP like users and such. In the same way 
that you would use an RDBMS. For instance I can have my users conform to 
the inetOrgPerson schema in LDAP then have a my entity beans do 
operations to the LDAP server rather than the database. It's essentially 
a way to have application potability in the data layer.

For instance, one application I'm working on has a list of vendors for 
our company, we also want a CRM application. LDAP is perfect for this so 
I would like to have basic vendor information stored in the LDAP 
directory where it can also be used for Address Books and CRM.

>
>what is different from using the federated namespace in jndi for this job ?
>
Nothing really. In fact, that's what I would assume it would do. I could 
write them as BMPs right now, but I figure as long as I'm looking for 
ways to reduce the amount of code I have to write and maintain, like 
using XDoclet, it would be nice if I could do CMP with an LDAP server 
(or any JNDI provider) as the data store.

BTW, it would be nice if there was a roadmap with feature lists like 
this somewhere on the JBoss website... I pick up on some stuff from the 
developers list but it would be cool to have an idea of what features 
are coming down the pipe. This project never ceases to amaze me.

Curt

>
>thanks
>bax
>
>but, whats your
>- Original Message -
>From: "Curt Johnson" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, August 26, 2002 11:50 PM
>Subject: [JBoss-user] LDAP as CMP backend?
>
>
>  
>
>>Hi guys, I was wondering if anyone had used LDAP for the backend for CMP
>>entity beans.
>>Does the CMP engine in Jboss support this? I'm looking for something
>>like Castor's DAX but for CMP.
>>
>>Is this a planned feature? Should I put in a feature request? Any
>>pointers to information would be greatly appreciated.
>>
>>Curt Johnson
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





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



Re: [JBoss-user] behaviour of a cached initialContext

2002-08-26 Thread Dmitri Colebatch

my reading of Scott's answer is that yes, it is ok to cache the Context
instance.  Thats certainly the way I've always used it - but more
importantly from a performance pov - you probably want to cache the result
of your lookups whereever possible (obviously some things wont make sense to
cache).

hth
dim

- Original Message -
From: "Emerson Cargnin - SICREDI Serviços" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 9:36 AM
Subject: Re: [JBoss-user] behaviour of a cached initialContext


no answers

Emerson Cargnin - SICREDI Serviços wrote:
> please, could anyone answer me?? I'm afraid of using the same Principal
> with diffferent users if i cache it.
>
> Emerson Cargnin - SICREDI Serviços wrote:
>
>> my questions are :
>>
>> 1 - can i safe reuse a InitialContext instance among web users without
>> worring about using the same Principal?
>>
>> 2- Does it works the same for a Stateless Session Bean home ? May I
>> reuse the same home for two different users?
>>
>> 3- And for a Stateless Session Bean instance???
>>
>>
>>
>> Scott M Stark wrote:
>>
>>> InitialContext never holds security information. If you put it there you
>>> should not as it is not used by JBoss.
>>>
>>> 
>>> Scott Stark
>>> Chief Technology Officer
>>> JBoss Group, LLC
>>> 
>>> - Original Message -
>>> From: "Emerson Cargnin - SICREDI Serviços" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Friday, August 23, 2002 1:12 PM
>>> Subject: [JBoss-user] behaviour of a cached initialContext
>>>
>>>
>>>
 What's the behaviour of security if I cache the initialContext ?
 Will it
 cache the principal among diferent remote requests???


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


--
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



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



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



[JBoss-user] reading env variables inside jboss

2002-08-26 Thread Emerson Cargnin - SICREDI Serviços

How do I read environment variables inside JBoss??

what's the system properties to get JBOSS_HOME ???

-- 
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



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



Re: [JBoss-user] behaviour of a cached initialContext

2002-08-26 Thread Emerson Cargnin - SICREDI Serviços

no answers

Emerson Cargnin - SICREDI Serviços wrote:
> please, could anyone answer me?? I'm afraid of using the same Principal 
> with diffferent users if i cache it.
> 
> Emerson Cargnin - SICREDI Serviços wrote:
> 
>> my questions are :
>>
>> 1 - can i safe reuse a InitialContext instance among web users without 
>> worring about using the same Principal?
>>
>> 2- Does it works the same for a Stateless Session Bean home ? May I 
>> reuse the same home for two different users?
>>
>> 3- And for a Stateless Session Bean instance???
>>
>>
>>
>> Scott M Stark wrote:
>>
>>> InitialContext never holds security information. If you put it there you
>>> should not as it is not used by JBoss.
>>>
>>> 
>>> Scott Stark
>>> Chief Technology Officer
>>> JBoss Group, LLC
>>> 
>>> - Original Message -
>>> From: "Emerson Cargnin - SICREDI Serviços" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Friday, August 23, 2002 1:12 PM
>>> Subject: [JBoss-user] behaviour of a cached initialContext
>>>
>>>
>>>
 What's the behaviour of security if I cache the initialContext ? 
 Will it
 cache the principal among diferent remote requests???


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


-- 
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



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



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Holger Baxmann

AFAIK, matrix2 should provide valueable :) improvements for the persistence
manager, including interceptors, detyped invokers on mbean level. so, then
you may have serveral impl's for the persistance layer independend from the
ejb container 8-). there should then ejbql working with hierarchical data, a
parser for i.e. ldap dn syntax presumed.

but, what is your objective? you want to have transactions, security ... ?

what is different from using the federated namespace in jndi for this job ?

thanks
bax

but, whats your
- Original Message -
From: "Curt Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:50 PM
Subject: [JBoss-user] LDAP as CMP backend?


> Hi guys, I was wondering if anyone had used LDAP for the backend for CMP
> entity beans.
> Does the CMP engine in Jboss support this? I'm looking for something
> like Castor's DAX but for CMP.
>
> Is this a planned feature? Should I put in a feature request? Any
> pointers to information would be greatly appreciated.
>
> Curt Johnson
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



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



[JBoss-user] Serialization problems with JMX RMI adaptor

2002-08-26 Thread Jon Brisbin

I searched the archives and found what I think is the answer to my
problem (ref:
http://www.jboss.org/forums/thread.jsp?forum=63&thread=19635) but was
wondering if anyone has a JDK 1.3 jar file of the fix for this problem
already compiled (I'm using JBoss 3.0.1).  I really don't have time
right now to set up a build environment and grab this from CVS, so I
thought I'd check and see if anyone else has had this problem, fixed
it, and have a jar file ready to go.

=
Thanks!

Jon Brisbin

[EMAIL PROTECTED]
417.682.6157 (h/w)
417.825.3995 (c)

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


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



[JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Curt Johnson

Hi guys, I was wondering if anyone had used LDAP for the backend for CMP 
entity beans.
Does the CMP engine in Jboss support this? I'm looking for something 
like Castor's DAX but for CMP.

Is this a planned feature? Should I put in a feature request? Any 
pointers to information would be greatly appreciated.

Curt Johnson



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



Re: [JBoss-user] MBean dependancies and deploying/undeploying

2002-08-26 Thread David Jencks

Sounds like a bug.  Can you come up with a testcase?  Which jboss?  Any
useful messages in server.log?  Is there an IncompleteDeploymentException
when you are done?

thanks
david jencks

ps. please lose the html

On 2002.08.26 15:09:11 -0400 Uroš Jurglič wrote:
> I have a dozen of Mbean, that have various dependancy relations between
> each other (something like a tree structure). Problem is, when I redeploy
> the independand mbean, that all other depend on, all mbean get destroyed
> and then only half of them get started again, without any warnings about
> insufficient dependands deployment... Is this a bug or am I doing
> something wrong?
> 
> 
> Greetings,
> Uros.
> 
> 
> 
> 
> 
> 
> MBean dependancies and deploying/undeploying
> 
> 
> 
> I have a dozen of Mbean, that have
> various dependancy relations between each other (something like a tree
> structure). Problem is, when I redeploy the independand mbean, that all
> other depend on, all mbean get destroyed and then only half of them get
> started again, without any warnings about insufficient dependands
> deployment... Is this a bug or am I doing something wrong?
> 
> 
> Greetings,
> Uros.
> 
> 
> 
> 
> 


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



Re: [JBoss-user] Enterprise Beans and MBeans (the sequel)

2002-08-26 Thread David Jencks

Most mbeans in jboss are defined and configured in *-service.xml files. 
For instance most of the base server configuration is in server/[config
name]/conf/jboss-service.xml

I usually find I want to extend the jboss specific ServiceMBeanSupport to
take advantage of the jboss service lifecycle: you get
create/start/stop/destroy[Service] methods called as your mbean is
deployed/undeployed.

createService -- all your properties are set from *-service.xml: you can
use these but don't expect anything outside your mbean to exist.

startService -- if you said you needed other mbeans using a depends tag,
they will be started so you can use them.

stopService -- undo start.

destroy -- undo create.

I think there's a little more in the jboss 3 quickstart guide.

david jencks


On 2002.08.26 15:00:28 -0400 ed banfa wrote:
> 
> Hi List, ur all great.
> One thing though, what is the entry point to using MBeans in JBOSS, like
> what initializations have to take place e.t.c. do I NEED TO change my
> deployment descriptors?.  JBoss aint easy, but I LOVE IT !!
> Hey am new, so excuse me if I am getting to over excited.
> Thanks to u all
> Edward
>  Dain Sundstrom wrote:JMX will be part of J2EE 1.4.
> 
> -dain
> 
> LaBanca, Rick wrote:
> > Since and mbean isn't j2ee standard I'm not using them, but I hope sun
> is
> > watching. The glaring omission from j2ee is indeed a standard way of
> doing
> > services (rmi apps don't really fit within the scheme nicely). Perhaps
> they
> > will adopt the jboss way or something similar someday!
> > 
> > rick
> > 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> -
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> Hi List, ur all great.
> One thing though, what is the entry point to using MBeans in JBOSS,
> like what initializations have to take place e.t.c. do I NEED TO change
> my deployment descriptors?.  JBoss aint easy, but I LOVE IT
> !!
> Hey am new, so excuse me if I am getting to over excited.
> Thanks to u all
> Edward
>  Dain Sundstrom <[EMAIL PROTECTED]>wrote:
> JMX will be part of J2EE
> 1.4.-dainLaBanca, Rick wrote:> Since and mbean
> isn't j2ee standard I'm not using them, but I hope sun is>
> watching. The glaring omission from j2ee is indeed a standard way of
> doing> services (rmi apps don't really fit within the scheme
> nicely). Perhaps they> will adopt the jboss way or something
> similar someday!> > rick>
> ---This
> sf.net email is sponsored by: OSDN - Tired of that same oldcell
> phone? Get a new here for 
>FREE!https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390___JBoss-user
> mailing 
>list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-user size=1>Do You Yahoo!?
> http://rd.yahoo.com/finance/mailsig/new/*http://finance.yahoo.com";>Yahoo!
> Finance - Get real-time stock quotes


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



[JBoss-user] MBean dependancies and deploying/undeploying

2002-08-26 Thread Uroš Jurglič
Title: MBean dependancies and deploying/undeploying





I have a dozen of Mbean, that have various dependancy relations between each other (something like a tree structure). Problem is, when I redeploy the independand mbean, that all other depend on, all mbean get destroyed and then only half of them get started again, without any warnings about insufficient dependands deployment... Is this a bug or am I doing something wrong?


Greetings,
Uros.





RE: [JBoss-user] Enterprise Beans and MBeans

2002-08-26 Thread LaBanca, Rick

Great! I had not even looked at the 1.4 spec, I spoke too soon!

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 26, 2002 12:42 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Enterprise Beans and MBeans


JMX will be part of J2EE 1.4.


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



Re: [JBoss-user] Enterprise Beans and MBeans (the sequel)

2002-08-26 Thread ed banfa
Hi List, ur all great.
One thing though, what is the entry point to using MBeans in JBOSS, like what initializations have to take place e.t.c. do I NEED TO change my deployment descriptors?.  JBoss aint easy, but I LOVE IT !!
Hey am new, so excuse me if I am getting to over excited.
Thanks to u all
Edward
 Dain Sundstrom <[EMAIL PROTECTED]>wrote:
JMX will be part of J2EE 1.4.-dainLaBanca, Rick wrote:> Since and mbean isn't j2ee standard I'm not using them, but I hope sun is> watching. The glaring omission from j2ee is indeed a standard way of doing> services (rmi apps don't really fit within the scheme nicely). Perhaps they> will adopt the jboss way or something similar someday!> > rick> ---This sf.net email is sponsored by: OSDN - Tired of that same oldcell phone? Get a new here for FREE!https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390___JBoss-user mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-userDo You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

[JBoss-user] IllegalStateException: removing bean lock and it has tx set!

2002-08-26 Thread Gary Grobe
I searched the archives and found these problems reported, but saw nothing that would help the fix. 
I have entity beans doing BMP w/ 3.0.1 and postgresql. Once the entities start to run I get the following errors reported. 

Can anyone make suggestions to help fix this?

--- my client reports the following ...
[ERROR]: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.IllegalStateException: removing bean lock and it has tx set!

--- the server reports as follows ...
18:13:55,536 ERROR [LogInterceptor] RuntimeException:
java.lang.IllegalStateException: removing bean lock and it has tx set!
at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:473)
at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:124)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
at org.jboss.ejb.Container.invoke(Container.java:711)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
at sun.rmi.transport.Transport$1.run(Transport.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:479)
---

Any idea what's causing this?
Any help much appreciated. 

[JBoss-user] JBoss 3.0.1: JBossMQ throwing XAER_OUTSIDE error

2002-08-26 Thread Corby Page

I recently migrated an application from JBoss 2.4.4 to JBoss 3.0.1
(JDK1.3.1_04, W2K). The application includes a few MDB's that see heavy
traffic during certain periods of the day. These beans use Bean-Managed
transactions because of a bug in CMT with MDB's. These beans frequently
enlist both a queue connection and one or more database connections in the
scope of their transaction.

Everything worked great on 2.4.4. Since moving to 3.0.1, SpyXAResource has
occasionally thrown an exception (Error: XAER_OUTSIDE) during the commit or
the rollback. I have seen this happen on more than one MDB. Sometimes it is
thrown from the SpyXAResource.start() method, and sometimes it is thrown
from the SpyXAResource.end() method. Here is the relevant source from
SpyXAResource:

public void start( javax.transaction.xa.Xid xid, int flags )
 throws javax.transaction.xa.XAException {

 boolean convertTx=false;
 if ( session.getCurrentTransactionId() != null ) {
  if( flags==TMNOFLAGS && session.getCurrentTransactionId()
instanceof Long ) {
   convertTx=true;
  }
  else {
   throw new XAException( XAException.XAER_OUTSIDE );
  }
 }
.
.

public void end( javax.transaction.xa.Xid xid, int flags )
 throws javax.transaction.xa.XAException {

 if ( session.getCurrentTransactionId() == null ) {
   throw new XAException( XAException.XAER_OUTSIDE );
 }
.
.

The source indicates that XAER_OUTSIDE means that the JBossMQ resource
manager is operating outside the scope of the global transaction. I can add
some debug messages when the XAER_OUTSIDE error is thrown, but I'm not
really sure where to begin. Can someone give me tips for troubleshooting
this problem?

Thanks,
Corby



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



Re: [JBoss-user] UserTransactions with JBoss

2002-08-26 Thread David Jencks

Can you determine where the tm.begin() calls are?  If its in Castor, try to
get a stack trace to find out how you got there.

Can you verify that there is an active transaction in your BMP entity bean
(I think this is what calls Castor?) by looking up the tm and calling
getStatus()?

Thanks
david jencks

On 2002.08.26 12:35:27 -0400 Bruce Snyder wrote:
> This one time, at band camp, David Jencks said:
> 
> DJ>I think plenty of people know how UserTransaction and the jboss
> transaction
> DJ>manager work, but no one knows how Castor works.  That is certainly my
> DJ>situation.  I don't have time or interest to read through enough of
> the
> DJ>Castor or Castor plugin code to find out how it works enough to
> comment
> DJ>intelligently on this.  Castor should not be creating jta transactions
> in
> DJ>the jboss tx manager.  I don't know what Castor thinks a tx is.
> DJ>
> DJ>I do know that running a jdo or jdo-like implementation in a app
> server is
> DJ>non-trivial to set up, because there are no hooks for metaprogramming
> so
> DJ>you can add tx context, security context, etc.  I don't know if the
> Castor
> DJ>plugin has worked around these issues to work properly with the tx
> manager.
> DJ>
> DJ>Unless you need to make use of polymorphism in some really fundamental
> way
> DJ>I'd advise you to consider using cmp2 in jboss 3.
> 
> David, 
> 
> The Castor plugin tells Castor to use the JBoss TransactionManager which
> it fetches via JNDI. Then any work that Castor does on a transaction
> is deferred to the JBoss TransactionManager. 
> 
> Unfortunately, with this project, I cannot make use of the JBoss CMP
> impl. But you are correct that it would make my life easier based on
> the situations I've encountered.
> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


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



Re: [JBoss-user] How to disable ejbStore for read only business mothodin CMP?

2002-08-26 Thread Dain Sundstrom

This is a cool idea. An abstract isModified is possible, but it would be 
way out side the EJB specification and I'm not sure anyone besides you 
would be interested.  If there is sufficient demand, this would be a 
very easy feature to implement.  What JBossCMP really needs is 
optimistic locking in the container.

-dain

David Ward wrote:
> Just wanted to add here is that my use of the version number is to 
> address the "stale data" problem that client apps are prone to, not 
> really for entity locking, per se.  I could do the version checking in 
> my slsb layer, but was interested in xdoclet's implementation so 1) I 
> could keep it as close to the entity as possible and 2) so it could 
> generate the checking code for me...
> 
> David
> 
> -- 
> 
> David Ward wrote:
> 
>> I had a question about this not too long ago, mainly because 
>> ejbStore(), for me, was incrementing an xdoclet-generated soft-locking 
>> mechanism in that method, even when it was just a read (no data 
>> changed).  I asked Dain if ejbStore() had to be called in those 
>> circumstances, and he brought up a good point: ejbStore() becomes like 
>> a callback method in CMP that is supposed to be guaranteed (to the 
>> bean developer) to be called.  Taking that out, in effect, would be 
>> against the spec (which is why if he makes it configurable, the 
>> default would be to call it).
>>
>> What would be real nice is in CMP 2.0, I could include a signature 
>> like this in my abstract entity class:
>>
>> public abstract boolean isModified();
>>
>> that *JBoss* would implement for me (as in CMP 2.0 I have no way of 
>> calculating this - but the container does).  That way, in my 
>> ejbStore() callback method, I could incremement my soft-locking 
>> version field if isModified() returned true.  Actually, I think it 
>> (the abstract isModified() implementation responsibility on the CMP 
>> 2.0 container) would be a nice addition to the EJB spec.
>>
>> Thoughts?
>> David
>>
>> -- 
>>
>> Dain Sundstrom wrote:
>>
>>> Bill put some code in 4.0 that checks if any fields have been 
>>> modified, before calling ejbStore.  I haven't gotten around to making 
>>> it configurable, but eventually it will be configurable (always 
>>> calling ejbStore by default).
>>>
>>> -dain
>>>
>>> Roger wrote:
>>>
 Hi, Dain,

  But can I  disable this unnecessary(?) ejbStore in CMP ? In BMP 
 I can use MakeClean()

 function to do that.

 Roger,




 Dain Sundstrom wrote:

> Roger wrote:
>
>>
>> Hi, everybody,
>>
>> I have a cmp bean deployed on a Jboss3.0 server( not 
>> clustered), I set
>>
>> the commit-option from "B" to "A" in the standardjboss.xml(for 2.0 
>> CMP
>>
>> container), the DB is oracle9i. I set the cmp bean transaction 
>> attribute with
>>
>> "Required".  Now the problem is: each time I called a read only 
>> business
>>
>> mothed from a jsp  page(from local interface), the ejbStore is 
>> called. When
>>
>> the bean number is  large, the performance  is bad.
>
>
>
>
>
>
> Prove it.  What does optimize it say?  I ask this because I get a 
> lot of comments about performance being bad because of something, 
> and when they try to prove it they are wrong.
>
> -dain
>
>>
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




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



Re: [JBoss-user] Enterprise Beans and MBeans

2002-08-26 Thread Dain Sundstrom

JMX will be part of J2EE 1.4.

-dain

LaBanca, Rick wrote:
> Since and mbean isn't j2ee standard I'm not using them, but I hope sun is
> watching. The glaring omission from j2ee is indeed a standard way of doing
> services (rmi apps don't really fit within the scheme nicely). Perhaps they
> will adopt the jboss way or something similar someday!
> 
> rick
> 



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



Re: [JBoss-user] UserTransactions with JBoss

2002-08-26 Thread Bruce Snyder

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

DJ>I think plenty of people know how UserTransaction and the jboss transaction
DJ>manager work, but no one knows how Castor works.  That is certainly my
DJ>situation.  I don't have time or interest to read through enough of the
DJ>Castor or Castor plugin code to find out how it works enough to comment
DJ>intelligently on this.  Castor should not be creating jta transactions in
DJ>the jboss tx manager.  I don't know what Castor thinks a tx is.
DJ>
DJ>I do know that running a jdo or jdo-like implementation in a app server is
DJ>non-trivial to set up, because there are no hooks for metaprogramming so
DJ>you can add tx context, security context, etc.  I don't know if the Castor
DJ>plugin has worked around these issues to work properly with the tx manager.
DJ>
DJ>Unless you need to make use of polymorphism in some really fundamental way
DJ>I'd advise you to consider using cmp2 in jboss 3.

David, 

The Castor plugin tells Castor to use the JBoss TransactionManager which
it fetches via JNDI. Then any work that Castor does on a transaction
is deferred to the JBoss TransactionManager. 

Unfortunately, with this project, I cannot make use of the JBoss CMP
impl. But you are correct that it would make my life easier based on
the situations I've encountered.

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



RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with javax.security.auth.login.LoginContext $SecureCallbackHandler

2002-08-26 Thread Herve Tchepannou
Title: RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with  javax.security.auth.login.LoginContext $SecureCallbackHandler





thanx man!
dammed.. I spend on my sunday on this bug !


-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not
initialized with my custom CallbackHandler, but with
javax.security.auth.login.LoginContext $SecureCallbackHandler



Yes.



Scott Stark
Chief Technology Officer
JBoss Group, LLC



- Original Message -
From: Herve Tchepannou
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 7:40 AM
Subject: RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with

javax.security.auth.login.LoginContext $SecureCallbackHandler


>ok, I see, then if call the handle() method with an array containing a
>NameCallback and PasswordCallback, my custom login will receive the call?





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





Re: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with javax.security.auth.login.LoginContext $SecureCallbackHandler

2002-08-26 Thread Scott M Stark

Yes.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: Herve Tchepannou
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 7:40 AM
Subject: RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized 
with my custom CallbackHandler, but with
javax.security.auth.login.LoginContext $SecureCallbackHandler

>ok, I see, then if call the handle() method with an array containing a
>NameCallback and PasswordCallback, my custom login will receive the call?




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



RE: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with javax.security.auth.login.LoginContext $SecureCallbackHandler

2002-08-26 Thread Herve Tchepannou



ok, I 
see, then if call the handle() method with an array containing a NameCallback 
and PasswordCallback, my custom login will receive the call?

  -Original Message-From: Scott M Stark 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, August 26, 2002 10:35 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my 
  custom CallbackHandler, but with javax.security.auth.login.LoginContext 
  $SecureCallbackHandler
  javax.security.auth.login.LoginContext$SecureCallbackHandler is just a 
  wrapper
  that delegates to your 
  CallbackHandler.
   
  Scott StarkChief 
  Technology OfficerJBoss Group, 
LLC
  
- Original Message - 
From: 
Herve 
Tchepannou 
To: [EMAIL PROTECTED] 

Sent: Monday, August 26, 2002 6:22 
AM
Subject: [JBoss-user] JBoss-JAAS 
problem: My custom LoginModule not initialized with my custom 
CallbackHandler, but with javax.security.auth.login.LoginContext 
$SecureCallbackHandler



Re: [JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with javax.security.auth.login.LoginContext $SecureCallbackHandler

2002-08-26 Thread Scott M Stark



javax.security.auth.login.LoginContext$SecureCallbackHandler is just a 
wrapper
that delegates to your 
CallbackHandler.
 
Scott StarkChief 
Technology OfficerJBoss Group, LLC

  - Original Message - 
  From: 
  Herve 
  Tchepannou 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, August 26, 2002 6:22 
  AM
  Subject: [JBoss-user] JBoss-JAAS problem: 
  My custom LoginModule not initialized with my custom CallbackHandler, but with 
  javax.security.auth.login.LoginContext $SecureCallbackHandler
  


[JBoss-user] Entity delete from session Bean

2002-08-26 Thread Tejeshwar



Hi 
 
I am trying to delete an entity Bean from a session 
bean by calling getting the Entity Bean reference as shown.
 
First getting the remote reference by 
 
remoteRef =  findByPrimaryKey(Pk pk);
 
And then i am calling the remove method 
as
 
remoteRef.remove();
 
But for this when i am calling from my client of 
session bean method of deleting an entity,it is giving the error for Pk 
class.
 
So pls anybody can tell me how can en entity can be 
deleted from session Bean by passing PrimaryKey class as the 
parameter.
 
Thanks in advance
Tejesh


RE: [JBoss-user] Enterprise Beans and MBeans

2002-08-26 Thread LaBanca, Rick

Since and mbean isn't j2ee standard I'm not using them, but I hope sun is
watching. The glaring omission from j2ee is indeed a standard way of doing
services (rmi apps don't really fit within the scheme nicely). Perhaps they
will adopt the jboss way or something similar someday!

rick


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



[JBoss-user] Re: Jboss and SAPDB

2002-08-26 Thread jaime1

I work of the same way when my connect a SAPDB, but you put the driver
inside lib/ext, but you make mistake in the jboss.jcml, i send you my
example



TeceduDB

org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl

jdbc:sapdb://192.168.68.177/TECEDU

TEST

TEST



120

10

false

false

false

true

12

180

false

false

1.0

0



Regards
Jaime
Lima-Peru

- Original Message -
From: "B V M Mohan" <[EMAIL PROTECTED]>
To: "jaime1" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, August 24, 2002 7:28 AM
Subject: Re: Jboss and SAPDB


> Hai
> Thank you for your response, I am new to Jboss as well
> I have added the sapdbc.jar in the appropriate lib file and edited
> jboss.jcml in the following way but I am not sure whether that is right or
> not please correct it
>
> I doubt the correction in jboss.jcml file that I have edited ,My
> program gives an exception that table is not found wheras I am able to
> get a good result through a simple program
>
> In my program I am Connecting to a Database which is of IP
> :172.16.4.25 and connecting to data base "TST" and with user name and
> password DBA
>
> Awaiting for your reply with great eagerness
>
> bye
> mohan
>
>
> -->
>   
>   
>
>name="DefaultDomain:service=JdbcProvider">
>  
name="Drivers">org.hsqldb.jdbcDriver,com.sap.dbtech.jdbc.DriverSapDB
>   
>
>name="DefaultDomain:service=Hypersonic">
> 1476
> true
> default
> false
>   
>
>name="DefaultDomain:service=XADataSource,name=DefaultDS">
> SAPDB
> 
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
> 
> jdbc:sapdb://172.16.4.25/TST
> 120
> DBA
> 10
> DBA
> false
> false
> false
> true
> 12
> 180
> false
> false
> 1.0
> 0
>   
>
>


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



Re: [JBoss-user] How to disable ejbStore for read only business mothodin CMP?

2002-08-26 Thread David Ward

Just wanted to add here is that my use of the version number is to 
address the "stale data" problem that client apps are prone to, not 
really for entity locking, per se.  I could do the version checking in 
my slsb layer, but was interested in xdoclet's implementation so 1) I 
could keep it as close to the entity as possible and 2) so it could 
generate the checking code for me...

David

--

David Ward wrote:
> I had a question about this not too long ago, mainly because ejbStore(), 
> for me, was incrementing an xdoclet-generated soft-locking mechanism in 
> that method, even when it was just a read (no data changed).  I asked 
> Dain if ejbStore() had to be called in those circumstances, and he 
> brought up a good point: ejbStore() becomes like a callback method in 
> CMP that is supposed to be guaranteed (to the bean developer) to be 
> called.  Taking that out, in effect, would be against the spec (which is 
> why if he makes it configurable, the default would be to call it).
> 
> What would be real nice is in CMP 2.0, I could include a signature like 
> this in my abstract entity class:
> 
> public abstract boolean isModified();
> 
> that *JBoss* would implement for me (as in CMP 2.0 I have no way of 
> calculating this - but the container does).  That way, in my ejbStore() 
> callback method, I could incremement my soft-locking version field if 
> isModified() returned true.  Actually, I think it (the abstract 
> isModified() implementation responsibility on the CMP 2.0 container) 
> would be a nice addition to the EJB spec.
> 
> Thoughts?
> David
> 
> -- 
> 
> Dain Sundstrom wrote:
> 
>> Bill put some code in 4.0 that checks if any fields have been 
>> modified, before calling ejbStore.  I haven't gotten around to making 
>> it configurable, but eventually it will be configurable (always 
>> calling ejbStore by default).
>>
>> -dain
>>
>> Roger wrote:
>>
>>> Hi, Dain,
>>>
>>>  But can I  disable this unnecessary(?) ejbStore in CMP ? In BMP 
>>> I can use MakeClean()
>>>
>>> function to do that.
>>>
>>> Roger,
>>>
>>>
>>>
>>>
>>> Dain Sundstrom wrote:
>>>
 Roger wrote:

>
> Hi, everybody,
>
> I have a cmp bean deployed on a Jboss3.0 server( not 
> clustered), I set
>
> the commit-option from "B" to "A" in the standardjboss.xml(for 2.0 CMP
>
> container), the DB is oracle9i. I set the cmp bean transaction 
> attribute with
>
> "Required".  Now the problem is: each time I called a read only 
> business
>
> mothed from a jsp  page(from local interface), the ejbStore is 
> called. When
>
> the bean number is  large, the performance  is bad.





 Prove it.  What does optimize it say?  I ask this because I get a 
 lot of comments about performance being bad because of something, 
 and when they try to prove it they are wrong.

 -dain

> 



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



Re: [JBoss-user] How to disable ejbStore for read only business mothodin CMP?

2002-08-26 Thread David Ward

I had a question about this not too long ago, mainly because ejbStore(), 
for me, was incrementing an xdoclet-generated soft-locking mechanism in 
that method, even when it was just a read (no data changed).  I asked 
Dain if ejbStore() had to be called in those circumstances, and he 
brought up a good point: ejbStore() becomes like a callback method in 
CMP that is supposed to be guaranteed (to the bean developer) to be 
called.  Taking that out, in effect, would be against the spec (which is 
why if he makes it configurable, the default would be to call it).

What would be real nice is in CMP 2.0, I could include a signature like 
this in my abstract entity class:

public abstract boolean isModified();

that *JBoss* would implement for me (as in CMP 2.0 I have no way of 
calculating this - but the container does).  That way, in my ejbStore() 
callback method, I could incremement my soft-locking version field if 
isModified() returned true.  Actually, I think it (the abstract 
isModified() implementation responsibility on the CMP 2.0 container) 
would be a nice addition to the EJB spec.

Thoughts?
David

--

Dain Sundstrom wrote:
> Bill put some code in 4.0 that checks if any fields have been modified, 
> before calling ejbStore.  I haven't gotten around to making it 
> configurable, but eventually it will be configurable (always calling 
> ejbStore by default).
> 
> -dain
> 
> Roger wrote:
> 
>> Hi, Dain,
>>
>>  But can I  disable this unnecessary(?) ejbStore in CMP ? In BMP I 
>> can use MakeClean()
>>
>> function to do that.
>>
>> Roger,
>>
>>
>>
>>
>> Dain Sundstrom wrote:
>>
>>> Roger wrote:
>>>

 Hi, everybody,

 I have a cmp bean deployed on a Jboss3.0 server( not clustered), 
 I set

 the commit-option from "B" to "A" in the standardjboss.xml(for 2.0 CMP

 container), the DB is oracle9i. I set the cmp bean transaction 
 attribute with

 "Required".  Now the problem is: each time I called a read only 
 business

 mothed from a jsp  page(from local interface), the ejbStore is 
 called. When

 the bean number is  large, the performance  is bad.
>>>
>>>
>>>
>>>
>>> Prove it.  What does optimize it say?  I ask this because I get a lot 
>>> of comments about performance being bad because of something, and 
>>> when they try to prove it they are wrong.
>>>
>>> -dain
>>>



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



[JBoss-user] JBoss-JAAS problem: My custom LoginModule not initialized with mycustom CallbackHandler, but with javax.security.auth.login.LoginContext$SecureCallbackHandler

2002-08-26 Thread Herve Tchepannou
Title: JBoss-JAAS problem: My custom LoginModule not initialized with my custom CallbackHandler, but with  javax.security.auth.login.LoginContext$SecureCallbackHandler





Im trying to use JAAS to authenticate users of my application, but for some reason, JBoss doen't pass my CallbackHandler to my LoginModule initialize() function. The custom handler that I receive is of type javax.security.auth.login.LoginContext$SecureCallbackHandler

I added in $JBOSS_HOME/conf/catalina/auth.conf the following lines:


tspace {
    tspace.jaas.TeamSpaceLoginModule required
    debug=true
    domain=sympatico.ca
    ;
};


In my LoginAction (struts-action), I did the following:


public ActionForward doExecute( ActionMapping mapping, 
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response )
    throws  Exception
{
  LoginForm    login   = ( LoginForm )form;
  LoginContext lc = new LoginContext( "tspace", 
    new TeamSpaceCallbackHandler( login.getLogin(), login.getPassword() ) );
  lc.login ();
  Subject  subject = lc.getSubject ();
  ...
}


From want I understood, the initialize function should receive a CallbackHandler of type
TeamSpaceCallbackHandler, not javax.security.auth.login.LoginContext$SecureCallbackHandler.


Anyone know what's my problem?
thanx in advance


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]


Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com


Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.




[JBoss-user] Unable to lookup UserTransaction?

2002-08-26 Thread Andreas Wollschlaeger

Hi folks,

im trying to lookup an UserTransaction from a GUI client like this:

 Object foo = mNamingContext.lookup("UserTransaction");

To my surprise, i get an Object of type javax.naming.Reference instead of the 
the expected org.jboss.tm.usertx.client.ClientUserTransaction!
As far as i understand the JNDI stuff, a Reference should be transparently 
dereferenced ?

I tried the following piece of code to see whats "inside" the Reference: 

 if (foo instanceof javax.naming.Reference)
{
   javax.naming.Reference bar = (javax.naming.Reference)foo;
   System.out.println("ref? -> " + bar.getClassName());
   System.out.println(" -> " + bar.getFactoryClassLocation());
   System.out.println(" -> " + bar.getFactoryClassName() );
   //
   // Dump adresses
   //
   Enumeration e = bar.getAll();
   while (e.hasMoreElements())
   {
  System.out.println(" @ " + e.nextElement().toString());
   }
}

which yields the following output:

> ref? -> org.jboss.tm.usertx.client.ClientUserTransaction
>  -> null
>  -> org.jboss.tm.usertx.client.ClientUserTransactionObjectFactory

Note the loop which outputs the address endpoints from Reference.getAll() has 
nothing to print.

Another thing i tried was starting my GUI with 
-Djava.security.debug=access:failure to see if there any problems with the 
security settings (my app is running under a scurity manager), but this gave 
no clues.

Any idea what might be wrong?

Greetings
Andreas



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



Re: [JBoss-user] using mysql default per-user policy

2002-08-26 Thread David Jencks

As I understand, you want to use the application user's user name and
password that they supplied when loggin into your application to log into
the database?

You need to set up container manager security using the
CallerIdentityLoginModule.  You'll need something like this in your
login-config.xml



   
  
 sa
 sa
 
 jboss.jca:service=LocalTxCM,name=DefaultDS
  
   


The principal, username, and password options are not necessary: if you
supply them an unauthenticated user should be able to log in using that
user/pw.  This is useful for creating tables on startup when entity beans
deploy: the startup process is not currently associated with a user.

This module has not been extensively tested as far as I know.  Please
report problems.

thanks
david jencks

On 2002.08.26 07:16:20 -0400 Ionel Gardais wrote:
> Hi,
> 
> How to use the mysql user table with the CMP ?
> 
> I mean : now I'm creatinf a Datasource in mysql-service.xml but it is 
> created with my name and password.
> Whatever the user who is logged and the role he got, the transaction 
> with the database are made under my name (the one provided at deployment 
> time of the Datasource)
> 
> How to use the username of the caller and to use the traditional 
> restriction of mysql ?
> 
> 
> thanks,
> ionel
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


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



Re: [JBoss-user] JMSMessageID format

2002-08-26 Thread Christian Riege

hi,

On Mon, 2002-08-26 at 11:23, Dushyant Shrivastava wrote:
> 
> Hi guys,
> Does anyone know what is the (-10303452528773 part in the JMS message below)??
> jmsMessageID: ID:3-10303452528773
> 
> The ID of this message is 3, but what does the long number indicate? Is it the 
>current time?

pls. see the class

org.jboss.mq.Connection

specifically the method "getNewMessageID()" for more information.

i wouldn't rely on the long number being the current time. this can
change in the future without prior notice. the message id is just what
it says it is: a unique identification of a message. no more, no less
with no specific semantics underneath.

hope this helps,
christian



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



[JBoss-user] using mysql default per-user policy

2002-08-26 Thread Ionel Gardais

Hi,

How to use the mysql user table with the CMP ?

I mean : now I'm creatinf a Datasource in mysql-service.xml but it is 
created with my name and password.
Whatever the user who is logged and the role he got, the transaction 
with the database are made under my name (the one provided at deployment 
time of the Datasource)

How to use the username of the caller and to use the traditional 
restriction of mysql ?


thanks,
ionel



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



[JBoss-user] Haberdar olun

2002-08-26 Thread Ramazan Sagdic

HABERDAR.COM - HABER VE MEDYA PORTALI
Artýk tüm haberleri sadece tek siteden takip edebileceksiniz. Haberdar.com açýldý!
Haber baþlýklarý, spor haberleri, teknoloji haberleri, kültür ve sanat haberleri, 
internet haberleri, bilim ve uzay, 
sinema, saðlýk...
Aradýðýnýz içerik http://www.haberdar.com adresinde
Sadece týklayýn ve haberdar olun

†+,~w­zf¢–+,¦‰ì¢·o#’
Ôâ­çh~ØZ¶Æ¦z‰]qée¦'xg­jw°…êÞ~ŠÅDA!¶Úlÿü0Â)醉âqÊ&þ¶¬¦»(º·~Šà{ZÞ}Ê{[ìßt$,²ë®f¢–)à–+-$,²ë®X¬¶Ë(º·~Šàzw­†Ûi³ÿåŠËl²‹«qç讧zßåŠËlþX¬¶)ߣøÛ¢Ë.±ê


[JBoss-user] Experimental Jetty in 3.0.1 returning 303 instead of 302.

2002-08-26 Thread Marcus Ahnve

We have come to realize that a release candidate of Jetty was introduced
in JBoss 3.0.1. We have a serious problem with the fact that when using
form logins, it returns 303 "see other" instead of 302 "Moved
Temporarily". I suppose this is the correct behavior, but in practice it
broke all our htmlunit webtests and more important makes it impossible
to login using Netscape 4.

It would be nice if this was an configurable property or something. The
lack of questions about this suggests that noone else seems to have had
this problem which sort of surprises us, but that could just be us. :-) 

Regards /Marcus
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando ABOffice: +46-(0)8-634 94 18
SwedenMobile: +46-(0)70-462 19 18
www.lecando.com   ICQ#: 4564879

PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
 B941 DB1A




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



[JBoss-user] JMSMessageID format

2002-08-26 Thread Dushyant Shrivastava
Title: JMSMessageID format







Hi guys,

Does anyone know what is the (-10303452528773 part in the JMS message below)??

jmsMessageID    : ID:3-10303452528773


The ID of this message is 3, but what does the long number indicate? Is it the current time?


Thanks in advance

Dushy

__
DUSHYANT SHRIVASTAVA
Software Engineer

YAMBAY

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


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

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






[JBoss-user] JBoss-JMS Queue configuration

2002-08-26 Thread Dushyant Shrivastava
Title: JBoss-JMS Queue configuration






Hi,

I was wondering if there is any way to delete/destroy the specific queues at JBoss Startup. I know I can deploy an mBean like a startup bean when JBoss starts up to create the queues but how do I destroy the queues at startup.

I am trying to implement a simple ACK mechanism where a SessionBean in the AppServer sends a message to an external client and the client sends an ACK back(on another queue).All I do is match the MessageID( of the original message) with the JMSCorrelationID (set by client).

Now whenever i restart JBoss and send a message from the SessionBean, the ID's never seem to macth up at the SessionBean.Almost seems like it has got hols of some other JMSCorrelationID from last time.

Any help is much appreciated.


Dushy




__
DUSHYANT SHRIVASTAVA
Software Engineer

YAMBAY

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


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

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