[Persistence, JBoss/CMP, Hibernate, Database] - Connection to DB2
by gregsting
Hi,
I have configured a JBoss cluster and I want it to use a DB2 database on another server. To test that I want to deploy Jboss portal on the cluster.
I've pretty much followed these instructions to set up the jdbc connection: http://www.onjava.com/lpt/a/4525#db2
I've seen many ways to configure such a connection but none seems to work. It seems that the config files are OK but JBoss cannot find the files it needs... the error is the following:
WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: COM.ibm.db2.jdbc.app.DB2Driver; - nested throwable: (java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path))
What is the "java.librairy.path"? do I have to put some files there? Could it be a problem of a wrong version of JDK/JRE?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973230#3973230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973230
19 years, 7 months
[Security & JAAS/JBoss] - Rich Client Authorisation and JAAS
by pdrummond
Hi,
I am trying to learn how JBoss security and JAAS would work together within my application which will be a Rich Client communicating with EJBs in JBoss (EJB3). I am new to JavaEE so I apologise in advance if I use the wrong terminology or don't explain the problem very well. (BTW: should I be posting to the newbie forum?)
I understand that my rich client can use JAAS to login to a JBoss application server using a LoginModule. Once the user is authenticated then it is possible to use security roles in the EJB code to ensure proper authorisation like this:
| if(ctx.isCallerInRole("admin")) {
| //access resource
| }
|
What I also need is similar code in the Rich Client. As a simple example I want to enable a "Admin" menu if the user is in the admin role. I assume I must use JAAS directly here - doAsPriliveged() maybe? Even if doAsPrivileged() is the correct way to do it, due to the following article (http://today.java.net/pub/a/today/2006/09/14/using-jaas-in-ee-and-soa.html) I am concerned that there will be unmanageable inconsistencies.
Given my requirements and the concerns regarding JAAS and JavaEE integration maybe a custom authorization mechanism would be better?
At the moment, I am very confused about how JAAS and JavaEE integrate together. I would be able to answer some of these questions myself by prototyping my scenario but my company isn't at that stage yet and I need to provide some words on this! Any help would be appreciated.
Thank you,
Paul Drummond
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973223#3973223
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973223
19 years, 7 months
[JCA/JBoss] - Re: Connection pool problem:No ManagedConnections available
by kockaSER
"adrian(a)jboss.org" wrote : "maikyal" wrote : doesn't help me.
|
| This is not your thread it is preddy's.
| Preddy is using the JBoss JDBC RAR
| which does fire connection closed in the correct place.
|
| i.e. in response to
|
| | java.sql.Connection.close()
| |
|
| cleanup() is only invoked when the connection manager returns the connection
| to the pool.
| It cannot do this until the handle has informed it that the connection is no longer
| being used by firing the close event.
|
| All this is in the spec.
|
| Hence your comments are rubbish/garbage i.e. off-topic and misleading.
I was looking for solution of the similar problem and here we are ?.
It is unbelievable how big human arrogance can be, a Adrian?
I believe that the Chief Scientist can and must do better than in the above answers or we are all rubbish/garbage.
Thx
P.S.
Do we really need to come here to be offended?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973221#3973221
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973221
19 years, 7 months