Using Oracle with EJB
Hi
I want to use Oracle as database for EJB. I would like to know how do I configure so that it will read from Oracle database rather than Cloudscape? Where do I specify url, username, password, database name etc?
Thanks
In WebLogic:
-Include the dir containing the dll driver;=%WL_HOME%\bin\oci817_8 in your Path variable.
-Add %ORACLE_HOME%\bin to your Path.
-Create a new Jdbc Connection pool.
Set url=jdbc:weblogic:oracle
Set driver Class= weblogic.jdbc.oci.Driver
In the Properties text box specify
user=<user>
password=<password>
server=<Oracle Database>
Similar Messages
-
Advantages of using Oracle with Unix over Windows server
Hi there,
I want some article/document which depicts the advantages of using Oracle with Unix (say HP-UX or Solaris backend). Actually the plan is to use some Data Warehousing applications using Cognos Poweplay, ReportNet and either Decision Stream of Cognos or Oracle Warehouse builder may be used as ETL tool. For Data mining applications we are planning to use SPSS Clementine. The Data volume will be substantial one. At present we are developing some prototype in Windows 2003 advanced environment. We are plaiing to use Risc server and RAID-5. Pl. advice some ideal architecture for us, as you know, it's typically a Govt. level application data (mostly archival data). The reports will be published using Report Net, Adhoc query etc, OLAP analysis will be done using Powerplay.
Regards,
Anupam BasuHi there,
I want some article/document which depicts the advantages of using Oracle with Unix (say HP-UX or Solaris backend). Actually the plan is to use some Data Warehousing applications using Cognos Poweplay, ReportNet and either Decision Stream of Cognos or Oracle Warehouse builder may be used as ETL tool. For Data mining applications we are planning to use SPSS Clementine. The Data volume will be substantial one. At present we are developing some prototype in Windows 2003 advanced environment. We are plaiing to use Risc server and RAID-5. Pl. advice some ideal architecture for us, as you know, it's typically a Govt. level application data (mostly archival data). The reports will be published using Report Net, Adhoc query etc, OLAP analysis will be done using Powerplay.
Regards,
Anupam Basu -
Do i have to use JNDI with EJBS?
Hi
I want to use JNDI to lookup a system which i will send messages to using JMS. I would like to have some java classes on Tomcat to do the job. But...whenever i hear about JNDI it is always in relation to EJBs. Can i only use JNDI with EJBS?
If i can use JNDI is there anything important i need to know about.
Thanks in advance!
San H.You can definitely use JNDI outside of EJB's - in particular, it's a great interface for dealing with LDAP servers, even securely, and can also be used for DNS interfacing, COS, RMI registries, etc.
While JNDI was chosen as the method by which J2EE components can locate other components in a distributed environment, it's by no means limited to that task :) It's a wonderful API, and in terms of things you need to know, most everything is covered fairly well at the JNDI tutorial in the various trails that are mapped out there.
http://java.sun.com/products/jndi/tutorial/
Good luck!
James
James Manning | Principal Engineer
Porivo Technologies, Inc.
919.806.0566 | [email protected]
http://www.porivo.com/
Measuring end-to-end Web performance.
Register for a FREE Performance appraisal:
http://www.porivo.com/peerReview/eval.html -
Do i have to use JMS with EJBS?
Hi
I want to use JMS as a messaging system (a queue) between my system and someone elses. I would like to have some java classes on Tomcat to do the job. But...whenever i hear about JMS i always hear it in relation to EJBs. Can i only use JMS with EJBS?
If i can use JMS is there anything important i need to know about.
Thanks in advance!
San H.As far as I understand you are use JNDI and JMS is not bound with EJB's. These are java API's which are independent. Like JDBC you can use with Servlets, Applets, standalone applications, EJB, JMS etc etc.......
In the same way you can use JNDI and JMS with diferent API. And the important feature of Java is that all java API interact with each other when these are independent. I would appricate comments of everyone......................Thanks -
Question for using ORACLE with SOLARIS
Hi Experts,
I have worked Oracle with Linux in one of my projects 2yrs back and i was just a developer, used to write SQL Query, Creating Table and Objects.
Now i got a question from TL which is
Tell me about consequences for using Oracle with Solaris?
I am not worked ORACLE with SOLARIS, Can some one give me the answer for this question with
1. Difference between ORACLE with LINUX and ORACLE with SOLARIS.
2. Advantages and Disadvantages Between ORACLE with LINUX and ORACLE with SOLARIS.
Thanks,
MuraliDharan VHi MuraliDharan V,
It would had been better if you had searched first;
Here is one
Advantage for Linux64-bit Versus Solaris-x86_64 OS in RAC
And beside that your question is incomplete:
-What Oracle? Database, etc
-Which Version? 9i, 10g, etc
Aside from that a simple search on google might have answered your question as well.
But I think there is some new trend of dumping questions here before searching.
Ex Senior DBA -
Hi,
Can anyone plz let me know how do I use CallRouter class with
ejb. The tool weblogic.ejbc is used to generate stubs and skeletons ..
thanx
pradeep
You need to have the <home-call-router-class-name> tag in your
weblogic-ejb-jar.xml
see below
http://e-docs.bea.com/wls/docs61/ejb/reference.html#1070646
Kumar
"pradeep bhat" <[email protected]> wrote in message
news:3c9356e4$[email protected]..
>
> Hi,
> Can anyone plz let me know how do I use CallRouter class with
> ejb. The tool weblogic.ejbc is used to generate stubs and skeletons ..
> thanx
> pradeep
>
>
-
Trouble using Oracle with WLCS
Hi,
I am trying to use Oracle 8.1.7 with WLCS 3.5 on Linux.
I am getting the error:
java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError
with the message 'no weblogicoci37 in java.library.path'.
Any help?
Thanks,
- Sougataif you still want to use the OCI driver, make sure the library in your error
message is in the LD_LIBRARY_PATH,
otherwise, switch to the thin driver from Oracle and it will work without
any libraries
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[email protected]
www.filip.net
"Sougata Mukherjea" <[email protected]> wrote in message
news:3baa34b8$[email protected]..
>
Hi,
I am trying to use Oracle 8.1.7 with WLCS 3.5 on Linux.
I am getting the error:
java.sql.SQLException: System.loadLibrary threwjava.lang.UnsatisfiedLinkError
with the message 'no weblogicoci37 in java.library.path'.
Any help?
Thanks,
- Sougata -
Folks, hows everyone?.
I am trying to go beyond SQL*Plus queries and teach myself some automation. Turned out to be a litle challenging. Can some one educate me on how to finish this task:
I wish to automate the following report with crontab: pull data from HR account in Oracle and email it to [email protected] everyday at 6am.
So, first, i wrote the following script, myqueryscript.sql, containing the query:
spool /home/myname/myautoreport
select * from hr;
exit;
/home/myname is my unix path and myautoreport directory to store a copy of results.
Second, i wrote the following shell script, myshellscript, to execute myqueryscript.sql:
/home/myname/sqlplus hr/psswd @/home/myname/myqueryscript
third, I wrote the following crontab, mycronscript, to run the shell script:
00 06 * * * "/home/myname/myshellscript"
Finally, i submitted to crontab as:
crontab mycronscript
I didnt work. Am i missing something?.
pls note: i am not the root in unix.
Thanks,
-a> Would you recommend this book on the basis of its contents table or any other
books on the subject?
Sorry - I'm not familiar with that author or that book. The most valuable Oracle "books" in my opinion are found at http://tahiti.oracle.com - the complete sets of all Oracle manuals from 8i to 10G.
Many authors seem to only regurgitate Oracle manuals. The only Oracle book I've bought and considered as a worth every single cent, is Tom Kyte's Oracle Expert one-on-one.
This goes into the very fundamental concepts of how to use Oracle correctly. It is a real eye opener.
I am new to automation and wish to study it.What aspects of automation? It covers a very broad range of topics.
Does automation in the way you described it, i.e. DBMS_JOB, depend on PL/SQL?Extensively. PL/SQL is a formal procedural language. It is as capable as Pascal, C or Java. Many seem to think in terms of PL/SQL as SQL plus some basic programming control structures. PL/SQL is not SQL. These are two different very languages.
What makes it unique are:
- it is a server side language running inside the Oracle database
- it integrates so tightly with SQL that you can write SQL language statements in PL/SQL as if these are native to PL/SQL (which leads to the confusion thinking that PL/SQL is SQL)
99% of all Oracle related code I write is PL/SQL. There is very little that you cannot do using PL/SQL. And Oracle is not just a capable database tier, it is just as capable as an application tier.
When using Oracle, there is no need for a separate application tier like Weblogic, JBoss, etc. PL/SQL is in fact a lot more capable language for the application tier than Java or .NET.
Simple example. One of the automation processes we have is to supply another system with delta changes from one of our databases. They wanted it in XML. They wanted it FTP'ed to their server. 100% of the code written for this is PL/SQL. From creating XML CLOBs in the database, to using FTP to transfer the contents of these CLOBs to their FTP server. With an APEX (Oracle Application Express) web application (also entirely PL/SQL) that provides for maintenance and administration of this automation.
With less moving parts (not dealing with external processes and additional programming languages), Oracle PL/SQL applications are a lot quicker to develop, a lot easier to maintain, performant (it is very close to the data), and more robust.
PL/SQL is a very critical core component in any automation and any application that uses the Oracle database. -
Hello
1) I have trouble when using the Oracle XML SQL Ulitity (XSU) with Enterprise Java Beans (EJB).
This is due to that
oracle.xml.sql.OracleXMLSQLException extends RuntimeException
i.e. is interpreted by the EJB container as a system exception.
(java.sql.SQLException extends Exception)
2) Is there anywhere I can submit a change suggestion to the XSU developer team?
Regards
OleHello
1) I have trouble when using the Oracle XML SQL Ulitity (XSU) with Enterprise Java Beans (EJB).
This is due to that
oracle.xml.sql.OracleXMLSQLException extends RuntimeException
i.e. is interpreted by the EJB container as a system exception.
(java.sql.SQLException extends Exception)
2) Is there anywhere I can submit a change suggestion to the XSU developer team?
Regards
Ole -
Problems using JAAS with EJB 3.0 on JBoss 4.0.4-GA
Hello all,
I am trying to build a very simple JavaEE application with JAAS, but I getting mad.
I have an EAR packed with a WAR module an EJB JAR module and a JAR with other classes. Struts is the MVC framework and EJB 3.0 is been used.
First of all, I configured the "login-config.xml" file within /conf directory in JBoss, like this:
<application-policy name="exemplo1">
<authentication>
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
<module-option name="dsJndiName">java:jdbc/Infra_Seguranca</module-option>
<module-option name="principalsQuery">SELECT COD_USUARIO AS Password FROM USUARIO WHERE COD_USUARIO=?</module-option>
<module-option name="rolesQuery">SELECT NOME_ROLE AS Roles, 'Roles' AS RoleGroups FROM ROLE_USUARIO WHERE COD_USUARIO=?</module-option>
</login-module>
</authentication>
</application-policy>Next I configured the "web.xml" file like this:
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted</web-resource-name>
<description>Declarative security tests</description>
<url-pattern>*.do</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>xxx</role-name>
</auth-constraint>
<user-data-constraint>
<description>no description</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>exemplo1</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/loginErro.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>Role xxx</description>
<role-name>xxx</role-name>
</security-role>Notice that I am using the "xxx" role to protect the "*.do" URL pattern.
The "jboss-web.xml" is like this:
<?xml version="1.0"?>
<jboss-web>
<security-domain>java:/jaas/exemplo1</security-domain>
</jboss-web>As it is, it works perfectly, which means, every time I try to access a "*.do" URL it verifies whether I am authenticated and have authroization or not. If not, the login page shows up.
Now I wanna to be able to also protect my EJBs.
My Stateless Session Bean is implemented as follow:
@RolesAllowed("yyy")
@Stateless(name="UserManagement")
public class UserManagementBean implements UserManagement {
public void add(User user) {
}When I run all this, the container simply igoners the @RolesAllowed("yyy") annotation and allow the EJB execution.
If I add the "jboss.xml" file, like this:
<?xml version="1.0"?>
<jboss>
<security-domain>java:/jaas/exemplo1</security-domain>
</jboss>I start getting this stack trace:
ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
... Am I missing something? What do I have to do to get JAAS working fine with my EJBs? Do I have to also configure and/or provide "ejb-jar.xml" ???
Thanks
DanielUsing @SecurityDomain("exemplo1") in my EJB and NOT providing jboss.xml, it works.
@SecurityDomain("exemplo1")
@RolesAllowed("yyy")
@Stateless(name="UserManagement")
public class UserManagementBean implements UserManagement {
public void add(User user) {
}Damn! This is some serious shit... I don�t want to configure this in every single EJB.
EJB 3.0 is nice, but some small trivial details like this and others, that was forgotten by Sun, piss me off! -
Error in using Hibernate with EJB
I have generated my Hibernate related configurtion file,POJO Classes & hbm files using MyEclipse 5.0. And Iam using JBuilder 10.0.176.0
to develop the EJB module. When i try to compile my module it is saying POJO class is bad.
"Bean2InsertBean.java": cannot access ejb_hibernate.Testsql,bad class file: D:\MyJava\bea\OurClasses\ejb_hibernate\Testsql.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath.
But the classes are in correct directory.It looks like you have compiled the POJO class with Java 5 version whereas you are compiling the EJB module with Java1.x (i.e. a lower version). Compile the POJO class with Java 1.x and then try compiling the EJB module with the same version
-
How to use Timing with EJB in J2EE1.3
Hi,
I am developing an EJB app where I need some sort of timing service. Unfortunately, I can't resort to the EJB Timer Service which is available under the J2EE1.4 spec, because the server I am working on is only J2EE1.3 compatible.
I understand that I cannot use threads as they would intervene with the EJB thread handling.
Can anybody give me an idea what I could use instead? Is there any trivial solution this? I'd be thankful to hear it..
Regards,
Katrin.Cross-post
http://forum.java.sun.com/thread.jspa?threadID=730563&messageID=4204123#4204123 -
Is it possible to use JSP with EJB
A pretty dumb question.
JSP + Servlet + DB can be used together to write a j2EE application, such as some shopping system.
But what's the usage for EJB? Does it still need JSP to do the output to client?To use a JSP with an EJB:
Create a taglib for the EJB and access the EJB in the JSP with the taglib.
WebLogic provides the EJB to JSP integration tool.
http://e-docs.bea.com/wls/docs61/jsp/ejb2jsp.html -
Problem in Using Oracle with Thin Clients(Image) Technology
I am running Oracle on Server and mine clients are thin clients.I have image on Oracle Server from where I am booting thin clients.The Problem I am facing is when I use single Thin client then everything works but as I starts using more than one thin client mine I got the error rwrun60 and it gives the that close or ignore message.I am using run_product for running reports.Then I tried to use run_report_object but how can I pass paramater using run_report_objects
i m not getting much from what you are saying.... but i found something.i created a windows application and then was able to create a dataset from ODAC connection to oracle. then dragging the dataset on windows form... i was able to create a data grid containing the data. hittin F5 the app was running successfull. however when tryin to do same in asp.net...when configuring the data source using sql datasource it gave me following error ...
ORA-00942: table or view does not exist
help help -
Using CallRouter with EJB Home/Remote interface
Hi,
How do i Use my CallRouter class for EJB's.
How to use rmic . please help
thanx in adv.
pradeep bhatYou can specify the call-routers in weblogic-ejb-jar.xml.
FWIW, what are you trying to do?
-- Rob
pradeep bhat wrote:
Hi,
How do i Use my CallRouter class for EJB's.
How to use rmic . please help
thanx in adv.
pradeep bhat
Maybe you are looking for
-
I have a new i phone 5 nad my mail is now constantly downloading, how can i stop this?
I have changed my work phone from an I phone 4s to I Phone 5. When I go to my mail it is always downloading and starts downloading emails from 2009. It takes a hours to download all the old emails and it takes hours for new emails to come through. Th
-
How can i associate the iPad with my account?
Hi, i got a new ipad 2, first thing ive synchronized it with my iTunes, but i cant download new tv episodes from on the ipad 2. when i downloaded a new app on it ive receive an email saying that the app was downloaded on a computer or device that had
-
No login available on ttys (systemd)
Hello, I can no longer login to ttys (ctrl + alt + F1 - this is called a "tty" right?). If I switch to one of the ttys I can still read some bootup messages I think. The last one says [OK] listening on delayed shutdown socket No login prompt or blink
-
Got a message today in Firefox that my "certificate is invalid because it is use by another computer"
-
Video problem with Satellite X200-25G (PSPB9E)
Hello I'm having this laptop about a year, and I have this problem with Windows Vista (genuine), Windows XP (with modification with video driver). Video driver is newest without problems, except one. I'm working with SolidWorks, and the problem is on