Can't I invoque an EJB in the Oracle ESB??
Hi all,
I'm just new on Oracle ESB and may be in error, but I have readed that RMI transport is not suported... Is it really true??
What can I do if I want to expose an EJB as a Web Service in the Oracle ESB??
Regards David
I am doing the above quite successfully in a number of ESB processes.
My EJB's are exposed a EJB3 session beans with a web service interface and as mentioned, can be called via a SOAP service.
Chris
Similar Messages
-
Can I give access to ICQ through the Oracle Messenger client?
Can I give access to ICQ through the Oracle Messenger client, is similar JIT in Jabber?
you can try, but it will not be supported by Oracle Support.
-
Why can I download and install all of the Oracle ATS products for free?
Why can I download and install all of the Oracle ATS products for free? When I installed, I was not prompted for any licenses or to purchase anything.
I want to know why this is possible and if there are plans to charge for it in the future?I don't know Oracle's ATS products specifically, but many of Oracle's products can be downloaded and used for free for learning purposes.
Typically, if you intend to use the products commercially then you need to pay for a licence, otherwise you are using it illegally.
This is usually described in the T&C's you agree to when you download the software. -
How can I customize a skin starting with the Oracle Skin?
I understand that when customizing skins, you start by over-riding the 'simple' skin.
Where can I find the CSS file for the default oracle skin that I can use as a starting point to jump-start the skin customization? What I am trying to do is customize the skin, but I want to use the CSS for the Oracle skin as a starting point to over-ride the simple skin - I really only need to make a few tweaks to the Oracle skin CSS and don't want to start from scratch with the simple skin.
Any help much appreciated.ps - all I need to do right now is set up some new styleclasses that I can use to format text-related components. in the future I'd like to be able to format tables - i.e., change format not to display borders, change table heading colors, etc. - is this possible with the 2nd approach based on modifying oracle-desktop.xss?
-
What are some of the Oracle provided packages that DBAs should be aware of?
Can anybody let me know what are the ORacle packages that one should aware of in case oracle 9i/10g
user13389425 wrote:
Can anybody let me know what are the ORacle packages that one should aware of in case oracle 9i/10gSince you haven't asked a very specific question, answer would be generic only. Anything, which you being a dba, don't know about, you should think twice before playing with it. This includes, parameters, packages , commands , anything!
Aman.... -
How to set the oracle oci8 driver?
hello all:
I've set up the oracle thin driver and it works. but when I change to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
at weblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regardsHello, Jenny I am glad you found your resolution. I too am having problems isung
the oracle 0CI8 driver. My connection pool is creating fine, but my server is
crashing with JVM errors.
Here are my configurations.
DBase=Oracle 8.1.7,OS=Win2000, running 6.1 with Portal 4.0
pool config =
<JDBCConnectionPool CapacityIncrement="0"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
MaxCapacity="5" Name="ccConPool"
Properties="jdbc.url=jdbc:oracle:oci8:@servername:1521:orcl;user=XXXXX;password=XXXXXX;dll=ocijdbc8;server=orcl;protocol=oci8;dll=ocijdbc8;protocol=oci8"
RefreshMinutes="0" Targets="portalServer"
TestTableName="WIP_TABLE" URL="jdbc:oracle:oci8:@servername"/>
My classpath sets my classes12.zip file first. My path sets %WEBLOGIC_HOME%\bin\oci817_8
and %WLCS_ORACLE_HOME%\bin.
Am I setting the right dll and protocol in my .dll? Where can I find documentation
on these properties definitions?
"jenny" <[email protected]> wrote:
hello all:
I've got the answer. those all because weblogic.jar. this jar include
the
class "oracle.jdbc.driver.OracleDriver".
although I put the classes12.zip into the CLASSPATH.but the weblogic.jar
in
front of classes12.zip.so classloader
load the class from weblogic.jar. so I can use thin driver(weblogic
implements this function with class,but not for oci8 )
..this is really a big pitfall !
put the classes12.zip in front of weblogic.jar .all perfect!
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
below is some chapters of my config.xml and startWeblogic.cmd
the oci8 :
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool" Password="{3DES}J3XuQd6cvvw="
Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
Targets="myserver" TestTableName="test"
URL="jdbc:oracle:oci8:@pg01"/>
the thin :
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="citcpool" Password="{3DES}J3XuQd6cvvw="
Properties="user=yanji;password=yanji"
SupportsLocalTransaction="true" Targets="myserver"
URL="jdbc:oracle:thin:@sune250:1521:pg01"/>
:runWebLogic
echo on
set ORACLE_HOME=e:\oracle
set PATH=./bin;%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\dom.jar;.\lib\xml
4j.jar;.\lib\jecf.jar;%ORACLE_HOME%\jdbc\lib\classes12.zip
echo off
the thin driver is ok,but the oci driver can not work!
if I've set the wrong CLASSPATH or PATH , the thin driver and oci8driver
must have not worked. I confused!
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
Its not CLASS_PATH it should be CLASSPATH.
when you say oracle\bin and oracle\lib , on what driver is the oracle
folder?I meant to say 'on what drive' not 'on what driver'
you have to specify the full path.
post your startup script here.
sree
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
I've set the ORACLE_HOME,and CLASS_PATH,but nothing changed. I will
go
to
crazy!!!
when startup the weblogic,I've seen the oracle\bin and oracle\libin th
"path" and classes12.zip in the CLASS_PATH.but the errors stillappears!!
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
1. Dont copy this file oci8jdbc.dll, to bin folder. Make sure
you
place
<oracle_home>\lib in your PATH before starting the server. Make
sure
your
ORACLE_HOME environment varable is set to <oracle_home> folder.
eg. set ORACLE_HOME=c:\ora816 before starting the server.
so you must have done something like
set ORACLE_HOME=c:\ora816
set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
2. double check if you set your CLASSPATH something like this,
CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%CLASSPATH%
in the server startup script just before starting the server.
3. start the server the connection pool should work.
hth
sree
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello All:
I've edited the StartWeblogic.cmd, set the classes.zip into CLASSPATH,and
copied the oci8jdbc.dll to the bea\wlserver6.1\bin. errors stillappears!
my weblogic version is 6.1 and oracle is 8.1.6 .
why the thin driver is ok but the oci driver can not work?
I logined in the oracle website and look for the jdbc.but I find
that
jdbc
all provide for jdk1.2 or jdk1.1. because the weblogic6.1 based
jdk1.3.
I
think i can not use those drivers.
I think my oracle driver is ok,because i installed the jboss and
bas4.5
in
my computer. they all can use oci8 driver properly.and they all
based
jdk1.3.
by the way. I 've tryed added the oracle\bin path inStartWeblogic.cmd,
nothing changed !
again below is my config : I want to know whether my config right?
(the property DLL and Protocal auto added by the weblogic)
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
best regards
----- Original Message -----
From: "Mitesh Patel" <[email protected]>
Newsgroups: weblogic.developer.interest.jdbc
Sent: Thursday, December 13, 2001 4:00 AM
Subject: Re: how to set the oracle oci8 driver?
To use oracle oci8 driver:
You should have classes12.zip in weblogic classpath.
You should have ocijdbc8.dll in your weblogic path..
You can download ocijdbc8.dll from oracle website.
Mitesh Patel
jenny wrote:
hello all:
I've set up the oracle thin driver and it works. but when I
change
to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
atweblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regards
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
I've set up the oracle thin driver and it works. but when I change
to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
atweblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regards -
How to make the oracle forms 10g applet or runtime the size of 1024x768?
Hi,
Can anyone tell me
How to make the oracle forms 10g applet or runtime the size of 1024x768?
Thanks in advans..Please post your question in Forms Topic
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
What are the Oracle Grid's differences or strengths against other vendors
Hi,
I'd like to know what Oracle 10g system is different from others.
There are many concepts for Grid computing,
but isn't still standardized form for it.
So many vendors are imprementing their own Grid system.
Can anyone point out about what are the Oracle Grid's differences or strengths against other vendors (IBM, Microsoft, Sun etc)
Thank you.Hi
I'm very skeptical about what Oracle calls grid computing. Few years ago I wrote a paper entitled "Is Oracle Database Moving Toward Grid Computing?" (http://www.trivadis.com/Images/grid_computing_en_tcm17-11759.pdf) handling that topic. Honestly, even two releases later (10.2 and 11.1) things has not really changed.
HTH
Chris -
Scrpits for health monitoring of the oracle data base
Hi Folks
Can some one help me in finding the oracle database health monitoring scripts ...
Thanks in AdvanceFind one which i prepared.
REM Database Health monitoring script.
REM
REM Segments Max extents & Current extent comparison
REM ***************************************************
set line 180
set pagesize 10000
set feedback off
prompt
col Time format a50 heading "System Time"
select to_char(sysdate,'DD-MON-YYYY:HH24:MI:SS') Time from dual;
prompt
prompt
prompt
prompt**---------------Objects Reaching Max extents-----------------------**
prompt
col segment_name format a40 heading "Object Name"
col max_extents format 9999999999 heading "Max Extents"
col curr_extents format 99999999999 heading "Curent Extents"
select a.segment_name,a.max_extents,b.curr_extents from dba_segments a,(select
segment_name,max(extent_id) curr_extents from dba_extents group by segment_name) b where a.segment_name = b.segment_name
and (a.max_extents - b.curr_extents) <= 10;
prompt
prompt**---------------User Session Information----------------------------**
prompt
col sid format 9999 heading "SID"
col serial# format 9999999 heading "SERIAL NO"
col logon_time format 9999999 heading "Login Time"
col username format a12
col osuser format a24
col program format a38
select s.sid,s.serial#,p.spid,s.username,s.osuser,s.program,to_char(s.LOGON_TIME,'DD-MON-YY:HH24:MI:SS') "Log on Time",round((s.LAST_CALL_ET/(60*60*24)),2)"Wait in Days" from v$session s,v$process p where s.paddr = p.addr and s.username is not null order by 8 desc;
prompt
prompt**---------------File Information-------------------------------------**
prompt
col file_name format a55 heading "File Name"
col SizeInMB format 99999999 heading "Total Size (MB)"
col MAXSIZE format 99999999 heading "Maximum Size (MB)"
select file_name,BYTES/(1024*1024) SizeInMB,AUTOEXTENSIBLE,MAXBYTES/(1024*1024) MAXSIZE from dba_data_files;
prompt
prompt**---------------Tablespace Information-------------------------------**
prompt
col tablespace_name format a25 heading "Tablespace Name"
col logging format a10
col status format a12
col extent_management format a30 heading "Local/Dict"
select tablespace_name,status,contents,decode(logging,LOGGING,'YES','NO') Logging,extent_management from dba_tablespaces;
SELECT Total.name "Tablespace Name",
Free_space, (total_space-Free_space) Used_space, total_space
FROM
(select tablespace_name, sum(bytes/1024/1024) Free_Space
from sys.dba_free_space
group by tablespace_name
) Free,
(select b.name, sum(bytes/1024/1024) TOTAL_SPACE
from sys.v_$datafile a, sys.v_$tablespace B
where a.ts# = b.ts#
group by b.name
) Total
WHERE Free.Tablespace_name = Total.name;
prompt
prompt**---------------Tablespace Fragmentation Status----------------**
prompt
col TABLESPACE_NAME format a25 heading "Tablespace Name"
select TABLESPACE_NAME Name,TOTAL_EXTENTS "Total Extents",EXTENTS_COALESCED,decode(PERCENT_EXTENTS_COALESCED,100,'NO','YES') "Frag" from
dba_free_space_coalesced;
prompt
prompt**---------------Latch Contention-------------------------------**
prompt
col name format a40 heading "Latch Name"
SELECT name, gets, misses,
round((gets-misses)/decode(gets,0,1,gets),3) hit_ratio,
sleeps,
round(sleeps/decode(misses,0,1,misses),3) "sleeps/misses"
from v$latch
where gets != 0
order by name;
select name,immediate_gets,immediate_misses,(immediate_gets)/(immediate_gets+immediate_misses) Hit_Ratio
from v$latch where immediate_gets != 0;
prompt
prompt**---------------Shared Pool Statistics-------------------------------**
prompt
col namespace format a22
select namespace,gets,gethits,round(gethitratio,2) gethitratio,pins,pinhits,round(pinhitratio,2)
pinhitratio,reloads,invalidations from v$librarycache where namespace in ('SQL AREA','TABLE/PROCEDURE','BODY','TRIGGER');
prompt
prompt**---------------Reload Hit Ratio-------------------------------**
prompt
SELECT SUM(reloads)/SUM(pins) "Reload Ratio"
FROM v$librarycache;
prompt
prompt
prompt**--------------- Data Dictionary Hit Ratio-------------------------------**
prompt
SELECT 1-(SUM(getmisses)/SUM(gets))
"Data Dictionary Hit Ratio"
From v$rowcache;
prompt
prompt**---------------Buffer Cache statistics-------------------------------**
prompt
select (1-(a.value/(b.value+c.value))) *100 "Buffer Cache Hit ratio" from v$sysstat a,v$sysstat b,v$sysstat c where a.name
= 'physical reads' and b.name = 'consistent gets' and c.name = 'db block gets';
col name format a20 heading "Buffer Pool Name"
select name,free_buffer_wait,write_complete_wait,buffer_busy_wait,db_block_gets,consistent_gets,physical_reads,physical_writes
from v$buffer_pool_statistics;
prompt
prompt
prompt**---------------Roll back segment Statistics-------------------------------**
prompt
col segment_name format a30 heading "Segment Name"
col status format a15
select segment_name,a.status,initial_extent/(1024) "Initial KB",next_extent/(1024)"NextKB",max_extents,min_extents,optsize/102
"Opt Size KB",curext "Current Extents" from dba_rollback_segs a,v$rollstat b where a.segment_id = b.usn;
prompt
prompt**---------------Roll Back Segment Header Get Ratio-------------------------------**
prompt
SELECT n.name,s.usn,DECODE(s.waits,0,1,1-(s.waits/s.gets)) "RBS Header Get Ratio"
FROM v$rollstat s,v$rollname n
WHERE s.usn=n.usn
ORDER BY usn;
prompt
prompt**---------------Top 20 Events and System Statistics-------------------------------**
prompt
col event format a40 heading "Event Name"
col Stat format a40 heading "Stat Name"
select * from ( select name "Stat",value from v$sysstat order by value desc ) where rownum <= 20 ;
select * from ( select event,total_waits from v$system_event order by total_waits desc ) where rownum <=
20;
prompt
prompt
prompt**---------------File I/O statistics-------------------------------**
prompt
col file# format 99 heading "File No"
select file#,PHYRDS "Physical Reads",PHYWRTS "Physical Writes",READTIM "Read Time",WRITETIM "Write Time",AVGIOTIM "Avg Time" from v$filestat;
set feedback on
Regards
Jafar -
Can I call an EJB from the database?
Hi,
I've just spent the last few days attempting to call an EJB from a stored procedure in a 10g database (and still haven't succeeded).
Now having spent hours searching the web (and this forum) for any successful examples (so far I have found none) I thought I'd add a message to see if there is anybody out there who has done this successfully. If so can you please provide me some details on how to do this?
Alternatively, I'd appreciate any input on how I can overcome my current hurdle in attempting to do this myself.
Here's how far I've got in my attempt:
I have a simple stateless session bean deployed to both Oracle 10gAS (a standalone OC4J container in 10.1.3) and to Weblogic 9. I have a client java class that calls a method on this bean and displays some ouput if successful. This all works from a standalone JVM (version 1.4) on both Weblogic and 10gAS.
I then tried to load the required libraries for Weblogic onto the database (namely the Weblogic.jar file). This resulted in the addition of some 32,000 odd objects of which 30,000 odd could not be resolved. I figured a lot of these may be down to JVM version issues (I believe that Weblogic 9 uses the 1.5 JRE) so I decided to put the Weblogic test on the back burner for now and just use the Oracle app server.
The tests with the Oracle app server looked promising. I only needed a handful of libraries to be loaded onto the database and all the relevant classes required for my test client had resolved (including the initial context factory required to do the jndi lookup of the bean). After granting all the permissions I believed I needed I'd got to the point where I could do a jndi lookup of the EJB; but when I tried to create an instance of the beans remote interface I got the following error:
java.security.AccessControlException: the Permission (java.lang.RuntimePermission getClassLoader) has not been granted to ProtectionDomain (file:generated/by/proxy <no certificates>)
com.evermind.net.DynamicClassLoader@612d9d34
<no principals>
java.security.Permissions@eb0f3c1a (
(java.util.PropertyPermission java.version read)
(java.util.PropertyPermission java.vm.name read)
(java.util.PropertyPermission java.vm.vendor read)
(java.util.PropertyPermission os.name read)
(java.util.PropertyPermission java.vendor.url read)
(java.util.PropertyPermission java.vm.specification.vendor read)
(java.util.PropertyPermission java.specification.vendor read)
(java.util.PropertyPermission os.version read)
(java.util.PropertyPermission java.specification.name read)
(java.util.PropertyPermission java.class.version read)
(java.util.PropertyPermission file.separator read)
(java.util.PropertyPermission java.vm.version read)
(java.util.PropertyPermission os.arch read)
(java.util.PropertyPermission java.vm.specification.name read)
(java.util.PropertyPermission java.vm.specification.version read)
(java.util.PropertyPermission java.specification.version read)
(java.util.PropertyPermission java.vendor read)
(java.util.PropertyPermission path.separator read)
(java.util.PropertyPermission line.separator read)
(java.net.SocketPermission localhost:1024- listen,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:280)
at java.security.AccessController.checkPermission(AccessController.java:429)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:528)
at oracle.aurora.rdbms.SecurityManagerImpl.checkPermission(SecurityManagerImpl.java:192)
at java.lang.Thread.getContextClassLoader(Thread.java:1203)
at com.evermind.server.rmi.RMICall.<init>(RMICall.java:36)
at com.evermind.server.rmi.RmiCallQueue.createCall(RmiCallQueue.java:33)
at com.evermind.server.rmi.RMIClientConnection.createQueuedCall(RMIClientConnection.java:592)
at com.evermind.server.rmi.RMIClientConnection.writeRequest(RMIClientConnection.java:581)
at com.evermind.server.rmi.RMIClientConnection.sendMethodInvocationRequest(RMIClientConnection.java:426)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:415)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at __Proxy0.create(Unknown Source)
at com.axiomsystems.test.client.TestDBClient.test(TestDBClient.java:76)
Has anybody come across this before? If so can they help?
If not has anybody out there actually managed to call an EJB method (without going via an RMI server/Servlet/or any other proxy).
Any help in this matter would be greatfully appreciated.
Cheers,
Anand.Sure, here's the code. It's what JDev generates automatically but I have seperated some things into several diffrent lines so I could experiment easier.
final Context context = getInitialContext();
Object o=context.lookup( "SessionEJB4" );
Object l= PortableRemoteObject.narrow( o, SessionEJB4Home.class );
final SessionEJB4Home sessionEJB4Home = (SessionEJB4Home)l;
SessionEJB4 sessionEJB4 = sessionEJB4Home.create();
String ret=( sessionEJB4.hello( ) );
As I mentioned, for this I have used EJB2.1 bean, because I had same problems with EJB3.0, so I tried earlier versions of Java to make sure that is not the problem.
hello() method just returns string "hello".
Of course, this works in standalone client that is not loaded into database.
Now, I loaded all the jars mentioned in this thread, using loadjava options -v -resolve, and I loaded client using options -v -resolve -genmissing . Select query on user objects in database shows that client class and relevant classes are all valid.
Then I created stub and ran it. First it stopped throwing exception ORA-29532: Java call terminated by uncought Java exception: Java.lang.NoClassDefFoundError.
Method I try to run returns String value which is hello message if it works fine, else it prints the part of the stack trace. In this case, after p[revious error, When I try to run it again, i get return from the method :
Lookup error: java.lang.NoClassDefFoundError; nested exception is:
java.lang.NoClassDefFoundError
com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:89)
com.evermind.server.rmi.RMIClientConnection.waitForJndiResponse(RMIClientConnection.java:371)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:179)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:283)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
javax.naming.InitialContext.lookup(InitialContext.java:347)
simpleejbproject.EJB4Client.hello(EJB4Client.java:35)
Of course, regular version of the client I run frokm command line works fine.
So I'm kind of a stuck here. I followed all directions, tried it on oracle 9 and oracle 10 DB, the problems remain the same. Am I missing something here?
Thanks
Just to add, getInitialContext()
private static Context getInitialContext() throws NamingException {
Hashtable env = new Hashtable();
// Oracle Application Server 10g connection details
env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory" );
env.put( Context.SECURITY_PRINCIPAL, "oc4jadmin" );
env.put( Context.SECURITY_CREDENTIALS, "manager1" );
env.put(Context.PROVIDER_URL, "opmn:ormi://mserv:4005:home/TestEjb4");
return new InitialContext( env );
It goes withouth any exceptions.
Message was edited by:
user510152 -
Where can I find the deployed EJB files in Oracle 10g AS(904)
Hello All,
Where can I find the deployed ejb files, stubs and skels in the Oracle 10g (904)
When I try to run my ejb application I m getting following exception:
com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: org.apache.log4j.Logger
I am not sure what is causing this error. I am not using any logging in my EJB. But the logging framework is configured in the application server.
Your input would be a great help to me
Thank youThanks Carty,
I am not creating Connection from EJB. I have a POJO called DBManager that looks for the DB Connection and return that to either EJB or other POJO that requests for Connection.
I am having a private method that get the connection from the DBManager because while writing UnitTest cases I can mockup getting Connection as my Unit test case will be a POJO again..
I have a question here regarding making DBManager as Singleton class. In my current project, I have configured my database in the application server as getting the connection by lookup for datasource through JNDI. It internally maintains all logical connection and always have one physical connection. In such scenario how implementing singleton will be beneficial?
Thank you for answering all my questions. -
How can I deploy the EJB to the remote AP Server
Dear All,
Any one know how can I deploy an EJB to the AP server which is not located on the local machine, using Jdev9.0.3.1.
I have try to new a connection with the server name and the testing connection section is successful, however when I deploy the EJB to that connection the error comes out as following:
java.lang.InstantiationException: Illeagal values: min-instances is greater than max-instances
at com.evermind.server.ejb.deployment.BeanDescriptor.parseOrionAttribute(BeanDescriptor.java:410)
at com.evermind.server.ejb.deployment.ExposableBeanDescriptor.parseOrionAttribute(ExposableBeanDescriptor.java:352)
at com.evermind.server.ejb.deployment.SessionBeanDescriptor.parseOrionAttribute(SessionBeanDescriptor.java:260)
at com.evermind.sFatal Error: Illeagal values: min-instances is greater than max-instances
erver.ejb.deployment.BeanDescriptor.parseOrionXML(BeanDescriptor.java:423)
at com.evermind.server.ejb.deployment.SessionBeanDescriptor.parseOrionXML(SessionBeanDescriptor.java:265)
at com.evermind.server.ejb.deployment.EJBPackage.parseOrionBean(EJBPackage.java:804)
at com.evermind.server.ejb.deployment.EJBPackage.parseOrionEnterpriseBeans(EJBPackage.java:646)
at com.evermind.server.ejb.deployment.EJBPackage.parseDeploymentMainNode(EJBPackage.java:455)
at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:268)
at com.evermind.xml.XMLConfig.init(XMLConfig.java:147)
at com.evermind.server.ServerComponent.initDeployment(ServerComponent.java:305)
at com.evermind.server.ServerComponent.copyAndDeploy(ServerComponent.java:374)
at com.evermind.server.ServerComponent.initDeployment(ServerComponent.java:276)
at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDeployment.java:607)
at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:464)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Thank you very much!!Your question is a bit unclear.
If you are referring to converting from using JInitiator to JRE, pl see MOS Doc 290807.1 (Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i).
If you are referring to upgrading Java versions for use by EBS, pl see MOS Doc 401561.1 (Using J2SE Version 6 with Oracle E-Business Suite 11i).
MOS Doc 300482.1 (Overview of Using Java with Oracle E-Business Suite Release 11i) gives an overview of Java usage with 11i.
HTH
Srini -
How can i look up a EJB residing in different machine from client side?
hai ,
How can i look up a EJB residing in different machine from client side?
this is my code...........i don't know what should i use as Initial Context Factory...................i am using a sun appserver 8............
package com.parx.lms.lmsdelegate;
import com.parx.lms.exception.LMSException;
import javax.naming.Context;
import javax .ejb.CreateException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import java.rmi.RemoteException;
import com.parx.lms.controller.*;
import com.parx.lms.vo.UserVo;
import com.parx.lms.exception.BusinessException;
import java.util.Hashtable;
import java.lang.*;
public class LmsDelegate{
private final static String JNDI_NAME="LmsBean";
private static String url="http://localhost:4848";
public static Lms lms = null;
public void getController() throws CreateException,
NamingException,RemoteException{
if(lms == null){
Hashtable h=new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************");
h.put(Context.PROVIDER_URL,url);
System.out.println("Before Loading Context in Delegate");
Context ctx=new InitialContext(h);
System.out.println("Loaded Context in Delegate");
Object obj=ctx.lookup(JNDI_NAME);
System.out.println("Loaded Object in Delegate");
System.out.println("Before Loading Home in Delegate");
LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
System.out.println("Loaded Home in Delegate");
lms = home.create();
System.out.println("Loaded remote in Delegate");
public void addUserDelegate(UserVo vo) throws BusinessException{
try{
getController();
System.out.println("Before calling the addUser of Session");
lms.addUser(vo);
}catch(CreateException e){
System.out.println("Create Exception in Delegate due to--->"+e);
e.printStackTrace();
throw new BusinessException(e);
}catch(NamingException e){
System.out.println("Naming Exception in Delegate due to--->"+e);
e.printStackTrace();
throw new BusinessException(e);
catch(RemoteException e){
System.out.println("Remote Exception in Delegate due to--->"+e);
e.printStackTrace();
throw new BusinessException(e);
}catch(LMSException e){
System.out.println("duplicate user name--->"+e);
e.printStackTrace();
throw new BusinessException(e);
pls help me..........h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************")
Each app server provides their own jndi factory class. For ex for weblogic it is weblogic.jndi.WLInitialContextFactory. SInce you are using sun app server, check if there are any examples to find out or the docs.
private static String url="http://localhost:4848
Since the client is in a different machine the localhost is not going to work here. provide the url or the machine name of the system in which ur sunapp server is running. In addition u will need to have the stubs of the remote interfaces in ur client machine. -
How can i lookup a session bean from the client side
how can i lookup a session bean from the client side...........i am using sun appserver..............
this is my code.................[B]
private final static String JNDI_NAME="ejb/LmsBean";
private static String url="ldap://localhost:4848";
Hashtable h=new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
h.put(Context.PROVIDER_URL,url);
System.out.println("Before Loading Context in Delegate");
Context ctx=new InitialContext(h);
System.out.println("Loaded Context in Delegate");
Object obj=ctx.lookup(JNDI_NAME);
System.out.println("Loaded Object in Delegate");
System.out.println("Before Loading Home in Delegate");
LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
System.out.println("Loaded Home in Delegate");
lms = home.create();
System.out.println("Loaded remote in Delegate");
[B]and i got the exception........
Inside Client before calling delegate
Before Loading Context in Delegate
javax.naming.CommunicationException: Request: 1 cancelled
javax.naming.CommunicationException: Request: 1 cancelled
at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:171)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.parx.lms.lmsdelegate.LmsDelegate.getController(LmsDelegate.java:3
0)
at com.parx.lms.lmsdelegate.LmsDelegate.addUserDelegate(LmsDelegate.java
:50)
at com.parx.lms.client.consoleClient.Client.main(Unknown Source)
pls go tru the exception and pls help.........That url string should be having the server name or ip instead of localhost.
-
Deployment error: The Entity EJB requires the table: to be accessible
Hello
When I deploy my EJBs, WEBLogic throws an exception:
Unable to deploy EJB: OrderBean from ejb-jar-ic.jar:
The Entity EJB requires the table: Order to be accessible. Please ensure that th
is table exists and is accessible.
I use built in Cloudscape database.
And I have those lines in descriptor:
<weblogic-rdbms-bean>
<ejb-name>OrderBean</ejb-name>
<data-source-name>ejbDS</data-source-name>
<table-name>Order</table-name>
<field-map>
<cmp-field>totalAmount</cmp-field>
<dbms-column>totalAmount</dbms-column>
</field-map>
<field-map>
<cmp-field>time</cmp-field>
<dbms-column>ordertime</dbms-column>
</field-map>
<field-map>
<cmp-field>orderID</cmp-field>
<dbms-column>orderID</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
thanx in advance
MarisHi Maris,
I see that you have create-default-dbms-tables set to true so WLS should be creating
the database table for your EJB. If you can give me some more information, I'll be
able to help you further. What version of WLS + service pack are you using? Also,
is this a 1.1 bean or 2.0? Lastly, what are the types of the CMP fields in your
bean?
As a work-around, you can try creating the database table yourself before deploying
the bean. This should resolve the deployment problem.
- Matt
Maris wrote:
Hello
When I deploy my EJBs, WEBLogic throws an exception:
Unable to deploy EJB: OrderBean from ejb-jar-ic.jar:
The Entity EJB requires the table: Order to be accessible. Please ensure that th
is table exists and is accessible.
I use built in Cloudscape database.
And I have those lines in descriptor:
<weblogic-rdbms-bean>
<ejb-name>OrderBean</ejb-name>
<data-source-name>ejbDS</data-source-name>
<table-name>Order</table-name>
<field-map>
<cmp-field>totalAmount</cmp-field>
<dbms-column>totalAmount</dbms-column>
</field-map>
<field-map>
<cmp-field>time</cmp-field>
<dbms-column>ordertime</dbms-column>
</field-map>
<field-map>
<cmp-field>orderID</cmp-field>
<dbms-column>orderID</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
thanx in advance
Maris
Maybe you are looking for
-
Incoming Payment::Charges deduction issue
While incoming payments entry some times there are charges which are deducted by the customers. (RTGS transfer charges, Postal charges etc. ). How to make remarks for these charges in the incoming payment screen itself? For Ex: Total Customer D
-
Hi Gurus, I'm faced to an issue with Deferred tax transfer program RFUMSV50 when I want to transfer the tax from interim account to final account for a dow payment document. When I run the program in test mode, I can notice that the amount of the tax
-
Change slide size without resizing objects?
Is it possible to change the slide size without causing Keynote '09 to resize all the objects on each slide?
-
Third party sales - Sales Accrual
Is there a way I can book a Sales Accrual in a third party sale scenario when I book a statistical GR? Thanks Raj
-
Redirecting iWeb created site using GoDaddy
I created a website through iWeb and bought a domain name through GoDaddy. I uploaded all my files to my account on GoDaddy -- but for some reason my website doesn't work. My domain name is www.ericmolinsky.com and the iWeb folder was called Pieces a