[EJB 3.0] New message: "Re: [6.0.0M2] SessionContext "mapped-name is required""
by jaikiran pai
User development,
A new message was posted in the thread "[6.0.0M2] SessionContext "mapped-name is required"":
http://community.jboss.org/message/528113#528113
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
Works fine for me:
@Stateless
@Remote (Echo.class)
public class EchoBean extends CommonEcho implements Echo
{
public String echo(String msg)
{
System.out.println("Session context is " + this.sessionContext);
return msg;
}
}
public class CommonEcho
{
@Resource
protected SessionContext sessionContext;
}
Upon calling the echo method, i see the injected session context:
13:17:57,936 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)]
...
13:20:05,100 INFO [STDOUT] Session context is org.jboss.ejb3.stateless.StatelessSessionContextImpl@1edd91b
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528113#528113
16 years, 2 months
[jBPM] New message: "Re: How to handle rollback due to runtime errors"
by Maciej Swiderski
User development,
A new message was posted in the thread "How to handle rollback due to runtime errors":
http://community.jboss.org/message/528107#528107
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
I agree with you that it would be best to enclose all executions in transaction aware protocols but that is not always the case. For Web Service calls there are more and more implementations that supports various WS-* extensions and as you mentioned JBoss Transaction has support for that as well.
My example was more to illustrate that there could be a case where we would like to call another process on another machine using completely different process engine/framework so we cannot have a transaction over it. What I would like to have is a minimal notification for user code in case of transaction rollback to be able to gracefully handle that, for instance to suspend/cancel process running somewhere else.
>From what you said, I assume that there won't be any solution for that?!
Cheers,
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528107#528107
16 years, 2 months
[JBoss AOP Development] New message: "How can I use JBoss AOP on jboss 4.0.2 ?"
by Doochul KIM
User development,
A new message was posted in the thread "How can I use JBoss AOP on jboss 4.0.2 ?":
http://community.jboss.org/message/528106#528106
Author : Doochul KIM
Profile : http://community.jboss.org/people/headiron
Message:
--------------------------------------------------------------
Hi.
Today I try to use jboss AOP on jboss 4.0.2.
I have some question about it.
1. Is it support only POJO class or include EJB bean ?
I want to use jBoss AOP to intercept some EJB call, but there isn't any article whether it is support ejb or not.
2. Can I use interceptor on EJB3 using jboss 4.0.2?
It seems that jboss4.0.2 support just J2EE1.4.
If I want to use interceptor on EJB3 what version of jboss I use ?
3. How can I use(use ) AOP on jboss 4.0.2 ?
I download sample file from http://docs.jboss.org/jbossas/jboss4guide/r3/jboss4guide.zip and build it( move to examples subfolder and build by ant ).
After that I copy two files (MortgageCalculator.war, TrialLimitAspect.aop ) on examples/output/jbossaop/ folder to deploy folder on jboss server.
I test it , but AOP function is not work.
Do I need to do any step ?
( I attach above two files on this )
Thanks
Doochul
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528106#528106
16 years, 2 months
[JBoss Cache] New message: "Handling Time To Live in JbossCache"
by Prashanth rao
User development,
A new message was posted in the thread "Handling Time To Live in JbossCache":
http://community.jboss.org/message/528102#528102
Author : Prashanth rao
Profile : http://community.jboss.org/people/gaprashanth
Message:
--------------------------------------------------------------
We are planning to use Jbosscache for caching the data which is fetched from the backend datasources. Here there is a requirement to implement the TTL for the data. The data should expire after the TTL is over.
The TTL must be regardless of the idle time of the data in the cache. Meaning, suppose a TTL of 5 minutes is set for a cache entry. This entry should be removed from the cache after 5 minutes and this does not depend on whether the cached entry was in use meanwhile.
Can you please advise me whether Jboss cache provides this kind of feature?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528102#528102
16 years, 2 months
[jBPM] New message: "Re: How to create a new project JBPM 4.3"
by Maciej Swiderski
User development,
A new message was posted in the thread "How to create a new project JBPM 4.3":
http://community.jboss.org/message/528101#528101
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
As Dominic already mentioned, there is no way and need for jBPM project in eclipse any more. It's enough to create Java project with dependencies to jBPM libraries. You need to create/copy configuration for jBPM and database into your eclipse project, they can be found within the jBPM distribution (instal/src/cfg) or in examples project. I personally recommend to start with examples, the easiest way to get to know basics.
Then you create process definition file (*.jpdl.xml) in it (most likely in some package structure) and off you go.
For building and deployment you can use ant script, take a look at one delivered with examples package.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528101#528101
16 years, 2 months
[Datasource Configuration] New message: "Re: How to configure Oracle with my application in jboss 5.0"
by Anand Kumar
User development,
A new message was posted in the thread "How to configure Oracle with my application in jboss 5.0":
http://community.jboss.org/message/528099#528099
Author : Anand Kumar
Profile : http://community.jboss.org/people/akstifr
Message:
--------------------------------------------------------------
Previously i used jdbc/datanet but after you have specified some changes in the previous post so that i have changed that thing in the code with new name. Here is Connection Code file:
package beans;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class OracleDatasource {
private Connection con;
public Connection getDbConnection() {
try{
Context initCtx = new InitialContext();
//Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/OracleDS");
if (ds == null)
System.out.println("datasource not obtained..");
con= ds.getConnection();
if (con == null)
System.out.println("connection not obtained..");
} catch( NamingException ne ) {
throw new RuntimeException( "Unable to aquire data source", ne );
} catch (SQLException se) {
System.out.println("Exception occured while obtaining connection...");
se.printStackTrace();
}
return con;
}//end getDbConnection()
}//end class
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528099#528099
16 years, 2 months