Here's the problem:
UserTransaction is started on client-side. Then, client performs an update on entity
bean, follows by an execution of stateless session bean. Pseudo code:
| utx.begin();
| cmbA.setField(new value);
| sessionBean.readCmbAValue();
| utx.commit();
|
where
Its the standards defined by j2ee 1.3, with jmx 1.2 and a 2.4 serlvet container.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843947#3843947
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843947
Correct, you have to call a bean method to have the bean create the timer, and an
mbean could be used to trigger this. I don't have an example, but it would be simply
to add the ejb timer creation method call to the start method of the mbean. The mbean
would have to depend on the ejb.
View the
What instance based security are you referring to? Interceptors are the basis for
adding arbitary security checks and these may be standardized for ejb3.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843949#3843949
Reply to the post :
Thanks cbrettin for your reply,
But I cannot find any configuration in the server.xml for the Certificate Principal.
Can you please post a copy of the server.xml that has configuration for the
CertificatePrincipal.
Thanks again
View the original post :
You are misunderstanding cascade-delete. Re-read the remove protocols in the spec.
What you are doing is just destroying relationships. Nothing's wrong so far.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843951#3843951
Reply to the post :
I think you should just rename the 'findGeneric' method on the home interface. As it
is recognized as a finder method due to the 'find' prefix.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843952#3843952
Reply to the post :
Does the column appear only once in the statement in MySql case?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843953#3843953
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843953
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.java
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843954#3843954
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843954
Hi
How can I update the following xml snippet so that it would be scheduled to every day
at midnight ? I have tried updating InitialStartDate to midnight without success...
true
mypacakge.util.jmx.JMXLogScheduler
NOW
1
-1
View the original post :
Hi
I am using jboss-3.2.2 for deploying EJBs on red hat OS.
Any one could pls. send me some source code (links) where i can test ejb-security
involving EJBs.
I require some sample examples of JAAS authentication on jboss-3.2.2, EJB security.
Thanking in advance.
View the original post :
opps the snipped wasnt seen correctly here it is :
mbean code=org.jboss.varia.scheduler.Scheduler
name=:service=Scheduler
attribute name=StartAtStartuptrue/attribute
attribute name=SchedulableClassmypackage.util.jmx.JMXLogScheduler/attribute
attribute
As a first step, include attribute
extends and local-extends
in tag @ejb.home and @ejb.interface
like this
* @ejb.home
* extends=javax.ejb.EJBHome
* local-extends=
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843958#3843958
Reply to the post
JBOSS: 3.2.4
PostgresDB: 7.4.2
EJB XDocLet declaration:
* @ejb.finder signature=java.util.Collection findByInfo(java.lang.String info)
* query=
* @jboss.declared-sql signature=java.util.Collection findByInfo(java.lang.String
info)
* where=idA LIKE '%{0}%'
*
Post error:
where=idA LIKE '%{0}%'
is
where=info LIKE '%{0}%'
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843961#3843961
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843961
Are there any errors higher in the output?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843963#3843963
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843963
---
This
Before I reinvent the wheel...maybe somebody can point me to a good working
implementation of a service locator for a jboss cluster
Thx Tilman
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843964#3843964
Reply to the post :
i have set a jboss clustering . but i think have some wrong.
when a node (ip1, http://ip1/index.htm )is down, another can get the session (ip2,
http://ip1/index.htm ). I haven't get the clustering work well.
so who can figure the steps how to test the Jboss 4 RC1 clustering ?
thanks a lot.
when i use tcpdump to sniffer the packets on node 2, i found that nothing packet from
node 1.
So i think that the real jboss clustering haven't setup correctly. i think some config
files need to config. so who can give me more help...?
3ks..
View the original post :
Dear All,
Can anyone confirm that SSO is supported in jboss-3.0.8_tomcat-4.1.24? I
ask as the official wiki on SSO mentions jboss 3.2.*, not 3.0.* (i.e.
http://www.jboss.org/wiki/Wiki.jsp?page=SingleSignOn).
Best,
Conor
View the original post :
Thanks Topricana for the response.
As I am very new to programming I am still learning( almost end user till last month)
I have a page where the user enter the details in fields. As soon as I visit the page
I see the fields as displaying null.
But if I navigate to the same page thro' some other
Auto-resolved! ;)
Solution:
* @jboss.declared-sql signature=java.util.Collection findByInfo(java.lang.String
info)
* where=info LIKE '%' || {0} || '%'
* strategy=on-find
View the original post :
Hi,
i've a WEB application using EJB CMP, Stateless session bean, servlet, jsp
The question is: how can i work in a non packaged environment ?
now i produce an ear that i put under deploy directory, but every times i modify
something i need to redeploy
How can i organize my directory, and
Hi all,
We are setting up a cluster of servers, the specifications are as follows:
OS: Windows 2000 Professional
JDK: jdk1.3.1_04
JBoss version: jboss-3.2.1_tomcat-4.1.24 (on 2 nodes viz server1 and server2.)
Apache: 2.0.45(installed on server1)
We have included distributable/ element in the
I am using jboss3.2.5 with Tomcat as web server. I want to configure the datasource
name. But we are not using ejbs. The application is just using simple java classes,
jsp and servlets. The DataBase is MySQL. How to configure the DataSource name in jboss
for the application. Is it possible
Putting some more info in the above post...there are times when we see the following
error in the JBOSS_HOME/server/all/log/server.log file:
2004-08-03 16:55:25,328 DEBUG
[org.jboss.ha.httpsession.server.ClusteredHTTPSessionService] getHttpSession called
for session:
In that case probably only from 3.2.3 onwards. 3.0 is pretty old, why not use a more
recent version of JBoss?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843977#3843977
Reply to the post :
Thank you for your replies. I tried both suggestions and it works now.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843979#3843979
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843979
Hi,
I'm having trouble when trying to rollback a transaction when a new entity bean is
created. The problem is that if a rollback occurs (calling the setRollbackOnly()) all
the changes are rolled back but the row is not deleted, even though the create() call
on the entity bean is beeing made
Run the code that accesses the datasource inside the application server.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843981#3843981
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843981
Hi all,
I am trying to write a standard Mbean that could return me the status of a server or
any property of the server. I am able to write a sample Mbean and deploy it in Jboss
and acess via JMX-console (ie HTML adaptor)? How do i acheive this if my client is a
java application rather than a
Do you have a special need to access the AdminClient directly?
I generally put the WSDD in a web-service.xml file an build a WSR with that. The
WSR is laid out like:
| mywebservice.wsr:
| META-INF/
| META-INF/MANIFEST.MF
| META-INF/web-service.xml
|
The WSR is referenced in
Thanks for the reply. I can try this. Is building wsr file similar to jar file??Also,
can you tell me what needs to be included into application.xml?
Thanks,
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843984#3843984
Reply to the post :
Hi all, got workbook source code, just follow links for java books , and there is a
link to the workbook download from the book page itself.
Problem :
When I build the examples with ant JBOSS throws an exception :
ejb-jar.xml must define a valid DOCTYPE!
Any ideas ?
Thanks in advance .
***
Hi,
I wonder how I can set the certificatePrincipal attribute on the JBossSecurityMgrRealm
used for web applications in Jboss 3.2.5.
I've tried to add a Realm element inside both the Engine and Host element to the
server.xml-file in jbossweb-tomcat50.sar, but no luck. That is, an instance of
Hello Scott,
I agree this can be done today but looks to me this is going to be part of the J2EE
framework in the future. I'm referring to J2EE 3.7.2 Instance-based Access Control
in the following document:
java.sun.com/j2ee/j2ee-1_4-pfd2-spec.pdf
Sebastien.
View the original post :
please help!!
if I set :
for my HtmlBlock, simply, doesn't it mean that any other group I created that's diff
from Anonymous and Admins won't see the block??? is there a reason why it wouldn't
work? also, when one logs in, the html module is called, so I can forbid just a page
by
I mean, if I set :
sorry.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843989#3843989
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843989
---
This SF.Net email
euh?
group= level=READ pattern=::
group=admins level=READ pattern=.*:.*:.*
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843990#3843990
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843990
In a secured context managed by JAAS, must a JBoss ServiceMBean have to login to
access Beans ?
Even if the service is logged by a LoginContext, I've an error: Principal==null when
this service call the method create on the Bean Home after the authentication
(succeded). What's the problem ?
I just brought up a site with nukes and needed to protect a members area. Here is
what I did:
1. I defined a group that all users should be a member of to be able to read the
members only area.
2. I created a page with id /members/index.html and put some content on it
3. Using the
Designing today for this empty statement is pointless:
anonymous wrote :
| J2EE.3.7.2 Instance-based Access Control
| Some applications need to control access to their data based on the content of the
| data, rather than simply the type of the data. We refer to this as
instance-based
|
It can't be done because this setting was not externalized. It will be for the
3.2.6RC2 release.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843994#3843994
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843994
I am working on an application which uses Struts 1.1.The application uses nested tags.
nested:nest property=myProperty.childProperty
..
.
html:text property=finalPropertysize=16 maxlength=16
The myProperty is an object whose getter/setter is defined in the form bean and and
it is set in
Hi,
I'm getting a response message back roughly along the lines of:
ns1:processAuthorisationRequestResponse soapenv:encodingStyle=... xmlns:ns1=...
| ns1:processAuthorisationRequestReturn href=#id0/
| /ns1:processAuthorisationRequestResponse
|
| multiRef id=id0
|
From reading the XDoclet documentation you need to remove the following lines from
the @ejb.bean section: -
* local-business-interface=natis.interfaces.TestBeanLocalHome
| * business-interface=natis.interfaces.TestBeanRemoteHome
You have instructed XDoclet to use the local home
I would like to deploy (loosely speaking) a simple web app that is not much more than
a helloworld.jsp. Under Tomcat I can create a context directory, have a WEB-INF empty
dir there and a single JSP file in the context dir.
How(if i can) do something similar in JBoss if I don't have a war
Hi ,
I have jboss3.2.5 running in production with jdk 1.4.1_02. I am facing this error
java.lang.IllegalAccessError: class oracle.jdbc.driver.$Proxy576 cannot access its
superinterface oracle.jdbc.driver.ScrollRsetStatement
at java.lang.reflect.Proxy.defineClass0(Native Method)
Hi,
I have a Login module that I use with SSL client certificates. The log from the module
suggests that it is invoked by the JaasSecurityManager on every client call, even when
the client (and principal) is previously authenticated, and the principal is in the
cache. Other username/password
Hello Alexey,
The SQL-statement that JBoss tries to execute is:
anonymous wrote : Executing SQL: INSERT INTO COMPONENTFIELDVALUE (CONTRACT, COMPONENT,
FIELDNAME, SEQUENCE, VALUE, contract, component)
| VALUES (?, ?, ?, ?, ?, ?, ?)
I switched the Datasource to Oracle in the meantime and got
jamesstrachan wrote :
| As an example, if you are expecting 100,000 help desk records a year, provide for
1,000,000 numbers before rolling round. The system will roll round to 1 after ten
years, and it is highly unlikely that any low numbered records will still be around.
|
This, I
I couldn't really decide which forum to put this in, so this one sounds as good as any.
I've been tooling around a bit with Jakarta's log4j, and it seems to be an awesome
utility to have. Needless to say, I'm now interested in using this library in
applications. For the most part I understand
Is there a better way to know whether an entity bean exists other than trying a finder
and catching a FinderException ? (I dont like the idea of having an exception for an
unexceptional state)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844008#3844008
briana wrote :
| ?xml version=1.0?
| !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
| web-app
| display-nameHR/display-name
| HR Misc Apps
|
| servlet-mapping
| servlet-nameTestingServlet/servlet-name
|
But the relationship is not destroyed... If I run the clear statement alone and then
commit, no changes are made to the database whatsoever
The only way to destroy this relationship in the db is to delete the rows (because the
relationship resides in the primary key of the child record).
I think I found the solution to logging seperate applications through seperate log4j
instances vice the container wide logger.
It is here.
I think I need an aspirin now..
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844012#3844012
Reply to the post :
Hello,
Does Jboss support and is certified on z/os and zLinux mainframe systems? What
platforms does JBoss support?
Thanks,
abj.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844013#3844013
Reply to the post :
I tried your suggestion and it looks like we're making progress. The server.log now
gives the below error. The exact web.xml is also listed below. Do you know why this
URL pattern would be invalid?
2004-08-03 15:48:25,488 ERROR [org.apache.catalina.startup.ContextConfig] Parse error
in
I hope the un-tag-enclosed strings HR Misc Apps and Test Servlet are actually in
CDATA tags like this:
| description![CDATA[None Available]]/description
|
If you use the code and /code tags inside [] it will display your code properly.
The URL patter must begin with a / So try /test
Hi,
we intend to call an ejb (version 2.0) from a stored procedure (java).
Here in pseudocode:
SQL statement 1
SQL statement 2
call to EJB session bean
SQL statement 3
If SQL statement 3 fails, will all the ejb stuff (made by the session bean) roll back
also?
How can I demarcate transactions
Some more infos: In a simple ejb client, I can not call
session_context.setRollbackOnly(); because a simple ejb client has no session_context.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844018#3844018
Reply to the post :
i have problem when deploying the EJb with the same ejb-ql.
This is the error...
ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'select
object(o) from BprInstSubProActivityEJB o where o.pngId = ?1 and o.insId =
When I start JBOSS using the LD_ASSUME_KERNEL at the top of the run.sh (which works
fine on Redhat 9) I see about 50 JBOSS processes. Is this normal? When I take the
export LD_ASSUME_KERNEL out of the run.sh then I see only 1 JBOSS process. Either
way, JBOSS seems to work but I was not sure
I found the solution myself.
There is a UserTransaction object registered in the jndi tree (UserTransaction).
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844021#3844021
Reply to the post :
Thank you very much.
The one think I can't understand it's why my cache in this situation still recieves
messages. I don't mean that my onMessage() method being called, but when I look at
profiling statistics for my test code I see that most part of time it's took to read
from soket in JMS
We had trouble with isapi_redirector2.dll also. Large file uploads failed.
isapi_redirector.dll has performed fine.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844023#3844023
Reply to the post :
I'm using Jetty as the web container in my jboss installation. How do I go about
configuring the request log so that it prints out the entire http requests and
response?
Thanks
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844024#3844024
Reply to the post
Hi pique and darranl
Thanks for the info. You may both give me a virtual kick in the pants.
DarranI, in fact, these lines should point to the business (i.e. Remote and
((local??)) interfaces, not the homes.
A further problem is that if I point the business interface to Remote, everything is
As far as configuring Jetty to log requests and responses..I can't help you.
However, if you need a quick solution for debugging purposes or whatever, I recommend
Mozilla Firefox with the LiveHTTPHeaders plugin. This combination allows you to view
the requests your browser sends, and
I have a MDB that receives a message and then creates two messages that it delivers
onto two different queues. This system will eventually (if I ever get it there)
receive hundreds of thousands of messages an hour, so it's important I figure this
out. When I put a few hundred messages onto the
MC4J Management Console does not support remoting for jboss.
see the requirements section in http://mc4j.sourceforge.net/usageJBoss.html
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844028#3844028
Reply to the post :
The scenario:
I am using JBossMQ to hold transient data that is passed to a Queue then to an MDB,
data is processed and the result goes to another Queue and another MDB and then the
final result is put into a MySql db. The MDB's are pooled using the default config in
standardjboss.xml. For a
you can remove other entries as they are optional. consult your DBA for the ff:
youroraclehost = can be the ip address of the oracle machine
yoursid - system identifier
username
password
datasources
| local-tx-datasource
| jndi-nameOracleDS/jndi-name
|
from the sql generated
Executing SQL: CREATE TABLE Workgroup (id VARCHAR(256) NOT NULL, name VARCHAR(256),
CONSTRAINT pk_Workgroup PRIMARY KEY (id))
the error states that VARCHAR max length should only be 255.
hth
View the original post :
you can use this script below.
#!/sbin/sh
| case $1 in
| 'start')
| echo Starting Jboss Server
| /usr/jboss/bin/run.sh1 | tee /var/log/jboss
|;;
| 'stop')
| echo Stopping Jboss Server
| #PID = /usr/bin/pgrep java
| /usr/bin/pkill
you may initialize your value object's like String attribute to ;
hth
aalmero
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844033#3844033
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844033
Yea, I think that is right, that is the index.jsp that has nothing in it. Actually, I
dont think I have any servlet-code that connects to a session bean in a full package,
maybe somewhere on the site.
View the original post :
Hello all,
I have the same problem, I know that with weblogic you get a tool for generating the
client JAR, does anyone know of a tool to do the same thing for jboss?
Thanks,
Drew2002.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844037#3844037
Reply to the
I am by no means an authority on this subject.
This is kind of a known problem with log4j and application containers. Or, rather,
it's not really a problem because this is the expected behavior. Or so I've gathered.
From what I've puzzled out the problem is all about Class loading. When
Hi,all,
I am doing a project which upload a file and then insert the parsing result into
the DB(Oracle 9i). The situation is like this,there's main lineitem table and another
2 dependent tables,Each mainline will have a couple of vlaues to be inserted in the
dependaent tables.
The
Hey Richie,
I have exactly the same problem as you.
Have you found an answer or a work around?
Thanks,
Francois
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844040#3844040
Reply to the post :
Thank you for the reply Alexey!
However, I should have been more clear with my question. What I'm really trying to
find out is the trace of the findByPrimaryKey() method. I want to understand how the
container behaves when findByPrimaryKey() is called and which components are invoked.
I am
Yes, building a WSR (Web Service Archive) is exactly like building a JAR. Mine
generally contain only the META-INF/web-service.xml file. I don't put anything
special in the MANIFEST.MF, I just let the jar command build one.
The EAR should reference the WSR in it's META-INF/application.xml
Hi,
I'm having problems setting up JAAS security in JBoss 3.2.3.
(I have few years experience as java programmer, but JBoss is relatively new to me). I
would be grateful if someone can help me with this problem.
I configured DatabaseServerLoginModule, set up Principals and Roles tables in HSQL
I actually did work the problem out. I'm sorry I forgot to post back with what I
found
In my case I did not use log4j. Instead I'm using java.util.logging which I then add
a custom JDBC Handler to because I am logging to a DB table rather than a file or the
JBoss server log file. Extra
I have setup JBoss 3.2.3 on Solaris 9, and I would like to know how to configure SSL
for it. I am novice for JBoss environment, can someone directly me to a
walk-through(step-by-step) configuration instruction for SSL?
Thanks for your time.
-Vinay
View the original post :
Even I am facing the same problem. Using Jboss3.2.1(Jetty).
Besides that I was also trying to mix protocols after login.
Any help is appreciated.
Thanx in advance
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844046#3844046
Reply to the post :
i have exactly the same problem, and your description of its behavior is very
accurate. I want to find out a way to test whether the bean is still valid.
my stupid way to do it is this. i have a public void dummy() method in the home
interface and the bean. then in the client i have
try {
darranl wrote : It is not an issue it is standard J2EE behaviour as described in the
EJB specification.
|
| JBoss does have a configuration file that allows the timeouts to be changed, this
is described in the administrators and developers guide.
darranl thanks for your input but i've seen
I believe JBoss AS is an open-source J2EE compliant App Server.
Can anybody tell me where I can find its source codes.
Thanks in advance.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844052#3844052
Reply to the post :
In addition to the above,
I have upgraded to JBOSS 3.2.5-tomcat 5.0.26. still can't find where to configure for
the certificate principal mapping class in the JbossSecurityMgrRealm. knowing that
JbossSecurityMgrRealm is hard coded and there is no way to replace it with other
realm. and you can
I seem to be missing something rather basic here. Out of curiosity, I changed the
authentication method to BASIC and it worked perfectly fine. I am really really
confused as to what is wrong with Form based authentication here. I can't used Basic
auth method.
Any suggestions or alternatives
Hi !
I am having the same error.
Did you manage to fix it ?
Any solutions/tips/hints ?
TIA,
Kunal
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844055#3844055
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844055
The problem was fixed after we recreated the schema
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844056#3844056
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844056
94 matches
Mail list logo