How to connect ms access in swing application JDeveloper
hi guys,
How do I do to connect MSAccess database in a swing application in JDeveloper?
Just wondering, you asked how to connect to MS Access from a swing app being developed on JDev...
Are you using ADF ? Or just using JDev to develop a plain vanilla java swing app ?
If not using ADF :
You could try the JDBC ODBC bridge. http://download.oracle.com/javase/6/docs/technotes/guides/jdbc/bridge.html
Might be better than half baked JDBC type 4 drivers for Access.
If using ADF, I'm assuming you have an ADF model project and an ADF swing project. If you can manage to use the JDBC-ODBC bridge, you should be able to configure a DataSource for your model project as javax.sql.DataSource and javax.sql.ConnectionPoolDataSource are now supported though the bridge.
Please keep in mind the warnings on http://download.oracle.com/javase/6/docs/technotes/guides/jdbc/bridge.html, especially the limited scalability and performance.
Similar Messages
-
How to connect MS Access or other d/b tools to SAP R/3
Hi SAP Experts,
I got a requirement i.e by using MS Access or other database tools to take the SAP table dumps and analyze gaps or errors in the system data using business guided .
I don't know how to connect MS Access to SAP R/3 and how to connect other database tools to SAP R/3.
pls any body can explain me on this topic or inform me where i can get the corresponding documents.
This is urgent for me.
I appreciate you're help.Hi,
For some databases (for example MSSQL, Oracle,...) you can use transaction DBCO (table DBCON) to create connection to external database. Then you can use native SQL in ABAP programs (EXEC SQL command).
Krzys -
How to connect my access database using applet?
hi all,
i need to connect my access database in my applet program which should work like an atm machine..I dont know how to connect it. Im new to applet same thing in JDBC application. Please help i terribly need it, our deadline in our case study is fast approaching and i still dont know how to do it. I tried the tutorial but i received some sql exception error. thanks!Try this link
http://java.sun.com/docs/books/tutorial/jdbc/basics/ -
How can I unit test my Swing application?
Hi All,
In my application I came across a situation where I have to automate the unit testing of my application.
Using my application user can able to draw polylines and rectangles on a BufferedImage added to a JFrame.
Can any one please help/suggest me, how to automate the drawing process (this process consists of drawing the polylines with mouse and few action/mouse events)?
your help will be highly helpful to me.
SatyaWhat exactly will that unit test prove? That you can mock the drawing of lines?
Unit test are supposed to test certain parts of your application code - I'd concentrate on unit tests that are actually useful and for example in the future can help to catch regressions.
If anywhere you can get help creating unit tests of this magnitude, I'd look in the unit testing support for Swing applications. Google for "java swing unit test" to see what you can come up with. Probably you'll need to create some plumbing yourself to make custom painting unit-testable; perhaps you could do something with painting to a BufferedImage in stead of to a Swing component for example. -
How to setup JAWS for Java Swing applications
Hello All,
I am having one swing application and need to test with JAWS.Could you please let me know the configuration steps.I tried with the following steps and it is not working properly.
1. Install JDK1.5.0_08
2. Install JAWS 7.0
3. Install SUN accessbridge-2_0_1
4. Copied access-bridge, jaccess-1_4 and accessibility.properties to jre\lib\ext
it is not identifying even buttons also.
Thanks & Regards,
GanaHello there,
Gana, Ana
I have the same problem
1. Install JDK1.5.0_08
2. Install JAWS 7.0
3. Install SUN accessbridge-2_0_1
4. Copied access-bridge, jaccess-1_4 and accessibility.properties to jre\lib\ext
and nothing -
How to Call Crystal Reports from Swing Application
Hi All,
I have a requirement for calling Crystal Report from Swing Application. Please let me know how can I do that, and also provide the Source code for calling the crystal report.
Thanks in advance.
Chandrahi
this is the code that i am using in my application which is similar to urs. but i am working with CR XI so make all the neccessary changes.
import java.awt.*;
import javax.swing.*;
import com.crystaldecisions.ReportViewer.*;
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
public class HelloSwing
public static void createAndShowGUI()
try
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("HelloWorldSwing");
frame.setTitle( "Testing Reports");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
viewer.init( new String[0], null, null, null);
ReportClientDocument rpt = new ReportClientDocument();
rpt.open( "report path", 1 );
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource( rptSource );
frame.getContentPane().add( viewer, BorderLayout.CENTER );
frame.setSize( 700, 500 );
frame.setVisible(true);
viewer.start();
catch ( Exception exception )
System.out.println( exception.toString() );
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
there are 23 jar files that u need to import into ur package. but remember that ReportViewerBean should be the first jar file in the list & it should be followed by jrcerom.jar
specify the key in the CRConfig.xml file (which also has to be imported in the package)
u can find these jar files in the common objects folder in your program files.
hope it helps. best of luck -
How to Embed MS Excel in Swing Application?
Hi all,
Is that possible to embed MS Excel in a Swing application? How to do it? Or is there any JComponents that similar to the spreadsheet? Thanks for any advance.
Charoitemaybe this one is what you are finding.
http://www.jxcell.net -
How to restrict user access in Oracle Application Server 10g (9.0.4)?
Can anybody please let me know how to restrict user access in 10g AS? To be specific, how to allow http requests from specific IPs only?
Hi,
You have to edit httpd.conf and modify acces rights for each protected directory
e.g.
<Directory /var/www/sub/payroll/>
Order allow,deny
Allow from 192.168.1.0/24
</Directory>
then you have to restart Oracle HTTP Server
jm-- -
How to connect MS SQL Server 2000 with JDeveloper 11g
Hi,
I am new to JDevleoper, Is it possible to connect MS SQL Server 2000 with JDeveloper 11g.
If possible can anyone help me in doing that?
waiting for ur reply...
Thanks in advance
Regards,
reddyShay or other knowledgeable folks,
Is there a way to utilize the wizard for "Business Tier > ADF Business Components > Business Components from Tables" for SQL Server 2000, 2005 or 2008. I can successfully execute sql via java programmatically or import a table from SQL Server with "Business Tier > ADF Business Components > Entity Object" wizard, but the Business Components from Tables simply doesn't see any tables under any schema. Without the "Business Components from Tables", i don't get the referential constraints imported into the application and to code all those from scratch is just not as elegant. So far i have only utilized the sql server jdbc driver from Microsoft (versions, 1.1, 1.2 and 2.0). Is there an alternative client that i need to use to enable selecting tables from that "Business Components from Tables" wizard. Is this a limitation of SQL Server, the jdbc driver or the wizard itself? Did anybody else experience the same issues? I am using Jdeveloper 11.1.1.0.1 against SQL Server 2005 (currently)
Thanks,
Andy -
How to configure simultanous access for 11i application
Hi All
We have one existing 11i application instance on node grid1.In which we start the servicess from apps user.
In our same we want another node for the same application in which we will start the servicess from another user(merge)
For that we perfrom the following steps
1.Copy the APPL_TOP,COMMON_TOP,ORA_TOP(8.0.6,iAS) from node "GRID1" to diffrent node "GRID2"
2 configure the GRID2 node using adcfgclone.pl utility(we have configure new node for WEB and FORM Server)
3 We perfrom the modification in the following files ON GRID2 .
i Identify 'FNDNAM=apps' statement in $FND_TOP/secure/<context>.dbc
and replace with 'FNDNAME=merge' to connect to MERGE schema instaed of APPS.
ii. Go to the last line of $APACHE_TOP/jserv/etc/zone.properties file
and identify 'schema=APPS' statement and change it to 'schema=MERGE'
iii. Identify below lines in $APACHE_TOP/modplsql/cfg/wdbsvr.app file
password = apps
username = apps
document_table = APPS.fnd_lobs_document
and replace with modified below lines
password = merge
username = merge
document_table = MERGE.fnd_lobs_document
6. For redirecting user's request to new Application Server server, we
changed the following 4 system profile options with proper URL and port
at responsibility level only for the responsibilities,
which we use for Merge views.
Profile Options
Application Framework Agent
Applications JSP Agent
Applications Web Agent
Apps Servlet Agent
When we are able to start the services on GRID2 node,but at the time of login we are getting invalid user name/ passwd error
Please let us know is there any way to access application other than apps user
Regards
Sohailwell thank you very much .I know how to define a DataSource inside Weblogic Server.
But i am confused over one issue
When We are going to use Container Managed EntityManager inside the SessionBean the persistence.xml file looks like this
*<persistence>*
* <persistence-unit name="RamsEJBPU" transaction-type="JTA">*
* <jta-data-source>myJtaDataSource</jta-data-source>*
* </persistence-unit>*
*</persistence>*
But in some cases it looks like as shown below : <persistence-unit name="RamsEJBPU" transaction-type="resource-local">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name = "hibernate.connection.driver_class" value = "oracle.jdbc.driver.OracleDriver"/>
<property name = "hibernate.connection.url" value = "jdbc:oracle:thin:@localhost:1521:orcl"/>
<property name = "hibernate.connection.username" value = "CHENNAISPAT"/>
<property name = "hibernate.connection.password" value = "CHENNAISPAT"/>
</properties>
</persistence-unit>
</persistence>Can you please tell me why is it so ?? -
How database connection pooling works in a application
Hi Guys,
I am new to Java and looking into best way of doing J2ee database conectivity. I am using Eclipse galileo3.5 J2EE with Mysql database and Tomcate 6.0.
I am developing an email application where I need to implement MVC model for my webapplication, using jsp for presentation, servlet for control and java beans for model.
I came across two tutorial for database connection pooling as given below.
Eclipse Corner Article: Creating Database Web Applications with Eclipse - In this tutorial connection pooling is configure in Tomcate 6.0
It says Copy and paste the following into your context.xml file (you may have to click on the Source tab at the bottom of the editor to be able to paste). This defines a DataSource with the name "jdbc/SampleDB". Our application will retrieve database connections from the pool using this name.
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Resource name="jdbc/SampleDB" auth="Container"
type="javax.sql.DataSource"
username="app" password="app"
driverClassName="org.apache.derby.jdbc.ClientDrive r"
url="jdbc:derby://localhost:1527/sample"
maxActive="8" />
</Context>
Where as in second tutorial - http://www.roseindia.net/answers/viewanswers/2838.html
It uses java bean for connection pooling and then use straight way in JSP and no Servlet used.
conpool.jsp
<%@page import="java.sql.Connection"%>
<jsp:useBean id="pl" class="com.CoreJava.ConnectionPooling"/>
<% Connection con = pl.getConnection(); %>
//do something using con
connectionPooling.java
import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolD ataSource;
public class ConnectionPooling
static Connection con=null;
public static Connection getConnection()
try
MysqlConnectionPoolDataSource po=new MysqlConnectionPoolDataSource();
po.setServerName("localhost");
po.setPortNumber(3306);
po.setDatabaseName("mydatabase"); //changeur database name
po.setUser("root");//ur username
po.setPassword("");//ur password
con = po.getConnection();
catch(Exception e)
System.out.println("Exception Connection :"+e);
return con;
Please some one explain which is the best way of doing connection pooling to the database by using MVC pattern
Please if some one advise me how to use MVC architecture for simple email application and database connectivty.
Thanks>
>
Where as in second tutorial - http://www.roseindia.net/answers/viewanswers/2838.html
Never EVER use roseindia. It is terrible shit.
[http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html]
The correct answer is what you found in the eclipse article. And you can read the Tomcat docs for more.
As per usual the code you have posted from Roseindia is a big pile of rubbish that was written by a complete idiot. I mean the person who wrote it apparently doesn't know much Java at all. Let alone JDBC. Or Connection pools. Or J2EE. It's not the worst I've seen from them but it's pretty bad. -
How do you restrict access to custom applications?
When I create portlets, there is usually an associated "admin" functionality that needs to be created for each custom application. An example is a shopping cart that we just created, we needed admins to be able to go in and upload photos.
The way that I do this is I create a new portlet "Shopping Cart Admin" and restrict access to it that way. However, because I usually add everything in the /remoteserver/shoppingcart/. folder to the gateway space (its too painful to add one by one), this means that I can't put admin.aspx in that folder. So I usually end up creating a NEW folder /remoteserver/shoppingcartadmin/ for the admin portlet.
Long story short, its a lot of work. I know that I could try to use activity rights, but those seem very global. How do you control edit access to your custom portlets?Well, there are a few different ways to go about it. You could add a preferences page with the admin functionality, and then an admin would just have to click the little pencil in the portlet titlebar. No admin/edit access, no little pencil.
I have often set the visibility of an ASPX control directly from activity rights, in OnPageLoad, if it isn't postback time. The activity rights should be inherited by the user, through the user's group. Best practise is to create empty groups called Roles, add activity rights to the Roles, and then have the actual groups (that contain users) inherit from one or more Roles.
You already knew that part, I added it for the others. My personal definition of a portlet is 'polymorphous instance of a web service'.
So:
Role: Store Manager (has Edit Shopping Cart activity right)
^
Group: Store Managers (has Store Manager parent group)
User: Vladimir (inherits Edit Shopping Cart activity right) -
How client get simultanious access to server application
I got one project where server will run movie and it must be shown on client machine simultaniously ... using Socket How could client know on which Port movie is running so that client can have access to it ...
Please help me out to know Port address of server machine on which movie is running .......I played with remote front panels a really long time ago snd it was nothing but problems. I hear they have improved but what I did was abandon them for an extJS application to do what you are doing. It is now called Sencha. Sorry but I can't help with a pure LabVIEW solution.
=====================
LabVIEW 2012 -
How to connect to Access DB on FTP site
How can I connect to an Access DB that resides on an FTP Site? I can connect to it, but it downloads the database as a temporary internet file. I am wanting to dynamically update the data on my reports (and subreports) with updated data on the FTP site. Is this possible? Can I set up a connection string or ODBC connection to the database? I have been trying various things for some time and cannot solve. I am using Access 2003 database and Crystal 2008.
Hi,
Try not to access or connect to FTP, it usually download the data since you accessing FTP, try to look for other ports like http to access the database.
Regards,
Clint -
Keychain: How to enable automatic access for certain applications?
I have gotten really tired of Adium and Skype asking for the keychain password every time I reboot the machine, and Quicksilver neeing my system password all the time when installing updates.
How do I enable automatic access to the keychain and system password for certain applications, but not all?
PowerBook G4, 1.5 Ghz Mac OS X (10.4.6)Hi, Bjørn.
A. You wrote: "I have gotten really tired of Adium and Skype asking for the keychain password every time I reboot the machine..."There are two things to check. You'll use Keychain Access — in the Macintosh HD > Applications > Utilities folder — for both.
One key point to note before you begin: If the affected account was created under Jaguar, it's default keychain will have the same name as the account's short name. Accounts created under Panther or later have the default keychain name of "login." The user's default keychain is always highlighted in bold in the Keychains list in Keychain Access. All of the instructions in Mac Help regarding keychain assume the accounts were created under Tiger and always refer to keychain "login."
Here are the two issues to check and correct:
1. The affected account may have its keychain preferences set so that the keychain locks automatically after a period of inactivity or after sleep mode:1.1. Select the user's default keychain.
1.2. Click Edit > Change Settings for Keychain "keychain_name."
1.3. Deselect the checkbox next to "Lock after __ minutes of inactivity", if selected.
1.4. Deselect the checkbox next to "Lock when sleeping", if selected.
1.5. Click Save.2. The affected account's login password and keychain password are different. Set the keychain password on that account to be the same as the account's login password. See “Mac OS X 10.4 Help: Changing your keychain password.”
Once those steps are taken, if an application requests access to the keychain, click Always Allow.
Note that if you update applications, i.e. install later versions, you may be asked once to confirm the new version's access to your keychain. That's a standard security precaution.
B. You wrote: "...Quicksilver neeing my system password all the time when installing updates."That cannot be prevented if that application is installed in the Macintosh HD > Applications folder using an installer, such as the Mac OS X Installer. Authentication is required if an installer will add or change files in either Applications or other System-related folders.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Maybe you are looking for
-
Fields missing in Excise Account Assignment Table
Hello experts, I am doing CIN configuration in ECC 5.0 and i am assigning Excise GL accounts as per "Excise Transaction". All GL Accounts have been assigned as per excise transaction except 3 Fields ie; " GL A/c for RG23A ECS",
-
Office 2013 applications crash with Document Information Panel open
I am using Office Professional Plus 2013 to work with documents that reside in SharePoint 2010 document libraries. The content type(s) in that SharePoint site collection are set to automatically show the Document Information Panel when opened in Offi
-
My iphone isn't recognized by finder or itunes
Hi, I got an iphone 3gs not too long ago, and everything seemed to be fine. On the rare occasions that I wanted to sync it, I did so successfully. I don't sync often, so I'm not exactly sure when the problem arose, but in any case, now, when I connec
-
Email providers wont open message on Firefox?
Neither Yahoo or windows live will let me read my messages on Firefox but they both work fine on Chrome or out look express. Both open the email site up and show me everything except my messages. I have tried to reload Firefox but I have had no chang
-
Hi Experts , I need to know how can I prevent a specific field from displaying in a specific screen "for example the price in ME23N" Thanks in advances