MySQL's AUTO_INCREMENT and JDBC
I have the following that doesnt seem to work. The custID field i haven't specified in the prepare statement (because it's an AUTO_INCREMENT value , but for some reason it won't work without it. Nothing is added to the table when the method is completely run.
int rows = 0;
Connection conn = getConnection();
PreparedStatement pstmt = null;
try{
pstmt = conn.prepareStatement(
"insert into Customers values(" +
"?," + //customername
pstmt.setString(1, customerBean.getCustomerName());
catch (SQLException se)
rollback(conn);
System.out.println(msg);
System.out.println(se);
throw new Exception(se);
} | Field | Type | Null | Key | Default | Extra |
-------------------------------------------------------------+
| CUST_ID | int(11) | NO | PRI | NULL | auto_increment |
| CUST_NAME | varchar(100) | YES | | NULL | |
Any ideas? I want a proper way of forumlating a query using a prepared statement and using the AUTO_INCREMENT value so that when a new row is added the cust_Id field is incremented.
Another question, why is the SQLException not being caught? I have another method which gets all the rows from a table, if i change the prepared statement to an invalid table then it gives me an exception. I was previously using Oracle, SQLException was being caught when a duplicate entry was added.
Doesn't work :(
try {
Connection conn = getConnection();
stmt = conn.createStatement();
stmt.executeUpdate(
"INSERT INTO Customers (customerName) "
+ "values ('Hello World')");
Of course it doesn't work.
1. That's not what was suggested.
2. It's going to throw an exception, because you don't have a column named "customerName", you have a column IN THE DATABASE named "cust_name"
Similar Messages
-
Mysql's auto_increment in berkeley db
Hi,
I am coming to BDB from MySQL. I am using C API to create my first example.
Q: What would be the equivalent of MySQL's auto_increment field type in BDB ?
I read the docs, and it says QUEUE access type will use immutable record numbers, does it mean I can rely on it "forever"? Can i store them in another databases and assume the record will never change its record number unless it is deleted? (this is how it works in MySQL)
I also read about SEQUENCE type fields and saw the example. Just in case QUEUE's record doesn't behave like MySQL auto_increment I can go for DB_SEQUENCE, I just need to clear things up with the first question, because if QUEUE works for me using DB_SEQUENCE will be wasting precious CPU cycles.
Thanks in advanceuser3882275 wrote:
Q: What would be the equivalent of MySQL's auto_increment field type in BDB ?
I read the docs, and it says QUEUE access type will use immutable record numbers, does it mean I can rely on it "forever"? Can i store them in another databases and assume the record will never change its record number unless it is deleted? (this is how it works in MySQL)A B-Tree access method stores data in a B+Tree and provides fast serial and random access to data. A Hash database stores data in a hash table and provides slightly faster random access to data. A Queue database stores data in a FIFO queue and a Recno database stores data using an increasing record number, no key is required.
Logical record numbers can be mutable or fixed: mutable, where logical record numbers can change as records are deleted or inserted, and fixed, where record numbers never change regardless of the database operation. It is possible to store and retrieve records based on logical record numbers in the Btree access method. However, those record numbers are always mutable, and as records are deleted or inserted, the logical record number for other records in the database will change. The Queue access method always runs in fixed mode, and logical record numbers never change regardless of the database operation. The Recno access method can be configured to run in either mutable or fixed mode.
So yes, when using the Queue access method, you can rely on it "forever". You can also use the Recno access method and configure it to run in the fixed mode.
Selecting an access method - http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_conf_select.html
Hope this helps,
Bogdan Coman -
Php curl connection & mysql connection from netbeans (jdbc) problem
I set up a LAMP stack on my laptop for development of TYPO3 a cms. Everything is cushty but two issues remain where I'm at my wits end.
In netbeans I cannot connect to the mysql database using the jdbc driver and specifying the localhost. My php application can using the same credentials.
I realized that I cannot connect to the mysql from the command line either if I use the loopback dress.
this works: mysql -u root -p -h localhost
this doesn't: mysql -u root -p -h 127.0.0.1
> ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
In my php application I have the problem that I cannot fetch a file via curl and fopen. I have tried both and curl/allow_fopen are enabled in the php.ini but no luck.
since both problems are permission related it's only the /etc/hosts.allow which comes to mind which could cause a problem but I already allowed everything the hosts.allow
# /etc/hosts.allow
rpcbind: 192.168.1.0/255.255.255.0
mysqld: ALL : allow
ALL: 127.0.0.1 : allow
httpd: ALL : allow
ALL : ALL : allow
#/etc/hosts
127.0.0.1 localhost localhost.localdomain lt-tom-arch
Any idea what I'm missing? What can I use to debug the issue further
#php.ini
[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100
allow_call_time_pass_reference = Off
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 300
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = Off
error_log = /var/log/php.log
variables_order = "GPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
include_path = ".:/usr/share/pear"
doc_root =
user_dir =
extension_dir = "/usr/lib/php/modules/"
enable_dl = Off
file_uploads = On
upload_max_filesize = 12M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = On
default_socket_timeout = 60
extension=gettext.so
extension=json.so
extension=mcrypt.so
extension=curl.so
extension=gd.so
extension=mysql.so
extension=openssl.so
[Date]
date.timezone = America/Montreal
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
smtp_port = 25
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[Session]
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
#my.cnf
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld]
port = 3306
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
skip-external-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 16K
myisam_sort_buffer_size = 8M
skip-networking
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeoutRegarding Curl/fopen I'm one step further. PHP cannot resolve hostnames and can connect only if an IP is specified. I resolved the domain I needed manually in the hosts file and it works. it appears it cannot use the systems DNS or the system doesn't allow it to use DNS. I have other ubuntu servers in the network who can resolve just fine.
any idea what could be causing this?
Could it have something to do with my nsswitch.conf? Should there be another dns somewhere?
# Begin /etc/nsswitch.conf
passwd: files
group: files
shadow: files
publickey: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files
# End /etc/nsswitch.conf -
Accessing MySQL InnoDB tables via JDBC using Oracle SQL Developer
I had posted a problem in the Oracle SQL Developer forum with how that application (v1.1) accesses MySQL InnoDB tables and someone replied that the "[data migration] team created the integration with MySQL", so I am posting here in hopes of learning more about the problem.
Here's a summary:
When I use Oracle SQL Developer to query MySQL InnoDB tables, I need to issue a "commit" before I do each query to ensure that I am getting current results. Otherwise, it appears to be using a snapshot as-of the last commit. Is this a problem with SQL Developer, or a JDBC configuration, or MySQL problem even?
The full details are here:
Re: MySQL InnoDB tablesHi,
I've posted a response to your original thread.
Regards,
Dermot. -
Help on RFC to JDBC and JDBC to RFC
Help on RFC to JDBC and JDBC to RFC
Hi Gurus
I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
I have never worked with JDBC before , pls advice.
is there any new issue to consider in PI 7.0 regarding JDBC
Thanks.The requirement looks standard,
SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
>
> is there any new issue to consider in PI 7.0 regarding JDBC
>
no issue with PI7.0.
Regards,
Raj -
Creating a service ; What needs to be added to tnsnames.ora and JDBC url?
DB version: 11.2.0.2
OS platform : Solaris 10
We have a 2 node RAC.
DB name = mbsprd
Instance1 = mbsprd1
Instance2 = mbsprd2I want Instance 1 (mbsprd1) to be used for our OLTP application and Instance 2 (mbsprd2) to be used for another application of DSS nature.
Based on the syntax
srvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>I am going to create 2 services
-- Creating a service called OLTP
srvctl add service -d mbsprd -s OLTP -r mbsprd1 -a mbsprd2-- Creating a service called DSS
srvctl add service -d mbsprd -s DSS -r mbsprd2 -a mbsprd1-- Starting the services
srvctl start service -d mbsprd -s OLTP
srvctl start service -d mbsprd -s DSSI guess the above steps are enough to configure a service at the server side.
I would like to know what needs to be done at the client side.
Currently the tnsnames.ora file and JDBC url used by our clients are shown below. What needs to be added to tnsnames.ora file and jdbc URL to start using services configured above?
-- SCAN based TNS entry
mbsprd =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = tcp.world)
(PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mbsprd)
(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))
-- TNS entry based on local listener
-- Instance 1
mbsprd1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973))
(CONNECT_DATA =
(SERVICE_NAME = mbsprd)
(INSTANCE_NAME = mbsprd1)
-- Instance 2
-- TNS entry based on local listener
mbsprd2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973))
(CONNECT_DATA =
(SERVICE_NAME = mbsprd)
(INSTANCE_NAME = mbsprd2)
)JDBC entry for RAC
jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd -- Alternative version used by some clients because the above had 'some issues'
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))OLTP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OLTP)
DSS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DSS)
)JDBC entry for RAC
jdbc:oracle:thin:@p148149-scan.tpam.net:36964:service_name
jdbc:oracle:thin:@new_tns_entry_description(if you would like to connect the database with particular service)
try this and let us know any issues, -
IDoc to JDBC and JDBC to IDoc Scenario
Dear All,
I am working on IDoc to JDBC and JDBC to IDoc Scenario.
I have to send Idoc from SAP to Non SAP system(.NET application) i almost configured in XI but still i don't know when my INTEGRATION will INVOKE how my data will proceed from IDOC to Oracle database(Through JDBC) and in case of revese how and when Data flow will start.
Does anyone have completed STEP by STEP scenario document for this?
How my Idoc will sent to XI?
How XI will pick up data from IDoc?
How XI will Convert data to JDBC and UPDATE in Oracle Database?
And i reverse case(JDBC to IDoc) when my INTEGRATION will INVOKE?
Where and When i can watch my process and data?
How can i test the whole integration?
I AM GETTING ERROR WHILE TESTING CONFIGURATION IN Integration Directory "Error while refreshing the XI runtime cache" and when i check this in SXI_CACHE it gives me error
"Unable to refresh cache "NO_BUSINESS_SYSTEM"
"Error during last refresh to cache"LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM"
Please solve all the above problems i will reward u points
thanks,
RPHi,
While we working on IDOC to JDBC interface..
We have to deploy JDBC Drivers?
Go through this links,
/people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
Configuration of JDBC Adapter for SQL Server
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
If the connection is not working find the correct port number.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
JDBC- X I - R/3 Scenario
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Please check the driver path as mentioned below.
JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
No JDBC driver required.
Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
follow this thread
Re: Problem when connecting to MS Access through JDBC Adapter.
SAP Note 850116 has details
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Configuring the Sender JDBC Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
Configuring the Receiver JDBC Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
Idoc Reveiver adapter..
http://help.sap.com/saphelp_erp2004/helpdata/en/b9/c5b13bbeb0cb37e10000000a11402f/content.htm
Thanks,
Satya Kumar
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Edited by: SATYA KUMAR AKKARABOYANA on May 8, 2008 5:51 PM -
How to avoid hardcoding in RFC Lookup and JDBC Lookup during transport...
Hi All,
We have RFC and JDBC Lookups in some of our scenarios(JDBC to RFC synch)....Now problem is during transport of design objects, we have to change the business system and channel name manually in UDF in target environment....as it wont change although we define the target group in SLD.....we want to avoid this hardcoding.....one idea is we can use a business service inspite of business system and assign the comm channel to it.....this business service will be generic for all environment(dev,qua and prod)...and hence we dnt hav to hardcode....pls let me knw how to achieve or its possible or not....
waiting for ur inputs....
Regds,
Pinangshuk.Hi,
For RFC lookup you might be doing hardcoding for Business system and RFC channel name.
Options are
1) Create value mapping for Business system. So you can maintain it in Directory part.
2) Keep the RFC channel name same for all system (Development, Quality, Production)
The details of channel can be changed in the Directory part of the respective system -
Any difference in the dbms and jdbc drivers btw oracle 8i lite and 9i lite
Is there any significant difference between oracle 8i lite and oracle 9i lite in terms of database and jdbc drivers?
If not, it may be better off using oracle8i.According to Oracle , 9i lite is more powerful than 8i Lite.
one thing, 8i Lite is not certified for windows 2000.
jothi -
Problem between SOAP Sender and JDBC Receiver
Hi,
I have a asynchronous scenary between SOAP Sender and JDBC Receiver.
The idea is sending an ID for updating one register.
Table structure is:
TABLE AS_PERSONA
(P_RUT VARCHAR2(10) NOT NULL,
P_NOMBRE VARCHAR2(50),
P_APELLIDO VARCHAR2(50))
The ID is the P_RUT field.
The structure of message that I send by SOAP, is the following:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:MT_CONS_SOAP xmlns:m="urn:prueba:voliva">
<CONSULTA>
<P_RUT>15445</P_RUT>
</CONSULTA>
</m:MT_CONS_SOAP>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The JDBC receiver structure is:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_CONS_PERSONA xmlns:ns0="urn:prueba:voliva">
<Statement>
<AS_PERSONA action="UPDATE">
<table>AS_PERSONA</table>
<access>
<P_NOMBRE>DELETE_BY_XI</P_NOMBRE>
<P_APELLIDO>DELETE_BY_XI</P_APELLIDO>
</access>
<key>
<P_RUT>15445</P_RUT>
</key>
</AS_PERSONA>
</Statement>
</ns0:MT_CONS_PERSONA>
When I do a call to SOAP by XMLspy, it returns a message without data, that means succesfull reply.
I see message monitor and see the succesfull flag. But in the database it doesn't update the register.
This scenario was proved using the File Sender and same JDBC Receiver, then result was succesfull.
I proved SOAP Sender with a File Receiver, storing information from SOAP sender in an archive, and works well.
Then I imagine that exist some problem between SOAP and JDBC. what could be happening ?
Thanks.Hi,
Looks like the problem is with the JDBC receiver...try updating the value in the table by using a File-JDBC scenario..does it work..check the adapter monitor in RWB..
Regards,
Sushumna -
Need information about Mail and JDBC Adapter
Hi Guys,
I am just started learning XI. Can any you provide any document how to use Mail and JDBC adapters in step-by-step way.
Thanks & Regards
Surendra Mhi,
Check these links
Mail Adapter
http://help.sap.com/saphelp_nw70/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
JDBC Adapter
http://help.sap.com/saphelp_nw70/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
Receiving Mail attachments using additional files of file adapter
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
FILE to JDBC Adapter using SAP XI 3.0
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Tips and Tutorial for Sender JDBC Adapter
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
Sachin
Message was edited by: -
Hi Guys,
Can I implement a scenario wherein the data is sent to Idoc and JDBC parallelly without using BPM?
Regards,
AshishAshish,
><i>If i add multiple recievers in receiver determination step without any condition, then how do i add multiple interface determinations in the area below?</i>
Once you add multiple Receivers and save the same, the Receivers will be available in the Window Below and you would need to create an Interface Determination for each of these Receivers.
As you do not have any condition, no need to add conditions.
><i>created seperate Receiver determinations</i>
You would need only ONE RECEIVER DETERMINATION and this receiver determination would in turn have multiple Interface Determinations.
Like mentioned, add multiple receivers save the Receiver Determination and in the window below, you will nopw be able to add an Interface determination for each of the receiver.
Regards,
Bhavesh -
JMS and JDBC Adapter in PI7.1
Hi All,
Kindly tell me about the blogs for JMS and JDBC adapter.
Please tell me about the Message Types in JMS adapter.
Thanks in advance.Hi Shwetambari,
Thanks for the reply.
We need to mention the Adapter Modules while configuring the communiucation channels in JMS
e.g. Adapter/ConvertJMSMessageToBinary,Adapter/ConvertBinaryToXMBMessage etc.
So please tell me whether we need to write the cide for the same in JAVA or it is already there ?If it is there then whre can we get it?Do we need to decompile the archeve ?If so, then how to do it?
Can you give me the Adaqpter Modules for which the code is already there?
The JMS adapter (Java Message Service) enables you to connect messaging systems to the Integration Engine or the PCK.
What are the different types of Messaging Systems?Or what is meant by the Messaging System in JMS?
What are the different types of Messages used?
Thanks in advance.
Edited by: Shweta Kullkarni on Sep 4, 2009 5:22 AM -
How to upload an html file using jsp and jdbc
Hi,
im trying to upload an html page using JSP and jdbc. but of no success.
my aim is to keep some important html pages in the database.the file size can vary.the file has to be selected from a local machine (through the browser) and uploaded to a remote machine(where the databse resides).
any help/sample code or pointer to any helpful link is appreciated.
thanks in advance
javajar2003When uploading a file, I use a byte array as a temporary buffer..
So, you should then be able to store the byte array in the
database as binary data.
example>
//Temporary Buffer To Store File
byte[] tmpbuffer = new byte[860];
//Some Code To Upload File...
//File Should Now Be In Byte Array
//Get DB Connection and execute Prepared Statement
Connection con=//GET DB CONNECTION;
String sql=insert into TABLE(page) values(?);
PreparedStatement ps=con.prepareStatement(sql);
ps.setBytes(1,tempbuffer);
ps.executeUpdate();
//Close PS and Free DB Connection
..... and this method looks like you dont even have
to store the file in a byte array, you can just give
it the input stream.
ps.setBinaryStream(int, inputStream, int);
You may have to make several attempts at this. I have
uploaded a file and temporarily stored it in a byte array,
but have never from there stored it in the DB as binary
data.. but this looks like it'll work.
Good Luck! -
TableView - support for datasource (on-demand loading and JDBC)
Hi,
I'm new to JavaFX and I was wondering if anybody knows any good practices for TableView with large datasets. Any API extension that supports datasources for on-demand loading and JDBC. Or any good tutorial, example or ideas. I was looking at DataFX but I don't see any datasource for JDBC in the javadocs even when it's mention their website.
Thanks in advance, any help or ideas are appreciated.Hello,
here is some pseudocode for your requirement.
max pagesize is 100 per query request
i=0
While(!Lastpage)
request.startrownum=i;
response=LeadQuery(request);
Lastpage=response.lastpage;
i+=100
}
Maybe you are looking for
-
Hi, I need help on how to remove my credit card data on my friend's iPad?
Hi, my friend borrowed my credit card to purchase smart office 2. I need help on how to change or remove my credit card details on her iPad. It turned out when I tried purchasing a game that i was again automatically charged. Thanks for helping me.
-
Hello evrybody, How can i update five frames at the same time with diferents parameters on a dynamic web site ? Config : JSP/APACHE/WINDOWS 2000 / ORACLE PS : I need the answer for yesterday. Thx Vincent
-
Passing key events with VNC.
Hi, I have noticed recently that KeyListener does not work as expected if Java application is started via VNC client. Everything works otherwise, e.g. in native Windows, native Solaris or Linux with X11, and also with Sun Secure Global Desktop (Taran
-
How do you restore iphone from icoud
I reset my iphone 3gs and lost everything but I backed my icoud before I did how do I restore it back from icoud
-
My IndesignCS6 doesn't start up.
Yesterday my Cloud Indesign CS6 didn't allow the placing op EPS illustrations. Today it won't start up. Messages: Cannot load the DATAMERGEUI.APLN plug-in. It is dependent on the DATAMERGE.APLN plug-in. which failed to load. Please check documentatio