Using int and SERIAL as datatypes in cmp Beans.
Hi
I�m using a postgresql database with my appserver 7.
I have some trouble using some of the �normal� db functions.
Ex SERIAL (or auto_number). Is it possible to create a create method in a cmp bean using SERIAL? I�m using SERIAL as the primary key.
I also could need to use �LIKE� and �order by�. How can I use these in finder methods?
Hope someone can help me.
Best regards
Kristian Gr�nli
Hi Kristian,
AppServer 7 does not support CMP beans with primary key values inserted by the database. However you can use an Unknown Primary Key feature and allow CMP container to provide the values.
AppServer 7 provides support for all EJB QL features defined in EJB 2.0 spec.
Regards,
-marina
Similar Messages
-
To know what procedure is in exectution using SID and SERIAL#
Hi
Is there some way to know what procedure(package or function) is running using SID and SERIAL#, I tried to use v$sqltext , but show only query
Tia
using oracle 9.2.02Hello
Joining v$session (sql_id) with v$sql (sql_id) you have the program_id.
Joining v$sql (program_id) with dba_objects (object_id) and you have the proc/pkg
Something like this:
select rpad(s.sid || ',' || s.serial#, 10) sid
, p.spid
, to_char(sysdate - (s.last_call_et / 86400),'HH24:MI:SS') "LASTCALL"
, to_char(s.LOGON_TIME,'dd/mm HH24:MI:SS') logon
, rpad(substr(lower(s.username), 1, 10), 10) usr
, rpad(substr(nvl(lower(s.osuser), 'n/a'), 1, 10), 10) osu
, rpad(lower(decode(lower(trim(s.terminal)), 'unknown', substr(s.machine, 1, instr(s.machine, '.')-1), null
, s.machine, s.terminal)),15) mcn
, s.sql_id
, o.object_name
from v$session s, v$process p, v$sql q, dba_objects o
where s.status = 'ACTIVE'
and s.username is not null
and p.addr = s.paddr
and q.sql_id = s.sql_id
and q.program_id = o.object_id
order by 5;
Regards
Edited by: ERadaell on 16/06/2011 11:31
Edited by: ERadaell on 16/06/2011 11:33
Edited by: ERadaell on 16/06/2011 11:37 -
B2B using JMS and Processing Messages with Message Driven Beans
We want to be able to use B2B to send messages to a JMS queue and then process messages from B2B using a Message Driven Bean. Is this supported.
We are using B2B 10.2.0.2 with Patchset 4.Hello,
In 10.1.2.0.2 B2B , as part of the internal Delivery channel B2B can only send and receive messages from JMS queues.
Rgds,Ramesh -
Using wildcards in custom find methods with CMP beans
Hi,
I'd like to create a custom find method called findByName which accepts a string. I'd typically want to use the string in a '%<name>%' scenario, where the user needn't type in the whole name. Does anybody know what the partial query should look like? I'm not sure how to concatenate the '%' symbol to the string taken in.
Thanks in advance
GillianGillian-
Bind variables are of the form $1, $2, etc., so try using a query stmt like this:
select * from YOURTABLE where name like '%$1%'
Regards,
-Jon -
Hi guys
We are having a problem with the migration to WLCS 3.2 SP2 / WLS 5.1 SP10.
We are moving from WLCS 3.2 and WLS SP6. Our CMP beans generate errors when
the container tries to update them. They deploy without error though.
See below for the stack trace
We use the recommended weblogic driver for our Oracle 8.1.7.0 database. WL
runs on w2k, and Oracle on Solaris 7.
Extract from set-environment:
SET DB_CLASSPATH=
SET PATH=%PATH%;%WEBLOGIC_HOME%\bin\oci815_8;%WLCS_ORACLE_HOME%\bin
SET
SQLPATH=C:\WebLogicCommerceServer3.2\db\oracle816;C:\WebLogicCommerceServer3
.2\db\oracle816\event;
Extract from weblogic.properties:
weblogic.jdbc.connectionPool.commercePool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
I made a few experiments, and I noticed that generating the CMP classes
(with EJBC) with the old WebLogic_RDBMS.jar (from WLS SP6) is working fine.
Here is what I mean : ejbc uses the library
c:\weblogic\lib\persistence\WebLogic_RDBMS.jar And this library has changed
with SP10. However since that change and after rebuilding our jars, all CMP
entity beans fail to update.
If I just replace that WebLogic_RDBMS.jar with the previous one (from SP6),
and without changing anything else, our CMP beans work fine. I did not
change any driver or xml deployment descriptor.
One of the generated files in the jar (for our bean
VisibilityPSWebLogic_CMP_RDBMS.class) differs, and that seems to be the
cause of the problem.
I jadded that class and here is a difference I notice:
OLD, ejbc ran with SP6 WebLogic_RDBMS.jar : visibilitybean.targetCompanyId =
(BigDecimal)resultset.getObject(5);
NEW, ejbc ran with SP10 WebLogic_RDBMS.jar : visibilitybean.targetCompanyId
= resultset.getBigDecimal(5, 35);
Similar differences for the SETbigdecimal.
Dunno if that will help, but I'm attaching the 2 jar files with explicit
names.
Damn that was long, I hope someone will read it... Thanks for any help on
this, see stack trace attached below
Nicolas Lejeune
Stack trace:
mer. oct. 03 12:16:22 CEST 2001:<I> <EJB JAR deployment
C:/WebLogicCommerceServer3.2/lib/foundation.jar> Exception in
non-transactional EJB invoke:
java.rmi.UnexpectedException: Unexpected exception in
com.b2boost.visibility.VisibilityBean.getVisibilityId():
java.sql.SQLException: ORA-01722: invalid number
at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
at weblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java:980)
at
weblogic.jdbc20.pool.PreparedStatement.executeUpdate(PreparedStatement.java:
47)
at
com.b2boost.visibility.VisibilityPSWebLogic_CMP_RDBMS.update(VisibilityPSWeb
Logic_CMP_RDBMS.java:446)
at
com.b2boost.visibility.VisibilityPSWebLogic_CMP_RDBMS.store(VisibilityPSWebL
ogic_CMP_RDBMS.java:376)
at
weblogic.ejb.internal.EntityEJBContext.store(EntityEJBContext.java:192)
at
weblogic.ejb.internal.EntityEJBContext.beforeCompletion(EntityEJBContext.jav
a:227)
at
weblogic.ejb.internal.StatefulEJBObject.postInvokeNoTx(StatefulEJBObject.jav
a:355)
at
weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:865)
at
com.b2boost.visibility.VisibilityBeanEOImpl.getVisibilityId(VisibilityBeanEO
Impl.java:198)
at
com.b2boost.visibility.pipeline.LoadFirstVisibilityRequestPC.process(LoadFir
stVisibilityRequestPC.java:83)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImpl.process(Pipelin
eExecutorImpl.java:193)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImplEOImpl.process(P
ipelineExecutorImplEOImpl.java:56)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImplEOImpl_ServiceSt
ub.process(PipelineExecutorImplEOImpl_ServiceStub.java:154)
at
com.beasys.commerce.webflow.PipelineProcessor.callPipeline(PipelineProcessor
.java:170)
at
com.beasys.commerce.webflow.PipelineProcessor.process(PipelineProcessor.java
:102)
at
com.beasys.commerce.webflow.WebflowAdvisor.handleTarget(WebflowAdvisor.java:
409)
at
com.beasys.commerce.webflow.WebflowAdvisor.processTarget(WebflowAdvisor.java
:156)
at
com.b2boost.framework.B2boostPortalDestinationDeterminer.determineDestinatio
n(B2boostPortalDestinationDeterminer.java:208)
at
com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:438
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:922)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:886)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
[Visibility_generated_with_SP6_weblogic_rdbms_jar.jar]
[Visibility_generated_with_SP10_weblogic_rdbms_jar.jar]You are using WebLogic jDriver for Oracle which needs exact version of OCI API, that comes with the Oracle client installation. Ensure that you have installed the right Oracle client version. And updated the PATH properly.
I notice that you have
bin/oci815_8
oracle816
Thsi looks liek the inconsistency in your environment.
What you need to do is
1. find oci817_8 and place that in the PATH.
2. install oracle 817 and use that client and set the ORACLE_HOME environment variable and the PATH properly.
Try this and see if it helps.
BTW - WLS 5.1 is EOL -
When i try to open a pdf using int exp i get a message that it has encountered a problem and will cl
when i try to open a pdf using int exp i get a message that it has encountered a problem and will close
Internet explorer. I have adobe reader and flash player which I uninstalled and reinstalled. I tried another browser and the pdf's open so it is a problem with IE .Thanks for your comments.
[private data removed] -
Can I use the same serial number for mac and pc?
My problem is that my mac is falling apart and I don't know how long it's still working - can be hours or can be months. I'm not sure if my next computer is mac or PC, so I'd like to know if the same serial number can be used with both mac and PC? I have understod that I can delete the program from my old computer and then use the same serial number in my next computer (Is it working that way?). So if I now buy a lisence for mac, can I use the same lisence later with PC?
Riisar for retail copies of the software you would need to complete the process detailed in Order an Adobe product platform swap or language swap.
-
Can I use the same serial number for windows and mac?
Hi
I brought the Adobe Creative Suite 6 DesignandWeb Premium for windows and have been using fine on my PC. I now want to by a MAC laptop - can I use the same serial number and just go online for the MAC version download?Swap Windows <-> Mac http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l
-
I bought the Adobe student version of Photoshop and Premiere Elements a few months ago - and now I am trying to use it, and the serial number that I have is incorrect - or it is only the registration number or something? It says I should have been sent an email with the serial number once the product was registered - But I never received this email. If anyone is able to help me with this issue - that would be great. the registration number is: PEPEP6-5578-6450-8871-9107 I am using a windows based system
If I were you I would first make sure CS6 was deactivated or signed-out. Then download Adobe's cleaner and remove cc, CS6 and any other creative application installed including Creative Cloud desktop application. Then install CS6 and use your CS6 serial number during the install to activate CS6 standard or extended which ever the serial number is for. CS6 Version 13.0 should the be activated. That level of CS6 is extremely bug ridden so be sure to the use CS6 menu Help>Updates to get CS6 updates. Windows should update to version 13.0.1.3 Mac to version 13.0.6. Not Subscription CS6 version 13.1.2...
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 -
I have Photoshop CS2 but my computer crashed on me which means I lost it..when I try to download it from adobe web site it stops at 173/340...is there anyway I can use my original CD and then use a different serial number
No, you have the web site version because this applies:
Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
The rest we cannot know. You have not provided any system information or details like what browser you use, so nobody can help you with your technical issues.
Mylenium -
i own acrobat 9 pro and had to re-download the program from a computer issue but when i get the serial code from the adobe website it give me serial code invalid error. i am using copy and paste to prevent miss typing the code.
Hi Lawrence,
Please try the steps mentioned in the KB: https://helpx.adobe.com/creative-suite/kb/error-invalid-serial-number-acrobat.html
Regards,
Rave -
Have photoshop cs6 for windows and am now migrating to a mac with Yosemite installed.
Where can I download the cs6 for mac? And can I use the same serial no that I received for windows.You need to run a platform swap:
Order product | Platform, language swap
Until it's through, you can use the trial version.
Download CS6 products
Mylenium -
I have an old version of InDesign CS5, have not used in a while..about a year. It will not load nor allow me to uninstall and reinstall, please help. I have original discs and serial number. How can I fix this?
CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3
-
I have an invoice that I paid to use photoshop and now it is asking for serial number however it does not show a serial number when I log in
Please then use your web Browser address http://www.adobe.com/ and sign in with your Adobe User ID and Password to your account the has your Subscription and use https://www.adobe.com/account/my-products-services.html capture the page which shows you have a subscription like I showed you I have.
Open Adobe Creative Cloud desktop application use the APP tab and capture that scree to show Photoshop is installed and up to date like I did. Capture that screen. Show us you have installed Photoshop and its up to date.
Open Photoshop and use menu Help it should show tha its activated because there will be a menu item Sign Out. If it is Sign In, Sign in using the account that has the subscription the one you used above to Activate Photoshop. -
I recently bought Lightroom and installed on one of my computes. I wanted to instal the program on another computer I have, using the same serial number I already bought and I'm not alowed as it says that the SN is not valid. What shall I do?
It is possible that you downloaded the Creative Cloud trial of Lightroom. The perpetual license key will not work. Uninstall the version on the second computer, this will not interfere with your catalog, preferences and personal files.
Download the appropriate version from the link below and install, your license key will be accepted and everything will be fine.
Product updates
Maybe you are looking for
-
Nano iPod photo dock and S video out?
Has anyone with an iPod photo dock slipped their nano into it to see if the photos will display on a TV (attcheed via S-video?) Since Apple didn't offer a video cable out for nano, I suspect it doesn't output slideshows, but it would be interesting t
-
HP Photosmart 7520 e-All-in-One Printer - WHEN i AM TRYING TO MAKE A COPY COPY OF AN A4 DOCUMENT WITH A4 PAPER INSTALLED. iT KEEPS PUTTING THROUGH A BLANK SHEET AND SAYING INCORRECT PAPER SIZE. HELP!! I HAVE CHECKED FOR UPDATED SOFTWARE ETC, CLEAN
-
How can we put program code which looks similar to SAP Program in SAP ?
when we copy the code and paste here in this editor, the setup of all the code becomes disturbed and we may not able to understand, plz suggest how can we post the code which is actully looks similar in SAP abap program ? Thanks & Regards, Amit Edite
-
Error in bdc programing code-pls help
hi friends, I was tring to do a bdc program.But it shows me an error. MY bdc program is jus to upload a 2 fields in vendoe master table. That is LIFNR,NAME1 field for the new vendors. I worked out an execl sheet for this, and jus copied i
-
Preview.app missing keyboard Shortcut
Anyone know how to bring back the print selected page keyboard shortcut in preview? It used to be command+shift+p