[EJB 3.0] - JNDI lookup from app server of ejb in another server returns
by justinmiller
Hi,
I have two application servers and we're using EJB3 style stateless session beans. I intentionally want to lookup from one app server, a remote EJB from the other. I attempt to do this as follows:
Properties props = ...
props.put(InitialContext.PROVIDER_URL, "otherAppServer:1099");
InitialContext ctx = new InitialContext(props);
remoteEJB = ctx.lookup(EJB_NAME);
The problem is, nothing fails! I can successfully create the initial context. However, when I the lookup happens, instead of returning a remote reference to the EJB in the other app server, it gives me back a local reference!
>From the googling I've done, I don't think this is a bug necessarily, but more of a "feature" of jndi/jboss. My guess is that's it's the IsLocalInterceptor that's making this judgement call.
Is there a way to disable this optimization for certain session beans? What's the best way to accomplish what I'm after?
I'm using jboss 4.0.4 and EJB3.
If this is not an EJB issue and there is a better forum to post this in, please let me know
Thanks in advance,
Justin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046632#4046632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046632
18 years, 11 months
[JBoss jBPM] - Re: org.hibernate.TransientObjectException object references
by javi0704
Hi Roland, thank you for you response. I know its realy scary. But my problem is to stop the first "task-node" suppose i have in this task-node task variable with event action(ActionHandler.java). My variable name is number, so when the user give the number. My rule have to control if the number is greater than 4 means(number>4) If it is true==>then this task-node have to wait, else==> continue to next task-node. So that why i need to create a new state to solve this problem programmatically.
The next Task-node can not solve this problem because task-node behave not like state whatever the user gives it dosen't wait.(so when i use state this will not continue so behave like wait-state). So it can't be modeled in advance. So that is why i want to create this State programmatically.
Do you have maybe any other idea to solve this problem?
Thanks for your interest
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046629#4046629
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046629
18 years, 11 months
[JBoss Seam] - Re: SEAM-GEN SEAM 1.2.1 crashes in sql
by dreuzel
I'm using jboss 4.05 ga jems install
I'm using seam 1.2.1
in the middel of seam-gen entities : after reinstalling I essentialy get the same message
C:\WINDOWS\ProgramFiles\jBOSS\seam\jboss-seam-1.2.1.GA>seam generate-entities
Buildfile: C:\WINDOWS\ProgramFiles\jBOSS\seam\jboss-seam-1.2.1.GA\seam-gen\build
.xml
validate-workspace:
validate-project:
generate-entities:
[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engi
neering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)
[hibernate] 17-mei-2007 22:24:01 org.hibernate.cfg.Environment
[hibernate] INFO: Hibernate 3.2.0.cr5
[hibernate] 17-mei-2007 22:24:01 org.hibernate.cfg.Environment
[hibernate] INFO: hibernate.properties not found
[hibernate] 17-mei-2007 22:24:01 org.hibernate.cfg.Environment buildBytecodeProv
ider
[hibernate] INFO: Bytecode provider name : cglib
[hibernate] 17-mei-2007 22:24:01 org.hibernate.cfg.Environment
[hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernate] 17-mei-2007 22:24:02 org.hibernate.cfg.reveng.OverrideRepository add
File
[hibernate] INFO: Override file: C:\profiles\eclipse\develop\resources\seam-gen.
reveng.xml
[hibernate] 17-mei-2007 22:24:03 org.hibernate.connection.DriverManagerConnectio
nProvider configure
[hibernate] INFO: Using Hibernate built-in connection pool (not for production u
se!)
[hibernate] 17-mei-2007 22:24:03 org.hibernate.connection.DriverManagerConnectio
nProvider configure
[hibernate] INFO: Hibernate connection pool size: 20
[hibernate] 17-mei-2007 22:24:03 org.hibernate.connection.DriverManagerConnectio
nProvider configure
[hibernate] INFO: autocommit mode: false
[hibernate] 17-mei-2007 22:24:03 org.hibernate.connection.DriverManagerConnectio
nProvider configure
[hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://local
host/jboss_dev
[hibernate] 17-mei-2007 22:24:03 org.hibernate.connection.DriverManagerConnectio
nProvider configure
[hibernate] INFO: connection properties: {user=jboss_dev, password=****}
[hibernate] 17-mei-2007 22:24:04 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate] WARNING: Could not obtain connection metadata
[hibernate] java.sql.SQLException: Unknown initial character set index '48' rece
ived from server. Initial client character set can be forced via the 'characterE
ncoding' property.[hibernate] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046626#4046626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046626
18 years, 11 months